diff --git a/pages/user/user.vue b/pages/user/user.vue index 8ea4a32..e158d7f 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -78,10 +78,11 @@ }, onLoad(options) { + let that = this uni.getStorage({ key: 'patientId', success: function(res) { - this.patientId = res.data + that.patientId = res.data } }); //获取传值