From e7be819cf314cfd7a1a7c3e31b027cc54162532f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 31 Oct 2023 10:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9citycode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/myinformation/myinformation.vue | 11 ++++++++--- pagesB/modify/modify.vue | 13 +++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 2042b03..56e7153 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -108,7 +108,7 @@ 健康档案 - + 我的预约 @@ -223,6 +223,11 @@ this.getpersnoal() }, methods: { + gomyappiont(){ + uni.navigateTo({ + url: '/pagesC/Myappointment/Myappointment' + }) + }, // 退出登录 remove() { let that = this @@ -256,7 +261,7 @@ } }, // 获取成员 - getpersnoal() { + getpersnoal() { getCurrentUser(this.valueopenid).then(res => { this.familyList = res.data }) @@ -495,4 +500,4 @@ \ No newline at end of file + diff --git a/pagesB/modify/modify.vue b/pagesB/modify/modify.vue index e62d0a2..fde3dd4 100644 --- a/pagesB/modify/modify.vue +++ b/pagesB/modify/modify.vue @@ -186,19 +186,20 @@ locationName: '', sex: '', sexname: '', - cityCode: '1', + cityCode: '', }, sex: '', addresslength: null, + value:{}, } }, onLoad(options) { this.areaInfo(); this.baseurl = baseurl var that = this - const value = uni.getStorageSync('userinfo'); - if (value) { - const patientid = value.id + this.value = uni.getStorageSync('userinfo'); + if (this.value) { + const patientid = this.value.id appPersonal(patientid).then(Response => { if (Response.code == 200) { if (Response.data.sex == 'MALE') { @@ -297,7 +298,7 @@ timeout: 5000, success(res) { that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl - that.appPersonallist.cityCode = '1' + that.appPersonallist.cityCode = this.value.cityCode registerdata(that.appPersonallist).then(res => { if (res.code == 200) { that.$refs.uToast.show({ @@ -324,7 +325,7 @@ } }) } else { - that.appPersonallist.cityCode = '1' + that.appPersonallist.cityCode = this.value.cityCode registerdata(that.appPersonallist).then(res => { if (res.code == 200) { that.$refs.uToast.show({