Переглянути джерело

Merge branch 'master' of https://git.nanodreamtech.com/Boss/yizhizan-h5

wkw 7 місяців тому
батько
коміт
118cc933f5
2 змінених файлів з 9 додано та 6 видалено
  1. 7 5
      my/vip/index.vue
  2. 2 1
      pages/my/index.vue

+ 7 - 5
my/vip/index.vue

@@ -422,6 +422,7 @@ export default {
       if (that.isTrue == false) {
         return;
       }
+	  console.log('进入支付')
       that.isTrue = false;
       if (this.openWay == 2) {
         // #ifdef APP-PLUS
@@ -502,9 +503,9 @@ export default {
         // APP支付宝支付
         // #ifdef APP
         this.$Request
-          .post("/app/aliPay/payMoneyOrder", {
+          .postJson("/app/aliPay/payMoneyOrder", {
             classify: 4,
-            money: this.vipPrice,
+            money: 0.1,
             type: 2,
           })
           .then((ret) => {
@@ -515,7 +516,7 @@ export default {
         // #endif
         // #ifdef H5
         let data = {
-          classify: 5,
+          classify: 4,
           money: this.vipPrice,
           type: 2,
         };
@@ -525,8 +526,8 @@ export default {
             that.isTrue = true;
             const div = document.createElement("div");
             div.innerHTML = res.data; //此处form就是后台返回接收到的数据
-            document.body.appendChild(div);
-            document.forms[0].submit();
+            // document.body.appendChild(div);
+            // document.forms[0].submit();
           } else {
             that.isTrue = true;
             uni.showToast({
@@ -680,6 +681,7 @@ export default {
         });
         return;
       }
+	  console.log('准备支付')
       this.show = true;
     },
     //会员简历刷新次数

+ 2 - 1
pages/my/index.vue

@@ -1259,7 +1259,8 @@
 			goVipUpgrade() {
 				if (uni.getStorageSync("token")) {
 					uni.navigateTo({
-						url: "/pages/my/VIP/benefits",
+						//url: "/pages/my/VIP/benefits",
+						url: "/my/vip/index"
 					});
 				} else {
 					this.noLogin();