diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue index e953b1a..fe8794e 100644 --- a/pages/CommodityDetails/CommodityDetails.vue +++ b/pages/CommodityDetails/CommodityDetails.vue @@ -87,12 +87,14 @@ - - {{updata.receiver}},{{updata.phone}} - - - {{updata.receiveAddress}} - + + + {{updata.receiver}},{{updata.phone}} + + + {{updata.receiveAddress}} + + 前往完善个人信息 @@ -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 } diff --git a/pages/integral/integral.vue b/pages/integral/integral.vue index 93e70c5..18c09b5 100644 --- a/pages/integral/integral.vue +++ b/pages/integral/integral.vue @@ -118,12 +118,14 @@ - - {{updata.receiver}},{{updata.phone}} - - - {{updata.receiveAddress}} - + + + {{updata.receiver}},{{updata.phone}} + + + {{updata.receiveAddress}} + + 前往完善个人信息 @@ -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) {