45
chenyc
2023-05-24 7e6b8b1eef198ab4de9633288037a23817f9ee39
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,'微信账号信息')
    })