region
This commit is contained in:
parent
50f8c9d8e4
commit
6ccff7eeca
@ -4,7 +4,8 @@ export function appPersonal(patientId) {
|
|||||||
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,8 @@ export function appPersonal(patientId) {
|
|||||||
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
url: `/nurseApp/login/appPersonal?patientId=${patientId}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
header: {
|
header: {
|
||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
|
||||||
|
region: uni.getStorageSync('region'),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -367,7 +367,7 @@
|
|||||||
const _this = this
|
const _this = this
|
||||||
_this.userinfo = uni.getStorageSync('userinfo');
|
_this.userinfo = uni.getStorageSync('userinfo');
|
||||||
_this.form.openid = uni.getStorageSync('openid');
|
_this.form.openid = uni.getStorageSync('openid');
|
||||||
_this.form.cityCode=_this.userinfo.cityCode
|
_this.form.cityCode= uni.getStorageSync('region');
|
||||||
console.log(_this.form, '000')
|
console.log(_this.form, '000')
|
||||||
if (_this.form.sexname == '男') {
|
if (_this.form.sexname == '男') {
|
||||||
_this.form.sex = 'MALE';
|
_this.form.sex = 'MALE';
|
||||||
|
|||||||
@ -127,7 +127,7 @@
|
|||||||
this.userinfo = uni.getStorageSync('userinfo');
|
this.userinfo = uni.getStorageSync('userinfo');
|
||||||
this.cardNo = this.userinfo.cardNo;
|
this.cardNo = this.userinfo.cardNo;
|
||||||
this.parentId = this.userinfo.id;
|
this.parentId = this.userinfo.id;
|
||||||
this.region = this.userinfo.cityCode;
|
this.region = uni.getStorageSync('region');
|
||||||
this.openId = uni.getStorageSync('openid');
|
this.openId = uni.getStorageSync('openid');
|
||||||
// console.log(this.openId, '999')
|
// console.log(this.openId, '999')
|
||||||
|
|
||||||
|
|||||||
@ -298,7 +298,7 @@
|
|||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
success(res) {
|
success(res) {
|
||||||
that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl
|
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 => {
|
registerdata(that.appPersonallist).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
@ -325,7 +325,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
that.appPersonallist.cityCode = this.value.cityCode
|
that.appPersonallist.cityCode = uni.getStorageSync('region')
|
||||||
registerdata(that.appPersonallist).then(res => {
|
registerdata(that.appPersonallist).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
|
|||||||
@ -60,7 +60,7 @@
|
|||||||
this.parentId = this.userinfo.id;
|
this.parentId = this.userinfo.id;
|
||||||
// this.cardNo = '372926199812187720';
|
// this.cardNo = '372926199812187720';
|
||||||
// this.parentId = '88';
|
// this.parentId = '88';
|
||||||
this.region = this.userinfo.cityCode;
|
this.region = uni.getStorageSync('region');
|
||||||
this.getlist();
|
this.getlist();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user