cmy 3 anos atrás
pai
commit
3ba26e87a2
1 arquivos alterados com 7 adições e 4 exclusões
  1. 7 4
      pages/product/product.vue

+ 7 - 4
pages/product/product.vue

@@ -149,7 +149,7 @@
 				orderId: '', //订单编号
 				moneyAll: '', //购物车订单
 				now_money: 0, //余额
-				payLoding: false, //判断是否支付中
+				payLoding: true, //判断是否支付中
 				orderKey: '', //订单的key值
 				addressData: {}, //地址信息
 				shopList: [], //商品列表
@@ -282,9 +282,11 @@
 					title: "支付中",
 					mask: true
 				})
+				// 判断是否支付中
 				if (!obj.payLoding) {
 					return
 				}
+				obj.payLoding = false;
 				if (obj.type == 'weixin') {
 					obj.$api.msg('微信暂未开通!')
 					uni.hideLoading()
@@ -293,6 +295,7 @@
 				}
 				// 判断是否是市场进入
 				if (obj.isSc == 1) {
+					console.log('sc');
 					obj.marketPay();
 				}
 				// 判断是否是市场进入
@@ -312,7 +315,7 @@
 						obj.paySuccessTo();
 					}
 					if (obj.type == 'ali') {
-						const url = res.data.result.payConfig;
+						const url = res.data.payConfig;
 						console.log(url, 'url');
 						uni.requestPayment({
 							provider: 'alipay',
@@ -371,7 +374,7 @@
 								showCancel: false
 							});
 							uni.hideLoading();
-							obj.payLoding = false;
+							obj.payLoding = true;
 							return;
 						}
 						// 保存订单号
@@ -390,7 +393,7 @@
 					})
 					.catch(e => {
 						uni.hideLoading();
-						obj.payLoding = false;
+						obj.payLoding = true;
 						console.log(e, '123456789');
 					});
 			},