Commit 37908332 authored by liwei's avatar liwei

liwei

parent caf46c37
...@@ -83,11 +83,6 @@ ...@@ -83,11 +83,6 @@
<div class="tip" v-if="deliverDetail || noDeliverDetail"> <div class="tip" v-if="deliverDetail || noDeliverDetail">
<p>*预计发货时间内不可修改地址,若有需要请联系您的专属班主任老师</p> <p>*预计发货时间内不可修改地址,若有需要请联系您的专属班主任老师</p>
</div> </div>
<div
class
v-if="addressInfo"
style="text-align: center;padding-top: 20vh;font-size: 5vw;"
>{{addressInfo.msg}}</div>
</div> </div>
<!-- <div class="address2"> <!-- <div class="address2">
<div class="content"> <div class="content">
...@@ -138,40 +133,34 @@ export default { ...@@ -138,40 +133,34 @@ export default {
// msg: "该用户没有物流信息" // msg: "该用户没有物流信息"
// }; // };
if (res) { if (res) {
if (res.code == 505) { if (res.deliver_detail && res.deliver_detail.length > 0) {
if (res.message) { this.deliverDetail = res.deliver_detail[0];
this.addressInfo = res; if (
!this.deliverDetail.receive_name ||
this.deliverDetail.receive_name.length === 0 ||
!this.deliverDetail.receive_mobile ||
this.deliverDetail.receive_mobile.length === 0 ||
!this.deliverDetail.address ||
this.deliverDetail.address.length === 0
) {
this.isShowCurrent = false;
} else {
this.isShowCurrent = true;
} }
} else { }
if (res.deliver_detail && res.deliver_detail.length > 0) { if (res.no_deliver_detail && res.no_deliver_detail.length > 0) {
this.deliverDetail = res.deliver_detail[0]; this.noDeliverDetail = res.no_deliver_detail[0];
if ( if (
!this.deliverDetail.receive_name || !this.noDeliverDetail.receive_name ||
this.deliverDetail.receive_name.length === 0 || this.noDeliverDetail.receive_name.length === 0 ||
!this.deliverDetail.receive_mobile || !this.noDeliverDetail.receive_mobile ||
this.deliverDetail.receive_mobile.length === 0 || this.noDeliverDetail.receive_mobile.length === 0 ||
!this.deliverDetail.address || !this.noDeliverDetail.address ||
this.deliverDetail.address.length === 0 this.noDeliverDetail.address.length === 0
) { ) {
this.isShowCurrent = false; this.isShowNext = false;
} else { } else {
this.isShowCurrent = true; this.isShowNext = true;
}
}
if (res.no_deliver_detail && res.no_deliver_detail.length > 0) {
this.noDeliverDetail = res.no_deliver_detail[0];
if (
!this.noDeliverDetail.receive_name ||
this.noDeliverDetail.receive_name.length === 0 ||
!this.noDeliverDetail.receive_mobile ||
this.noDeliverDetail.receive_mobile.length === 0 ||
!this.noDeliverDetail.address ||
this.noDeliverDetail.address.length === 0
) {
this.isShowNext = false;
} else {
this.isShowNext = true;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment