瀏覽代碼

物流信息部分调整

DELL 3 年之前
父節點
當前提交
bb5b4c6bb6
共有 2 個文件被更改,包括 13 次插入9 次删除
  1. 1 1
      pages/about/index.vue
  2. 12 8
      pages/order/logistics.vue

+ 1 - 1
pages/about/index.vue

@@ -4,7 +4,7 @@
 		<view class="about">
 			<view class="flex about-logo">
 				<image src="../../static/logo.png" mode=""></image>
-				<view class="edition">v 1.1.4</view>
+				<view class="edition">v 1.1.5</view>
 			</view>
 			<view class="about-action">
 				<u-cell-group :border="false">

+ 12 - 8
pages/order/logistics.vue

@@ -3,14 +3,16 @@
 		<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-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 class="detail-info">
 			<view class="detail-info-title">商品信息</view>
 			<view class="detail-info-content">
 				<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="img">
 								<image class="img" :src="item.picUrl" mode="aspectFill">
@@ -72,12 +74,14 @@
 				}],
 				orderId: '',
 				deliverList: [{
-					companyName:'',
+					companyName: '',
 				}],
-				deliverListData:[
-					[{companyName:''}]
+				deliverListData: [
+					[{
+						companyName: ''
+					}]
 				],
-				ListData:[],
+				ListData: [],
 				listIndex: 0,
 				logistics: '',
 
@@ -103,7 +107,7 @@
 						let picUrlArr = item.picUrl.split(',')
 						item.picUrl = env.filePublic + picUrlArr[0] + '?imageView2/2/w/170'
 					})
-					
+
 					res.data.deliverList && res.data.deliverList.forEach((item) => {
 						item.items.forEach((ele) => {
 							let picUrlArr = ele.picUrl.split(",");
@@ -138,7 +142,7 @@
 					deliveryId: this.deliverListData[this.listIndex][0].deliveryId,
 				}
 				$http.post('/api/v1/mp/logistics/query', data).then(res => {
-					if(res.code == 500) {
+					if (res.code == 500) {
 						uni.hideToast();
 					}
 					if (res.code == 0) {