This commit is contained in:
2024-03-13 14:02:58 +08:00
parent 3cb78e421c
commit 790f180d99
8 changed files with 71 additions and 56 deletions

View File

@ -272,39 +272,42 @@
},
//
count() {
if (!this.userinfo) {
this.gologin();
} else {
if (this.region == 3) {
this.family()
} else {
if (this.region == 1 || this.region == 2) {
if (this.checkSign == "0") {
uni.navigateTo({
url: `/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
})
// this.$refs.uToast.show({
// title: '',
// type: 'error',
// duration:'1500',
// url: "/pagesC/Onlinesigning/Onlinesigning"
// })
} else if (this.checkSign == "01") {
this.$refs.uToast.show({
title: this.infotitle,
type: 'error',
duration: '1500',
})
} else {
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
}
} else {
this.family()
}
}
}
uni.navigateTo({
url: '/pagesB/Behaviorpoints/Behaviorpoints'
})
// if (!this.userinfo) {
// this.gologin();
// } else {
// if (this.region == 3) {
// this.family()
// } else {
// if (this.region == 1 || this.region == 2) {
// if (this.checkSign == "0") {
// uni.navigateTo({
// url: `/pagesC/Onlinesigning/Onlinesigning?checkSign=${this.checkSign}`,
// })
// // this.$refs.uToast.show({
// // title: '',
// // type: 'error',
// // duration:'1500',
// // url: "/pagesC/Onlinesigning/Onlinesigning"
// // })
// } else if (this.checkSign == "01") {
// this.$refs.uToast.show({
// title: this.infotitle,
// type: 'error',
// duration: '1500',
// })
// } else {
// uni.navigateTo({
// url: '/pagesB/Behaviorpoints/Behaviorpoints'
// })
// }
// } else {
// this.family()
// }
// }
// }
},
//
goHealthrecords() {

View File

@ -1,7 +1,7 @@
.app {
background-color: #F7F5F5;
height: 100vh;
padding-top: 20rpx;
// padding-top: 20rpx;
.flex {
width: 100%;
@ -15,26 +15,16 @@
.background {
height: 100%;
background-color: #fff;
width: 95%;
width: 100%;
margin: 0 auto;
.content {
position: relative;
margin-bottom: 80rpx;
padding-bottom: 50rpx;
.title {
position: absolute;
left: 40rpx;
top: 10rpx;
font-weight: 600;
color: #26A888;
padding-left: 20rpx;
}
image {
width: 100%;
height: 450rpx;
padding-left: 7rpx;
height: 480rpx;
}
.item {
@ -70,6 +60,7 @@
transform: translateX(-50%);
text-overflow: ellipsis;
white-space: nowrap;
color:#AD7600;
}
}

View File

@ -2,31 +2,54 @@
<view class="app">
<view class="background">
<view class="content">
<view class="title" v-if="region==2">
{{title}}
</view>
<image mode="" :src="require('../images/jifen.png')" v-if='region==2'></image>
<image mode="" :src="require('../images/putongka.png')" v-if='region==2&&score>=0&&score<800' />
<image mode="" :src="require('../images/yinka.png')" v-if='region==2&&score>=800&&score<1600' />
<image mode="" :src="require('../images/jinka.png')" v-if='region==2&&score>=1600&&score<2400' />
<image mode="" :src="require('../images/bojinka.png')" v-if='region==2&&score>=2400&&score<3000' />
<image mode="" :src="require('../images/zuanshika.png')" v-if='region==2&&score>=3000' />
<image src="@/static/pagesB/Behave.png" mode="" v-if='region!=2' :style="region!=2?'height:350rpx':''">
</image>
<view class="name" v-if='region!=2'>我的积分
</view>
<view class="number" :style="region!=2?'top:35%':''">{{score?score:0}}
<view class="number" :style="region!=2?'top:35%;':''">
<span
:style="score>=0&&score<800?'color:#fff':score>=800&&score<1600?'color:#D2BC97':score>=1600&&score<2400?'color:#AD7600':score>=2400&&score<3000?'color:#FAEEDB':score>=3000?'color:#4864ED':''">
{{score?score:0}}
</span>
</view>
<view class="flex" :style="region==2?'bottom:5%':''">
<view class="flex" v-if="region!=2">
<view class="item" @tap='gointegral'>
积分商城
</view>
<view class="item" @tap="goexchange">
兑换记录
</view>
<view class="item" v-if="region==2" @tap="gowxSport">
微信运动
</view>
</view>
<view class="flex" v-if="region==2" :style="region==2?'bottom:-10%':''">
</view>
<view class="content" style="height: 200rpx;" v-if="region==2">
<view class="flex" style="top:10%">
<view class="item" @tap='gointegral'>
积分商城
</view>
<view class="item" @tap="goexchange">
兑换记录
</view>
<view class="item" @tap="gowxSport">
微信运动
</view>
</view>
<view class="flex" style="top:50%">
<view class="item" @tap='gobehavior'>
健康行为
</view>
<view class="item" @tap=''>
参考兑换
</view>
<view style="width:25%">
</view>
</view>
</view>
<view class="bottomitem">
@ -77,7 +100,6 @@
list: [],
total: 0,
score: 0,
title: '',
orgNo: '',
};
},
@ -91,7 +113,6 @@
if (uni.getStorageSync('region') == 2) {
detail(this.query.identity).then(res => {
let name = res.data.countyName.split('区')[0].split('县')
this.title = '东营健康银行' + name + '分行'
this.orgNo = res.data.orgNo
uni.setNavigationBarTitle({
title: '东营健康银行' + name + '分行'

BIN
pagesB/images/bojinka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
pagesB/images/jinka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
pagesB/images/putongka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
pagesB/images/yinka.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
pagesB/images/zuanshika.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB