From 0a0dbbe0aa2be52c0e78c1afe273dcbe3c9b6fd7 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:44:09 +0800
Subject: [PATCH] 34
---
src/views/myMine/index.vue | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/views/myMine/index.vue b/src/views/myMine/index.vue
index 3aeb6ff..f1152aa 100644
--- a/src/views/myMine/index.vue
+++ b/src/views/myMine/index.vue
@@ -11,7 +11,7 @@
/>
</div>
<div class="rowtext">
- 用户名:1771723243242
+ 手机号:{{patientInfo.patientInfo.patientTelNo}}
</div>
</div>
</div>
@@ -25,18 +25,18 @@
<van-row style="padding-left: 20px;">
<van-col span="16" class="info16">
- <div class="div1">张三丰
+ <div class="div1">{{patientInfo.patientInfo.patientName}}
<span class="but">排班提醒</span>
</div>
<div class="div2">患者卡号</div>
- <div class="div3">000000001</div>
+ <div class="div3">{{patientInfo.patientInfo.patientCardNo}} </div>
</van-col>
<van-col span="8" class="info8">
<div class="img">
<img
style=" width: 55px;height: 55px;margin-left: 8%; margin-top: 15px;"
referrerpolicy="no-referrer"
- src="./imgs/erwm.png"
+ :src="patientInfo.patientInfo.patientAvatarIcon"
/>
<div class="devcc">出示称重码</div>
</div>
@@ -110,11 +110,13 @@
</div>
</template>
<script lang="ts" setup>
- import { ref } from 'vue'
+ import { ref,computed } from 'vue'
+ import { userInfoStore } from '@/stores/userInfo'
import serve1 from './imgs/serve1.png'
import { Image as VanImage,Tabbar as VanTabbar , TabbarItem as VanTabbarItem} from 'vant'
import {useRouter} from 'vue-router'
const router=useRouter()
+ const userInfo = userInfoStore()
const active=ref('my')
const tabChang=(index:any)=>{
if (index==='home'){
@@ -123,6 +125,9 @@
router.push('my')
}
}
+ const patientInfo=computed(()=>{
+ return userInfo.patient
+ })
</script>
<style lang="scss" scoped>
body{
--
Gitblit v1.8.0