| 
					
				 | 
			
			
				@@ -12,7 +12,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         	:scrollable="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         	:list="tabList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         	:current="tabCurrent" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        	@click="changeTab" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        	@click="clickTab" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         	lineColor="#01C30B" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         	:activeStyle="{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         		color: '#01C30B' 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,7 +31,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <image src="@/static/common/logo.png"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="user"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <view class="name">{{item.userName}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <view class="time">{{item.goodsCreateTime}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <view class="time">{{item.goodsCreateTime | timeFilter}}发布</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="status">{{item.status | statusFilter}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,9 +45,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <view class="total">订单总金额<text>{{item.price | priceFilter2}}</text></view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <view class="bottom"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <view class="left-location"><text class="iconfont icon-dingwei"></text>{{item.address}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <view class="left-location"><text class="iconfont icon-dingwei"></text>{{item.city}} {{item.area}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="right-btn" @tap.stop> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <u-button text="取消订单" shape="circle"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <u-button text="查看物流" shape="circle" @tap="toLogistics(item.logisticsNum)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -81,12 +82,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         imageUrl: this.$imageUrl, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         tabList: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '全部', value: 1}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '待付款', value: 2}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '待发货', value: 3}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '待收货', value: 4}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '已收货', value: 5}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          {name: '售后中', value: 6}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '全部', value: 0}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '待付款', value: 1}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '待发货', value: 2}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '待收货', value: 3}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '已收货', value: 4}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {name: '售后中', value: 5}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         tabCurrent: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         dataList: [], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -104,11 +105,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //获取列表数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       async getList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const statusMap = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          0: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          1: 'WAIT', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          2: 'WAIT_SEND', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          3: 'SEND', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          4: 'COMPLETE', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          5: 'AFTER_WAIT', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$api.post('/orderPay/list', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           pageNum: this.pageNum, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           pageSize: 10, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           params: [{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            param: 'a.user_id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            param: 'a.status', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            compare: '=', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            value: statusMap[this.tabCurrent] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            param: 'a.buyer_user_id', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             compare: '=', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             value: this.$store.state.user.userId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,9 +150,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 触发下拉刷新 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       refresherrefresh(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       	this.refresherTriggered = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      	this.dataList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      	this.pageNum = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      	this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      	this.refreshLish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      refreshLish() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.dataList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.pageNum = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.getList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      clickTab(item) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.tabCurrent = item.value; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.refreshLish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       toDetail(id) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -148,6 +170,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      toLogistics(logisticsNum) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          url: `/pages/mine/myBuy/logistics?logisticsNum=${logisticsNum}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   // #endif 
			 |