소스 검색

h5支付操作

tang 3 년 전
부모
커밋
8839743386
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      index.html

+ 2 - 4
index.html

@@ -446,7 +446,7 @@
446 446
                         console.log(res, '微信支付返回值');
447 447
                     },
448 448
                     fail: function (res) {
449
-                        console.log(res, '错误1');
449
+                        console.log(res, '错误');
450 450
                     }
451 451
                 });
452 452
                 wx.chooseWXPay({
@@ -458,9 +458,7 @@
458 458
                     paySign: paysign, // 支付签名
459 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 463
                         //结束loading
466 464
                         // alert('支付成功');