瀏覽代碼

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

ljc 3 月之前
父節點
當前提交
32aa157efa
共有 1 個文件被更改,包括 15 次插入7 次删除
  1. 15 7
      js/forget.js

+ 15 - 7
js/forget.js

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