From b8ce0e7f0652aab9d9b0df9c5fbaebd924d31cc2 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 04 六月 2023 09:52:24 +0800
Subject: [PATCH] upbug
---
src/views/home/index.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 929f9e5..2d3e440 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -2,7 +2,7 @@
<div class="page">
<div class="box_1">
<div class="userinfo">
- <div class="name">{{patientInfo.patientInfo.patientName}}</div>
+ <div class="name" v-if="patientInfo.patientInfo.patientName !== undefined">{{patientInfo.patientInfo.patientName}}</div>
<div class="userCode">卡号:{{patientInfo.patientInfo.patientCardNo}} </div>
<div class="userQRcode">
<img
@@ -117,6 +117,7 @@
</div>
<van-tabbar v-model="active" @change="tabChang">
<van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
+ <van-tabbar-item name="jifen" icon="cart-circle-o">积分商城</van-tabbar-item>
<van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
</van-tabbar>
</div>
@@ -138,7 +139,9 @@
const tabChang=(index:any)=>{
if (index==='home'){
router.push('/')
- } else {
+ } else if (index==='jifen') {
+ router.push('jifenShangCheng')
+ } else if (index==='my') {
router.push('my')
}
}
@@ -163,9 +166,9 @@
}
)
onMounted(() => {
- if (userInfo.info.openid===''){
- router.push('login')
- }
+ // if (userInfo.info.openid===''){
+ // router.push('login')
+ // }
console.log(userInfo.patient,'患者信息')
console.log(userInfo.info,'微信账号信息')
})
--
Gitblit v1.8.0