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

This commit is contained in:
linxi
2024-09-20 14:32:45 +08:00
parent 43a26d4943
commit fafd862f99
+6 -3
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 v12-secondary-dark-text">{{ logistics.Traces.length > 0 ? logistics.Traces[0] : '暂无轨迹信息'}}</view>
<view class="v12-font-28 v12-secondary-dark-text">{{ logistics.Traces && logistics.Traces.length > 0 ? logistics.Traces[0].acceptStation : '暂无轨迹信息'}}</view>
</view>
<view>
<uni-icons type="right" size="20" color="#707070"></uni-icons>
@@ -504,8 +504,11 @@ export default {
};
express(params)
.then(res => {
this.logistics = res.data || {}
console.log(this.logistics);
const {success, data} = res
if(success) {
this.logistics = data || {}
}
})
.catch(err => {
// uni.showToast({