Browse Source

h5支付操作

tang 3 years ago
parent
commit
8839743386
1 changed files with 2 additions and 4 deletions
  1. 2 4
      index.html

+ 2 - 4
index.html

@@ -446,7 +446,7 @@
446
                         console.log(res, '微信支付返回值');
446
                         console.log(res, '微信支付返回值');
447
                     },
447
                     },
448
                     fail: function (res) {
448
                     fail: function (res) {
449
-                        console.log(res, '错误1');
449
+                        console.log(res, '错误');
450
                     }
450
                     }
451
                 });
451
                 });
452
                 wx.chooseWXPay({
452
                 wx.chooseWXPay({
@@ -458,9 +458,7 @@
458
                     paySign: paysign, // 支付签名
458
                     paySign: paysign, // 支付签名
459
                     success: (res) => {
459
                     success: (res) => {
460
                         // 支付成功后的回调函数
460
                         // 支付成功后的回调函数
461
-                        // location.replace("./Paytocomplete.html");
462
-                        location.href="./Paytocomplete.html"
463
-                        money = '';
461
+                        window.location.replace("./Paytocomplete.html")
464
                         // 跳完成支付页面
462
                         // 跳完成支付页面
465
                         //结束loading
463
                         //结束loading
466
                         // alert('支付成功');
464
                         // alert('支付成功');