Fix:【商城小程序】待收货、待评价订单详情页—物流区域,没有显示最新一条物流信息
This commit is contained in:
@@ -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 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>
|
||||||
<view>
|
<view>
|
||||||
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
<uni-icons type="right" size="20" color="#707070"></uni-icons>
|
||||||
@@ -504,8 +504,11 @@ export default {
|
|||||||
};
|
};
|
||||||
express(params)
|
express(params)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.logistics = res.data || {}
|
const {success, data} = res
|
||||||
console.log(this.logistics);
|
if(success) {
|
||||||
|
this.logistics = data || {}
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user