From 9472c3489eb7bb0316f34aece30d1c16f939c492 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:36:20 +0800
Subject: [PATCH] 34
---
src/stores/userInfo.ts | 15 ++++++++++++++-
src/views/home/index.vue | 2 +-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index 467892d..9f23958 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -8,7 +8,20 @@
headimgurl:'',
nickname:'',
})
- const patient=ref({})
+ const patient=ref({
+ patientInfo:{
+ age:0,
+ code:'',
+ id:'',
+ patientCardNo:'',
+ patientIdentityNo:'',
+ patientName:'',
+ patientTelNo:'',
+ patientAvatarIcon:''
+ },
+ pressure:'',
+ weight:''
+ })
function setInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) {
info.value.openid=userInfo.openid
info.value.headimgurl=userInfo.headimgurl
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8f7e4ef..366bd30 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -3,7 +3,7 @@
<div class="box_1">
<div class="userinfo">
<div class="name">{{patientInfo.patientInfo.patientName}}</div>
- <div class="userCode">卡号:{{atientInfo.patientInfo.patientHemoCode}} </div>
+ <div class="userCode">卡号:{{patientInfo.patientInfo.patientCardNo}} </div>
<div class="userQRcode">
<img
style=" width: 60px;height: 60px;margin-left: 8%; margin-top: 20px;"
--
Gitblit v1.8.0