修改
This commit is contained in:
parent
1091c8e808
commit
12c467c58c
@ -87,12 +87,14 @@
|
|||||||
<view class="bodys" @tap='upaddress()'>
|
<view class="bodys" @tap='upaddress()'>
|
||||||
<view class="addressinfo">
|
<view class="addressinfo">
|
||||||
<image src="../../static/locatinsmall.png" mode=""></image>
|
<image src="../../static/locatinsmall.png" mode=""></image>
|
||||||
<view class="namephone" v-if='userid'>
|
<span v-if="loginFlag">
|
||||||
{{updata.receiver}},{{updata.phone}}
|
<view class="namephone" v-if='userid'>
|
||||||
</view>
|
{{updata.receiver}},{{updata.phone}}
|
||||||
<view class="address" v-if='userid'>
|
</view>
|
||||||
{{updata.receiveAddress}}
|
<view class="address" v-if='userid'>
|
||||||
</view>
|
{{updata.receiveAddress}}
|
||||||
|
</view>
|
||||||
|
</span>
|
||||||
<view class="namephone" v-else>
|
<view class="namephone" v-else>
|
||||||
前往完善个人信息
|
前往完善个人信息
|
||||||
</view>
|
</view>
|
||||||
@ -326,6 +328,7 @@
|
|||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
},
|
},
|
||||||
userid: null,
|
userid: null,
|
||||||
|
loginFlag: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: { //监听
|
watch: { //监听
|
||||||
@ -787,10 +790,17 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
var that = this
|
var that = this
|
||||||
this.baseurl = baseurl
|
this.baseurl = baseurl;
|
||||||
this.usershow = false
|
this.usershow = false;
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
|
AppIdentification(value).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
if (res.data.loginFlag) {
|
||||||
|
that.loginFlag = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
that.goodsDetailsinfo(that.goodsInfoId, value)
|
that.goodsDetailsinfo(that.goodsInfoId, value)
|
||||||
goodPatientInfo(value).then(res => {
|
goodPatientInfo(value).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -810,7 +820,8 @@
|
|||||||
// })
|
// })
|
||||||
that.updata.receiver = res.data[0].receiveName
|
that.updata.receiver = res.data[0].receiveName
|
||||||
// this.updata.receiveAddress = res.data[0].address
|
// this.updata.receiveAddress = res.data[0].address
|
||||||
that.updata.receiveAddress = res.data[0].areaName + res.data[0].receiveAddress
|
that.updata.receiveAddress = res.data[0].areaName + res.data[0]
|
||||||
|
.receiveAddress
|
||||||
that.updata.phone = res.data[0].receivePhone
|
that.updata.phone = res.data[0].receivePhone
|
||||||
that.userid = res.data[0].id
|
that.userid = res.data[0].id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,12 +118,14 @@
|
|||||||
<view class="bodys" @tap='upaddress()'>
|
<view class="bodys" @tap='upaddress()'>
|
||||||
<view class="addressinfo">
|
<view class="addressinfo">
|
||||||
<image src="../../static/locatinsmall.png" mode=""></image>
|
<image src="../../static/locatinsmall.png" mode=""></image>
|
||||||
<view class="namephone" v-if='userid'>
|
<span v-if="loginFlag">
|
||||||
{{updata.receiver}},{{updata.phone}}
|
<view class="namephone" v-if='userid'>
|
||||||
</view>
|
{{updata.receiver}},{{updata.phone}}
|
||||||
<view class="address" v-if='userid'>
|
</view>
|
||||||
{{updata.receiveAddress}}
|
<view class="address" v-if='userid'>
|
||||||
</view>
|
{{updata.receiveAddress}}
|
||||||
|
</view>
|
||||||
|
</span>
|
||||||
<view class="namephone" v-else>
|
<view class="namephone" v-else>
|
||||||
前往完善个人信息
|
前往完善个人信息
|
||||||
</view>
|
</view>
|
||||||
@ -245,7 +247,8 @@
|
|||||||
"phone": "18963146613",
|
"phone": "18963146613",
|
||||||
"receiveAddress": null,
|
"receiveAddress": null,
|
||||||
"receiver": null,
|
"receiver": null,
|
||||||
}
|
},
|
||||||
|
loginFlag: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -270,6 +273,13 @@
|
|||||||
var that = this
|
var that = this
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
|
AppIdentification(value).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
if (res.data.loginFlag) {
|
||||||
|
that.loginFlag = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
that.updata.patientId = value
|
that.updata.patientId = value
|
||||||
goodPatientInfo(value).then(res => {
|
goodPatientInfo(value).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user