|
@@ -3,14 +3,16 @@
|
|
<u-navbar title="物流详情" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
|
|
<u-navbar title="物流详情" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
|
|
<!-- 物流信息 -->
|
|
<!-- 物流信息 -->
|
|
<view class="detail-info" v-if="deliverList.length>1?true:false">
|
|
<view class="detail-info" v-if="deliverList.length>1?true:false">
|
|
- <view class="detail-info-one" v-for="(item,index) in deliverList" :key="index" @click="jumpPosition(index)" :class="{'aside-active':listIndex === index}"> 包裹{{index+1}} </view>
|
|
|
|
|
|
+ <view class="detail-info-one" v-for="(item,index) in deliverList" :key="index" @click="jumpPosition(index)"
|
|
|
|
+ :class="{'aside-active':listIndex === index}"> 包裹{{index+1}} </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="detail-info">
|
|
<view class="detail-info">
|
|
<view class="detail-info-title">商品信息</view>
|
|
<view class="detail-info-title">商品信息</view>
|
|
<view class="detail-info-content">
|
|
<view class="detail-info-content">
|
|
<view class="detail-info-content-goods">
|
|
<view class="detail-info-content-goods">
|
|
- <view class="flex detail-info-content-goods__detail" v-for="(item,index) in deliverListData[listIndex]" :key="index">
|
|
|
|
|
|
+ <view class="flex detail-info-content-goods__detail"
|
|
|
|
+ v-for="(item,index) in deliverListData[listIndex]" :key="index">
|
|
<view class="detail-info-content-goods__detail__left">
|
|
<view class="detail-info-content-goods__detail__left">
|
|
<view class="img">
|
|
<view class="img">
|
|
<image class="img" :src="item.picUrl" mode="aspectFill">
|
|
<image class="img" :src="item.picUrl" mode="aspectFill">
|
|
@@ -72,12 +74,14 @@
|
|
}],
|
|
}],
|
|
orderId: '',
|
|
orderId: '',
|
|
deliverList: [{
|
|
deliverList: [{
|
|
- companyName:'',
|
|
|
|
|
|
+ companyName: '',
|
|
}],
|
|
}],
|
|
- deliverListData:[
|
|
|
|
- [{companyName:''}]
|
|
|
|
|
|
+ deliverListData: [
|
|
|
|
+ [{
|
|
|
|
+ companyName: ''
|
|
|
|
+ }]
|
|
],
|
|
],
|
|
- ListData:[],
|
|
|
|
|
|
+ ListData: [],
|
|
listIndex: 0,
|
|
listIndex: 0,
|
|
logistics: '',
|
|
logistics: '',
|
|
|
|
|
|
@@ -103,7 +107,7 @@
|
|
let picUrlArr = item.picUrl.split(',')
|
|
let picUrlArr = item.picUrl.split(',')
|
|
item.picUrl = env.filePublic + picUrlArr[0] + '?imageView2/2/w/170'
|
|
item.picUrl = env.filePublic + picUrlArr[0] + '?imageView2/2/w/170'
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
res.data.deliverList && res.data.deliverList.forEach((item) => {
|
|
res.data.deliverList && res.data.deliverList.forEach((item) => {
|
|
item.items.forEach((ele) => {
|
|
item.items.forEach((ele) => {
|
|
let picUrlArr = ele.picUrl.split(",");
|
|
let picUrlArr = ele.picUrl.split(",");
|
|
@@ -138,7 +142,7 @@
|
|
deliveryId: this.deliverListData[this.listIndex][0].deliveryId,
|
|
deliveryId: this.deliverListData[this.listIndex][0].deliveryId,
|
|
}
|
|
}
|
|
$http.post('/api/v1/mp/logistics/query', data).then(res => {
|
|
$http.post('/api/v1/mp/logistics/query', data).then(res => {
|
|
- if(res.code == 500) {
|
|
|
|
|
|
+ if (res.code == 500) {
|
|
uni.hideToast();
|
|
uni.hideToast();
|
|
}
|
|
}
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|