Fix:3180 【商城小程序】已完成、已退款订单详情页中物流显示“暂无物流轨迹”,实际存在物流轨迹
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="reject-reason" v-if="orderInfo._status._type==-3 && orderInfo.refundRejectReason">驳回原因:{{ orderInfo.refundRejectReason }}</view> -->
|
<!-- <view class="reject-reason" v-if="orderInfo._status._type==-3 && orderInfo.refundRejectReason">驳回原因:{{ orderInfo.refundRejectReason }}</view> -->
|
||||||
<view v-if="orderInfo._status._type == -2 || orderInfo._status._type == 4 || orderInfo._status._type == 3 || (orderInfo._status._type == 2 && orderInfo.isTickets!==1)">
|
<view v-if="orderInfo._status._type == -1 || orderInfo._status._type == -2 || orderInfo._status._type == 4 || orderInfo._status._type == 3 || (orderInfo._status._type == 2 && orderInfo.isTickets!==1)">
|
||||||
<view v-if="index < 2 || showMoreDeliver" v-for="(delivery, index) in orderInfo.deliveryInfo" :key="index" class="v12-radius-20 v12-white v12-pa-3 v12-mt-4">
|
<view v-if="index < 2 || showMoreDeliver" v-for="(delivery, index) in orderInfo.deliveryInfo" :key="index" class="v12-radius-20 v12-white v12-pa-3 v12-mt-4">
|
||||||
<view>
|
<view>
|
||||||
<text class="v12-secondary-dark-text v12-font-28">{{ delivery.deliveryName }}:{{ delivery.deliveryId }}</text>
|
<text class="v12-secondary-dark-text v12-font-28">{{ delivery.deliveryName }}:{{ delivery.deliveryId }}</text>
|
||||||
@@ -42,14 +42,14 @@
|
|||||||
<view class="v12-align-center v12-mr-2">
|
<view class="v12-align-center v12-mr-2">
|
||||||
<image class="logo" :src="webUrl+'/orderIcon/car.png'" mode="" style="margin-right:0; width: 32rpx; height:32rpx"/>
|
<image class="logo" :src="webUrl+'/orderIcon/car.png'" mode="" style="margin-right:0; width: 32rpx; height:32rpx"/>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-28 v12-secondary-dark-text">{{ logistics.Traces && logistics.Traces.length > 0 ? logistics.Traces[logistics.Traces.length - 1].acceptStation : '暂无轨迹信息'}}</view>
|
<view class="v12-font-28 v12-secondary-dark-text">{{ logistics[index] && logistics[index].Traces && logistics[index].Traces.length > 0 ? logistics[index] && logistics[index].Traces[logistics[index].Traces.length - 1].acceptStation : '暂无轨迹信息'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-2">
|
<view class="v12-mt-2">
|
||||||
<text class="v12-dark-text v12-font-24">{{ logistics.Traces && logistics.Traces.length > 0 ? logistics.Traces[logistics.Traces.length - 1].acceptTime : '' }}</text>
|
<text class="v12-dark-text v12-font-24">{{ logistics[index] && logistics[index].Traces && logistics[index].Traces.length > 0 ? logistics[index] && logistics[index].Traces[logistics[index].Traces.length - 1].acceptTime : '' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-center v12-mt-3" v-if="orderInfo.deliveryInfo.length > 2">
|
<view class="v12-justify-center v12-mt-3" v-if="orderInfo.deliveryInfo.length > 2">
|
||||||
@@ -553,17 +553,17 @@ export default {
|
|||||||
this.showMore = false
|
this.showMore = false
|
||||||
// this.$forceUpdate()
|
// this.$forceUpdate()
|
||||||
},
|
},
|
||||||
getExpressInfo() {
|
getExpressInfo(delivery, i) {
|
||||||
let params = {
|
let params = {
|
||||||
orderCode: this.orderInfo.id,
|
orderCode: this.orderInfo.id,
|
||||||
shipperCode: this.orderInfo.deliverySn,
|
shipperCode: delivery.deliverySn,
|
||||||
logisticCode: this.orderInfo.deliveryId
|
logisticCode: delivery.deliveryId
|
||||||
};
|
};
|
||||||
express(params)
|
express(params)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const {success, data} = res
|
const {success, data} = res
|
||||||
if(success) {
|
if(success) {
|
||||||
this.logistics = data || {}
|
this.logistics[i] = data || {}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -913,8 +913,11 @@ export default {
|
|||||||
this.system_store = res.data.systemStore || {};
|
this.system_store = res.data.systemStore || {};
|
||||||
this.mapKey = res.data.mapKay;
|
this.mapKey = res.data.mapKay;
|
||||||
this.setOfflinePayStatus(this.orderInfo.offlinePayStatus);
|
this.setOfflinePayStatus(this.orderInfo.offlinePayStatus);
|
||||||
if(this.orderInfo._status._type == 3 || (this.orderInfo._status._type == 2 && this.orderInfo.isTickets!==1)) {
|
const orderInfo = this.orderInfo
|
||||||
this.getExpressInfo()
|
if(orderInfo._status._type == -1 || orderInfo._status._type == -2 || orderInfo._status._type == 4 || orderInfo._status._type == 3 || (orderInfo._status._type == 2 && orderInfo.isTickets!==1)) {
|
||||||
|
for(let i = 0; i < orderInfo.deliveryInfo.length; i++) {
|
||||||
|
this.getExpressInfo(orderInfo.deliveryInfo[i], i)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|||||||
Reference in New Issue
Block a user