修改citycode
This commit is contained in:
parent
55c14baf4d
commit
e7be819cf3
@ -108,7 +108,7 @@
|
|||||||
健康档案
|
健康档案
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item" @tap="gomyappiont">
|
||||||
<image src="../../static/pages/wodeyuyue.png" mode=""></image>
|
<image src="../../static/pages/wodeyuyue.png" mode=""></image>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
我的预约
|
我的预约
|
||||||
@ -223,6 +223,11 @@
|
|||||||
this.getpersnoal()
|
this.getpersnoal()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
gomyappiont(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pagesC/Myappointment/Myappointment'
|
||||||
|
})
|
||||||
|
},
|
||||||
// 退出登录
|
// 退出登录
|
||||||
remove() {
|
remove() {
|
||||||
let that = this
|
let that = this
|
||||||
|
|||||||
@ -186,19 +186,20 @@
|
|||||||
locationName: '',
|
locationName: '',
|
||||||
sex: '',
|
sex: '',
|
||||||
sexname: '',
|
sexname: '',
|
||||||
cityCode: '1',
|
cityCode: '',
|
||||||
},
|
},
|
||||||
sex: '',
|
sex: '',
|
||||||
addresslength: null,
|
addresslength: null,
|
||||||
|
value:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.areaInfo();
|
this.areaInfo();
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
var that = this
|
var that = this
|
||||||
const value = uni.getStorageSync('userinfo');
|
this.value = uni.getStorageSync('userinfo');
|
||||||
if (value) {
|
if (this.value) {
|
||||||
const patientid = value.id
|
const patientid = this.value.id
|
||||||
appPersonal(patientid).then(Response => {
|
appPersonal(patientid).then(Response => {
|
||||||
if (Response.code == 200) {
|
if (Response.code == 200) {
|
||||||
if (Response.data.sex == 'MALE') {
|
if (Response.data.sex == 'MALE') {
|
||||||
@ -297,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 = '1'
|
that.appPersonallist.cityCode = this.value.cityCode
|
||||||
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({
|
||||||
@ -324,7 +325,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
that.appPersonallist.cityCode = '1'
|
that.appPersonallist.cityCode = this.value.cityCode
|
||||||
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({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user