Ver código fonte

feat:支付页面成功或者取消后跳转空白页。

ljc 3 meses atrás
pai
commit
32aa157efa
1 arquivos alterados com 15 adições e 7 exclusões
  1. 15 7
      js/forget.js

+ 15 - 7
js/forget.js

@@ -19,6 +19,7 @@ var content = {
     success:'成功',
     timeout:'订单已过期!',
     orderTip:'找不到该订单或订单已过期!',
+    orderSuccess:'收款方核实中,请耐心等待入账,详情请登录会员中心查询资金明细!',
   },
   'en':{
     item1:'Order',
@@ -39,6 +40,7 @@ var content = {
     success:'success',
     timeout:'订单已过期!',
     orderTip:'找不到该订单或订单已过期!',
+    orderSuccess:'收款方核实中,请耐心等待入账,详情请登录会员中心查询资金明细!',
   }
 };
 let config = {
@@ -164,13 +166,19 @@ let vm = new Vue({
           //参数
         }).then(res => {//请求成功后的处理函数
           if (res.data.code == 200) {
-            this.$message({
-              message: this.lang.success,
-              type: 'success'
-            });
-            setTimeout(() => {
-              window.location.href = this.params.pickupUrl
-            }, 2000);
+            if (val == 1){
+              this.$message({
+                  message: this.lang.orderSuccess,
+                  type: 'success'
+              });
+            }
+            setTimeout(()=>{
+              window.location.href = 'about:blank'
+            },5000)
+
+            // setTimeout(() => {
+            //   window.location.href = this.params.pickupUrl
+            // }, 2000);
           } else {
             this.$message.error(res.data.msg);
           }