tang 3 lat temu
rodzic
commit
a6bcf399b2
1 zmienionych plików z 9 dodań i 9 usunięć
  1. 9 9
      index.html

+ 9 - 9
index.html

@@ -458,11 +458,11 @@
458 458
                     paySign: paysign, // 支付签名
459 459
                     success: (res) => {
460 460
                         // 支付成功后的回调函数
461
-                        // window.location.replace("./Paytocomplete.html")
462
-                        window.location.href = path +"./Paytocomplete.html";
463
-                        // 跳完成支付页面
461
+                        // location.replace("./Paytocomplete.html")
462
+                        // // window.location.replace("./Paytocomplete.html")
463
+                        // window.location.href = path + "./Paytocomplete.html";
464 464
                         //结束loading
465
-                        // alert('支付成功');
465
+                        alert('支付成功');
466 466
                     },
467 467
                     // cancel: function (res) {
468 468
                     //      结束loading
@@ -486,11 +486,11 @@
486 486
                 tradeNO: pay_info.tradeNO, // 必传,此使用方式下该字段必传
487 487
             }, function (result) {
488 488
                 if (result.resultCode == '9000') {
489
-                        location.replace("./Paytocomplete.html");
490
-						money = '';
491
-					} else {
492
-                        alert("支付失败")
493
-					}
489
+                    location.replace("./Paytocomplete.html");
490
+                    money = '';
491
+                } else {
492
+                    alert("支付失败")
493
+                }
494 494
             });
495 495
         }
496 496
         //hash参数转对象