| 
					
				 | 
			
			
				@@ -240,14 +240,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       position="bottom" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       v-if="refundStatus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       style="border-radius: 0 !important" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      get-container="#app" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <m-refund 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @onClose="refundStatus = !refundStatus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         @onPopupSure="onRefundSure" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        useSystem="MALL" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :ids="[1]" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :showCoupon="false" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         :buyList="buyList" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        :balance="0" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        :balance="balance" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <!-- :balance="this.orderType == 1 ? balance : 0" --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </van-popup> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -348,12 +349,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       orderText: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  async mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 插入token 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (browser().android || browser().iPhone) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.headerStatus = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.__init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    await this.__init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     window.addEventListener("hashchange", this.onHash, false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -462,7 +463,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 确认退费规则 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (!this.refundSure && this.payCountMoney - this.marketAmount > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (!this.refundSure) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.refundStatus = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.hashState(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -540,8 +541,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const body = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           cartIds: ids, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           memberReceiveAddressId: this.addressInfo.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          orderAmount: this.payCountMoney, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           userId: this.studentId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          orderAmount: this.obj.amount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          useBalance: this.obj.payType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          couponId: this.obj.couponIdList.join(","), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         const res = await mallGenerateOrder(body); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (res.data.orderType == "success") { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -596,7 +599,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     async onChangeStatus(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.isStatus = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.__init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      await this.__init(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.obj = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.payType = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.calcPrice(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -605,7 +609,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 确认退费规则 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (!this.refundSure && this.payCountMoney > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (!this.refundSure) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.refundStatus = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -715,7 +719,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.goodsNum > 1 ? `${item.name} * ${item.goodsNum}` : item.name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: "购买", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           price: price, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          couponType: this.couponObj[item.type], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          couponType: "MALLCOUPON", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         tempPrice += price; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.groupPrice += price; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1044,4 +1048,4 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     height: 0.2rem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-</style> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+</style> 
			 |