tang vor 3 Jahren
Ursprung
Commit
5652f687d3
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      index.html

+ 4 - 2
index.html

@@ -457,12 +457,15 @@
457 457
                     signType: signType, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
458 458
                     paySign: paysign, // 支付签名
459 459
                     success: (res) => {
460
+                        if(res.err_msg == "get_brand_wcpay_request:ok"){
461
+                            alert("支付成功");
462
+                            //点支付成功,就到这里进行跳转,这里可以写需要跳转得地址
463
+                        }
460 464
                         // 支付成功后的回调函数
461 465
                         // location.replace("./Paytocomplete.html")
462 466
                         // window.location.replace("./Paytocomplete.html")
463 467
                         // window.location.href = path + "./Paytocomplete.html";
464 468
                         //结束loading
465
-                        alert(res,'支付成功');
466 469
                     },
467 470
                     // cancel: function (res) {
468 471
                     //      结束loading
@@ -487,7 +490,6 @@
487 490
             }, function (result) {
488 491
                 if (result.resultCode == '9000') {
489 492
                     location.replace("./Paytocomplete.html");
490
-                    alert(JSON.parse(result))
491 493
                     money = '';
492 494
                 } else {
493 495
                     alert("支付失败")