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"> <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">{{ logistics.reason }}</view> <view class="v12-font-28 v12-secondary-dark-text">{{ logistics.reason }}</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>
@@ -493,7 +493,6 @@ export default {
// inject: ["app"], // inject: ["app"],
mounted: function () { mounted: function () {
this.id = this.$yroute.query.id; this.id = this.$yroute.query.id;
this.getExpressInfo()
}, },
methods: { methods: {
copyClipboard, copyClipboard,
@@ -505,15 +504,16 @@ export default {
}; };
express(params) express(params)
.then(res => { .then(res => {
this.logistics = res.data this.logistics = res.data || {}
console.log(this.logistics);
}) })
.catch(err => { .catch(err => {
uni.showToast({ // uni.showToast({
title: // title:
err.msg || err.response.data.msg || err.response.data.message, // err.msg || err.response.data.msg || err.response.data.message,
icon: "none", // icon: "none",
duration: 2000 // duration: 2000
}); // });
}); });
}, },
goLogistics(order) { goLogistics(order) {
@@ -828,6 +828,7 @@ 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);
this.getExpressInfo()
}) })
.catch(err => { .catch(err => {
uni.showToast({ uni.showToast({