From 70fa715098c400c514239a5798bd967d0c2b716c Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 04 六月 2023 08:48:19 +0800
Subject: [PATCH] 更新打包命令

---
 src/views/home/index.vue |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8f7e4ef..2d3e440 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -2,8 +2,8 @@
     <div class="page">
         <div class="box_1">
             <div class="userinfo">
-                <div class="name">{{patientInfo.patientInfo.patientName}}</div>
-                <div class="userCode">卡号:{{atientInfo.patientInfo.patientHemoCode}} </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
                         style=" width: 60px;height: 60px;margin-left: 8%; margin-top: 20px;"
@@ -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>
@@ -124,7 +125,7 @@
   <script lang="ts" setup>
     import { onMounted,ref,computed,watch } from 'vue'
     import { userInfoStore } from '@/stores/userInfo'
-    import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem } from 'vant'
+    import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem, Toast } from 'vant'
     import {useRouter} from 'vue-router'
     import meun1 from './assets/meun1.png'
     import meun2 from './assets/meun2.png'
@@ -138,13 +139,19 @@
     const tabChang=(index:any)=>{
         if (index==='home'){
             router.push('/')
-        } else {
+        } else if (index==='jifen') {
+            router.push('jifenShangCheng')
+        } else if (index==='my') {
             router.push('my')
         }
     }
     const topath=(url:string)=>{
         console.log('sss')
-        router.push(url)
+        if (url==='/report'){
+            Toast('此功能暂未开通')
+        } else {
+            router.push(url)
+        }
     }
     const patientInfo=computed(() => {
         return userInfo.patient
@@ -159,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