修改citycode

This commit is contained in:
闫晓茹 2023-10-31 10:37:09 +08:00
parent 55c14baf4d
commit e7be819cf3
2 changed files with 15 additions and 9 deletions

View File

@ -108,7 +108,7 @@
健康档案
</view>
</view>
<view class="item">
<view class="item" @tap="gomyappiont">
<image src="../../static/pages/wodeyuyue.png" mode=""></image>
<view class="text">
我的预约
@ -223,6 +223,11 @@
this.getpersnoal()
},
methods: {
gomyappiont(){
uni.navigateTo({
url: '/pagesC/Myappointment/Myappointment'
})
},
// 退
remove() {
let that = this

View File

@ -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({