wangguoyu il y a 2 mois
Parent
commit
3a65e022a8
3 fichiers modifiés avec 12 ajouts et 14 suppressions
  1. 1 0
      common/styles/global/pages.scss
  2. 11 14
      pages/pay/svip.vue
  3. BIN
      static/images/pay/svip-btn-bj-hui.png

+ 1 - 0
common/styles/global/pages.scss

@@ -1032,6 +1032,7 @@
 		}
 		.open-svip-btn-hui{
 			background-image: url("@/static/images/pay/svip-btn-bj-hui.png");
+			color: #BA9D7F;
 		}
 	}
 	

+ 11 - 14
pages/pay/svip.vue

@@ -162,7 +162,7 @@
 
 	function genggaiVip() {
 		uni.hideLoading();
-		disabled.value = false
+		//disabled.value = false
 		cacheManager.updateVipStatus('auth', cardId.value)
 		cacheManager.updateObject('auth', {
 			growthType: 1
@@ -219,14 +219,14 @@
 					applePay()
 				} else {
 					uni.hideLoading();
-					disabled.value = false
+					//disabled.value = false
 					return false
 					console.log('请求失败');
 				}
 			}).catch((e) => {
 				uni.hideLoading();
 				disabled.value = false
-				console.log('创建订单失败');
+			toast("订单创建失败")
 				return false
 
 			})
@@ -251,7 +251,7 @@
 				console.log('resiapChanneliapChanneliapChannel', res);
 				genggaiVip()
 			} else {
-				disabled.value = false
+				//disabled.value = false
 				iapChannel.finishTransaction(data.transactionIdentifier)
 				uni.hideLoading();
 				toast("苹果内购失败")
@@ -304,7 +304,7 @@
 											//支付成功回调,前端调用后台接口
 										},
 										fail: (e) => {
-											disabled.value = false
+										//	disabled.value = false
 											uni.hideLoading();
 											toast("苹果内购失败")
 											console.info("苹果内购失败", e)
@@ -330,7 +330,7 @@
 				content: e.message,
 				showCancel: false
 			});
-			disabled.value = false
+		//	disabled.value = false
 		} finally {
 			uni.hideLoading();
 		}
@@ -412,7 +412,7 @@
 			});
 		}).catch((error) => {
 			uni.hideLoading();
-			disabled.value = false
+		//	disabled.value = false
 
 			console.log(error);
 		})
@@ -449,9 +449,7 @@
 										.data) {
 										genggaiVip()
 									} else {
-										disabled
-											.value =
-											false
+									//	disabled.value =false
 										toast(
 											"开通失败,请联系管理员!"
 										)
@@ -460,8 +458,7 @@
 										return false
 									}
 								}).catch(() => {
-									disabled.value =
-										false
+								//	disabled.value =false
 									uni.hideLoading();
 									toast("check接口报错")
 									return false
@@ -469,14 +466,14 @@
 							}, 5000)
 						}
 					}).catch(() => {
-						disabled.value = false
+					//	disabled.value = false
 						uni.hideLoading();
 						toast("check接口报错")
 						return false
 					})
 				},
 				fail: function(err) {
-					disabled.value = false
+				//	disabled.value = false
 					//  toast('支付失败:' + JSON.stringify(err));
 					console.log('支付失败:' + JSON.stringify(err));
 					uni.hideLoading();

BIN
static/images/pay/svip-btn-bj-hui.png