Эх сурвалжийг харах

fix:订单详情页支付优化

zhanghui 2 жил өмнө
parent
commit
bffe767332

+ 3 - 5
orderPages/orderDetail/index.vue

@@ -314,7 +314,6 @@
 					uni.showToast({
 						title: '支付成功!'
 					});
-					that.$refs.popup.close()
 					that.getOrderDetailByOrderId(that.orderId)
 				}).catch((err)=>{
 					this.requestStatus=false
@@ -354,6 +353,7 @@
 				uni.showLoading({
 					title: '支付中'
 				});
+				this.$refs.popup.close()
 				let that =this
 				if (this.curServiceTab===1){
 					// that.password = '';
@@ -379,7 +379,6 @@
 									title: '支付成功!'
 								});
 								that.getOrderDetailByOrderId(that.orderId)
-								that.$refs.popup.close()
 							},
 							fail: res => {
 								this.requestStatus=false
@@ -388,7 +387,6 @@
 									content: '支付失败',
 									showCancel: false
 								});
-								that.$refs.popup.close()
 							}
 						});
 					})
@@ -498,9 +496,9 @@
 			},
 			payItem(num){
 				console.log('this.userInfo.balance',this.userInfo.balance*1)
-				console.log('this.price',this.allPrice*1)
+				console.log('this.price',this.order.totalAmount*1)
 
-				if (this.userInfo.balance*1 < this.allPrice*1 && num == 1){
+				if (this.userInfo.balance*1 < this.order.totalAmount*1 && num == 1){
 					return
 				}
 				this.curServiceTab = num