From 7e6b8b1eef198ab4de9633288037a23817f9ee39 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期三, 24 五月 2023 22:52:42 +0800
Subject: [PATCH] 45
---
src/views/home/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 929f9e5..7074ef8 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -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