diff --git a/api/pages/myinformation/myinformation.js b/api/pages/myinformation/myinformation.js index ff16787..4c016c6 100644 --- a/api/pages/myinformation/myinformation.js +++ b/api/pages/myinformation/myinformation.js @@ -4,7 +4,8 @@ export function appPersonal(patientId) { url: `/nurseApp/login/appPersonal?patientId=${patientId}`, method: 'GET', header: { - Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + region: uni.getStorageSync('region'), }, }) } diff --git a/api/pagesB/modify/modify.js b/api/pagesB/modify/modify.js index 8468e5d..38fefc2 100644 --- a/api/pagesB/modify/modify.js +++ b/api/pagesB/modify/modify.js @@ -17,7 +17,8 @@ export function appPersonal(patientId) { url: `/nurseApp/login/appPersonal?patientId=${patientId}`, method: 'GET', header: { - Authorization: 'Bearer' + ' ' + uni.getStorageSync('token') + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + region: uni.getStorageSync('region'), }, }) } \ No newline at end of file diff --git a/pagesB/AddMembers/AddMembers.vue b/pagesB/AddMembers/AddMembers.vue index 03f59e1..411577c 100644 --- a/pagesB/AddMembers/AddMembers.vue +++ b/pagesB/AddMembers/AddMembers.vue @@ -367,7 +367,7 @@ const _this = this _this.userinfo = uni.getStorageSync('userinfo'); _this.form.openid = uni.getStorageSync('openid'); - _this.form.cityCode=_this.userinfo.cityCode + _this.form.cityCode= uni.getStorageSync('region'); console.log(_this.form, '000') if (_this.form.sexname == '男') { _this.form.sex = 'MALE'; diff --git a/pagesB/Serviceevaluation/Serviceevaluation.vue b/pagesB/Serviceevaluation/Serviceevaluation.vue index 30ab357..ef21e78 100644 --- a/pagesB/Serviceevaluation/Serviceevaluation.vue +++ b/pagesB/Serviceevaluation/Serviceevaluation.vue @@ -127,7 +127,7 @@ this.userinfo = uni.getStorageSync('userinfo'); this.cardNo = this.userinfo.cardNo; this.parentId = this.userinfo.id; - this.region = this.userinfo.cityCode; + this.region = uni.getStorageSync('region'); this.openId = uni.getStorageSync('openid'); // console.log(this.openId, '999') diff --git a/pagesB/modify/modify.vue b/pagesB/modify/modify.vue index fde3dd4..c04ac1a 100644 --- a/pagesB/modify/modify.vue +++ b/pagesB/modify/modify.vue @@ -298,7 +298,7 @@ timeout: 5000, success(res) { that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl - that.appPersonallist.cityCode = this.value.cityCode + that.appPersonallist.cityCode = uni.getStorageSync('region') registerdata(that.appPersonallist).then(res => { if (res.code == 200) { that.$refs.uToast.show({ @@ -325,7 +325,7 @@ } }) } else { - that.appPersonallist.cityCode = this.value.cityCode + that.appPersonallist.cityCode = uni.getStorageSync('region') registerdata(that.appPersonallist).then(res => { if (res.code == 200) { that.$refs.uToast.show({ diff --git a/pagesB/myevaluation/myevaluation.vue b/pagesB/myevaluation/myevaluation.vue index 34a4157..c094f88 100644 --- a/pagesB/myevaluation/myevaluation.vue +++ b/pagesB/myevaluation/myevaluation.vue @@ -60,7 +60,7 @@ this.parentId = this.userinfo.id; // this.cardNo = '372926199812187720'; // this.parentId = '88'; - this.region = this.userinfo.cityCode; + this.region = uni.getStorageSync('region'); this.getlist(); },