This commit is contained in:
2024-06-04 09:42:02 +08:00
parent 2dfddc7dac
commit e12aad2fb0
2 changed files with 19 additions and 28 deletions

View File

@ -366,7 +366,9 @@
url: `/pagesB/modify/modify`
})
} else {
this.gologin();
uni.navigateTo({
url: '/pagesB/login/login'
})
}
},
//
@ -387,20 +389,6 @@
url: '/pagesB/Serviceevaluation/Serviceevaluation'
})
},
//
// Signing() {
// if (uni.getStorageSync('region') == 3) {
// this.$refs.uToast.show({
// title: '',
// type: 'error',
// })
// } else {
// uni.navigateTo({
// url: '/pagesB/mysigning/mysigning'
// })
// }
// },
//
family() {
this.$refs.uToast.show({
@ -443,15 +431,6 @@
}
}
},
//
gologin() {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pagesB/login/login'
})
},
//
gocoupon() {
const value = uni.getStorageSync('userinfo');
@ -485,9 +464,8 @@
//
gologin() {
this.$refs.uToast.show({
title: '您未登录,请登录',
title: '您未登录,请点击上方登录',
type: 'error',
url: '/pagesB/login/login'
})
},
//

View File

@ -20,10 +20,10 @@
{{score?score:0}}
</span>
</view>
<view class="paiming" v-if="hkname=='河口'">
<view class="paiming" v-if="hkname=='河口'" @click='lookranking'>
<span
:style="score>=0&&score<800?'color:#fff':score>=800&&score<1600?'color:#D3BC96':score>=1600&&score<2400?'color:#AD7600':score>=2400&&score<3000?'color:#FAEEDB':score>=3000?'color:#4864ED':''">
积分榜排名NO.{{scoreranking}}
积分榜排名{{scoreranking}}
</span>
</view>
<view class="flex" v-if="region!=2">
@ -85,6 +85,11 @@
<u-empty v-else mode="list" icon-size='220' text='暂无积分记录'></u-empty>
</view>
</view>
<u-popup v-model="lookrankingshow" mode="center" closeable border-radius="14">
<view style="padding: 120rpx 60rpx;">
{{patientName}}{{orgName}}排第{{scoreranking}}
</view>
</u-popup>
</view>
</template>
<script>
@ -114,7 +119,10 @@
orgNo: '',
title: '',
hkname: '',
orgName: "",
patientName: "",
scoreranking: 0,
lookrankingshow: false,
};
},
onShow() {
@ -126,9 +134,11 @@
onReady() { //
if (uni.getStorageSync('region') == 2) {
detail(this.query.identity).then(res => {
this.orgName = res.data.orgName
this.hkname = res.data.countyName.split('区')[0].split('县')[0]
this.orgNo = res.data.orgNo
this.title = this.hkname + '健康信用中心'
this.patientName = uni.getStorageSync('userinfo').patientName
uni.setNavigationBarTitle({
title: this.hkname + '健康信用中心'
});
@ -145,6 +155,9 @@
}
},
methods: {
lookranking() {
this.lookrankingshow = true
},
scoretotalinfo() {
scoretotal(this.query.identity).then(res => {
this.score = res.data