From 62eb6f2968650ee2a021ff9d98fa503c3f013f5e Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 2 Nov 2022 10:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=20=20patie?= =?UTF-8?q?ntId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/user.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/user/user.vue b/pages/user/user.vue index 5a18010..8ea4a32 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -72,12 +72,18 @@ export default { data() { return { - patientId: 46, + patientId: '', appPersonallist: [], //获取个人信息 } }, onLoad(options) { + uni.getStorage({ + key: 'patientId', + success: function(res) { + this.patientId = res.data + } + }); //获取传值 this.myInfo() },