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

View File

@ -20,10 +20,10 @@
{{score?score:0}} {{score?score:0}}
</span> </span>
</view> </view>
<view class="paiming" v-if="hkname=='河口'"> <view class="paiming" v-if="hkname=='河口'" @click='lookranking'>
<span <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':''"> :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> </span>
</view> </view>
<view class="flex" v-if="region!=2"> <view class="flex" v-if="region!=2">
@ -85,6 +85,11 @@
<u-empty v-else mode="list" icon-size='220' text='暂无积分记录'></u-empty> <u-empty v-else mode="list" icon-size='220' text='暂无积分记录'></u-empty>
</view> </view>
</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> </view>
</template> </template>
<script> <script>
@ -114,7 +119,10 @@
orgNo: '', orgNo: '',
title: '', title: '',
hkname: '', hkname: '',
orgName: "",
patientName: "",
scoreranking: 0, scoreranking: 0,
lookrankingshow: false,
}; };
}, },
onShow() { onShow() {
@ -126,9 +134,11 @@
onReady() { // onReady() { //
if (uni.getStorageSync('region') == 2) { if (uni.getStorageSync('region') == 2) {
detail(this.query.identity).then(res => { detail(this.query.identity).then(res => {
this.orgName = res.data.orgName
this.hkname = res.data.countyName.split('区')[0].split('县')[0] this.hkname = res.data.countyName.split('区')[0].split('县')[0]
this.orgNo = res.data.orgNo this.orgNo = res.data.orgNo
this.title = this.hkname + '健康信用中心' this.title = this.hkname + '健康信用中心'
this.patientName = uni.getStorageSync('userinfo').patientName
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.hkname + '健康信用中心' title: this.hkname + '健康信用中心'
}); });
@ -145,6 +155,9 @@
} }
}, },
methods: { methods: {
lookranking() {
this.lookrankingshow = true
},
scoretotalinfo() { scoretotalinfo() {
scoretotal(this.query.identity).then(res => { scoretotal(this.query.identity).then(res => {
this.score = res.data this.score = res.data