Browse Source

h5支付操作

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

+ 2 - 2
index.html

@@ -459,7 +459,7 @@
459
                     success: (res) => {
459
                     success: (res) => {
460
                         // 支付成功后的回调函数
460
                         // 支付成功后的回调函数
461
                         // location.replace("./Paytocomplete.html")
461
                         // location.replace("./Paytocomplete.html")
462
-                        // // window.location.replace("./Paytocomplete.html")
462
+                        // window.location.replace("./Paytocomplete.html")
463
                         // window.location.href = path + "./Paytocomplete.html";
463
                         // window.location.href = path + "./Paytocomplete.html";
464
                         //结束loading
464
                         //结束loading
465
                         alert(res,'支付成功');
465
                         alert(res,'支付成功');
@@ -476,7 +476,6 @@
476
             });
476
             });
477
             wx.error(function (res) {
477
             wx.error(function (res) {
478
                 console.log('res', res);
478
                 console.log('res', res);
479
-                alert(111)
480
             });
479
             });
481
 
480
 
482
         }
481
         }
@@ -488,6 +487,7 @@
488
             }, function (result) {
487
             }, function (result) {
489
                 if (result.resultCode == '9000') {
488
                 if (result.resultCode == '9000') {
490
                     location.replace("./Paytocomplete.html");
489
                     location.replace("./Paytocomplete.html");
490
+                    alert(result)
491
                     money = '';
491
                     money = '';
492
                 } else {
492
                 } else {
493
                     alert("支付失败")
493
                     alert("支付失败")