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