Commit 37908332 authored by liwei's avatar liwei

liwei

parent caf46c37
......@@ -83,11 +83,6 @@
<div class="tip" v-if="deliverDetail || noDeliverDetail">
<p>*预计发货时间内不可修改地址,若有需要请联系您的专属班主任老师</p>
</div>
<div
class
v-if="addressInfo"
style="text-align: center;padding-top: 20vh;font-size: 5vw;"
>{{addressInfo.msg}}</div>
</div>
<!-- <div class="address2">
<div class="content">
......@@ -138,40 +133,34 @@ export default {
// msg: "该用户没有物流信息"
// };
if (res) {
if (res.code == 505) {
if (res.message) {
this.addressInfo = res;
if (res.deliver_detail && res.deliver_detail.length > 0) {
this.deliverDetail = res.deliver_detail[0];
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) {
this.deliverDetail = res.deliver_detail[0];
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;
}
}
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;
}
}
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