| 
					
				 | 
			
			
				@@ -36,11 +36,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="status">{{item.status | statusFilter}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <view class="goods"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          <image :src="imageUrl + item.goodsPicUrl"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <image :src="imageUrl + item.goodsPicUrl" mode="aspectFill"></image> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="main"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <view class="name">{{item.goodsTitle}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <view class="name">{{item.goodsTitle}}<text>×{{item.num}}</text></view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <view class="des">{{item.content}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <view class="price"><text>{{item.goodsAmount | priceFilter2}}</text>数量:{{item.num}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <view class="price">{{item.goodsAmount | priceFilter2}}</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <view class="total">订单总金额<text>{{item.price | priceFilter2}}</text></view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,15 +49,25 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <view class="right-btn" @tap.stop> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <block v-if="item.status == 'WAIT'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              <u-button text="取消订单" shape="circle"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <u-button text="取消订单" shape="circle" @click="cancelOrder(item.orderId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <u-button text="去支付" shape="circle" type="primary" plain @tap="toPay(item.goodsId, item.orderId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </block> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <block v-if="item.status == 'WAIT_SEND'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <u-button text="联系卖家" shape="circle" @tap="toContact(item.goodsId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </block> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <block v-if="~['SEND', 'COMPLETE'].indexOf(item.status)"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <u-button text="查看物流" shape="circle" @tap="toLogistics(item.logisticsNum)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </block> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <u-button text="申请售后" shape="circle" @tap="toReturn(item.orderId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <block v-if="item.status == 'SEND'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <u-button text="确认收货" shape="circle" type="primary" plain @tap="confirmReceipt(item.orderId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </block> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <block v-if="item.status == 'COMPLETE'"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <u-button text="申请售后" shape="circle" @tap="toReturn(item.orderId)"></u-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </block> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -180,29 +190,70 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.refreshLish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 取消支付 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      cancelOrder(orderId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$modal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          content: '确认取消支付吗?' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$api.postJson('/orderPay/wait/notPay', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            userId: this.$store.state.user.userId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            orderId: orderId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$successToast(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.refreshLish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 确认收货 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      confirmReceipt(orderId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$modal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          content: '确定要确认收货吗?' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$api.postJson('/orderPay/confirm', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            userId: this.$store.state.user.userId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            orderId: orderId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.$successToast(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.refreshLish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 去订单详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       toDetail(orderId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           url: `/pages/mine/myBuy/detail?orderId=${orderId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 查看物流 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       toLogistics(logisticsNum) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           url: `/pages/mine/myBuy/logistics?logisticsNum=${logisticsNum}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 去支付 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       toPay(goodsId, orderId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           url: `/pages/goods/order?goodsId=${goodsId}&orderId=${orderId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 去申请售后 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       toReturn(orderId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           url: `/pages/mine/myBuy/return?orderId=${orderId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 去联系 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      toContact(goodsId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          url: `/pages/message/msgView?goodsId=${goodsId}` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 |