From 028255207627f5207a0e4f942003aabeed4db99b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 01 十一月 2022 15:50:27 +0800
Subject: [PATCH] 新增透析方案
---
src/stores/userInfo.ts | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index a40a6f6..9f23958 100644
--- a/src/stores/userInfo.ts
+++ b/src/stores/userInfo.ts
@@ -6,13 +6,30 @@
const info = ref({
openid:'',
headimgurl:'',
- nickname:''
+ nickname:'',
})
- function setUserInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) {
+ 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
info.value.nickname=userInfo.nickname
}
+ function setPatient(info:object) {
+ patient.value=info
+ }
- return { info, setUserInfo }
+ return { info,patient,setPatient, setInfo }
})
--
Gitblit v1.8.0