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/stores/userInfo.ts | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/src/stores/userInfo.ts b/src/stores/userInfo.ts
index 1e043bc..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:{openud:string, headimgurl:string,nickname:string}) {
- info.value.openid=userInfo.openud
+ 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