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