Fix: 【商城小程序】待收货、待评价订单详情页—物流区域,没有显示最新一条物流信息

This commit is contained in:
linxi
2024-09-19 15:35:23 +08:00
parent 0f582d6005
commit 51ecf9b3b2
+10 -9
View File
@@ -39,7 +39,7 @@
<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"/>
</view>
<view class="v12-font-28">{{ logistics.reason }}</view>
<view class="v12-font-28 v12-secondary-dark-text">{{ logistics.reason }}</view>
</view>
<view>
<uni-icons type="right" size="20" color="#707070"></uni-icons>
@@ -493,7 +493,6 @@ export default {
// inject: ["app"],
mounted: function () {
this.id = this.$yroute.query.id;
this.getExpressInfo()
},
methods: {
copyClipboard,
@@ -505,15 +504,16 @@ export default {
};
express(params)
.then(res => {
this.logistics = res.data
this.logistics = res.data || {}
console.log(this.logistics);
})
.catch(err => {
uni.showToast({
title:
err.msg || err.response.data.msg || err.response.data.message,
icon: "none",
duration: 2000
});
// uni.showToast({
// title:
// err.msg || err.response.data.msg || err.response.data.message,
// icon: "none",
// duration: 2000
// });
});
},
goLogistics(order) {
@@ -828,6 +828,7 @@ export default {
this.system_store = res.data.systemStore || {};
this.mapKey = res.data.mapKay;
this.setOfflinePayStatus(this.orderInfo.offlinePayStatus);
this.getExpressInfo()
})
.catch(err => {
uni.showToast({