lex-xin 5 年之前
父节点
当前提交
babaec1d22

文件差异内容过多而无法显示
+ 0 - 0
dist/app.8ea8b579809ca439a032.js


文件差异内容过多而无法显示
+ 0 - 0
dist/css/PaymentResult.4c8c82e7.css


文件差异内容过多而无法显示
+ 0 - 0
dist/css/PaymentResult.c7ddf093.css


文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 0 - 0
dist/js/PaymentResult.14ebfd74.js


文件差异内容过多而无法显示
+ 0 - 0
dist/js/PaymentResult.776dcbbc.js


+ 28 - 24
src/views/app/PaymentResult.vue

@@ -137,19 +137,21 @@ export default {
     },
     onAppBack() {
       // app回调页面
-      let courseApply = localStorage.getItem('courseApply')
+      // let courseApply = localStorage.getItem('courseApply')
       clearInterval(this.timer)
-      if(courseApply) {
-        window.location.replace(
-        window.location.href.toString().replace(window.location.hash, "") +
-          "#" + "/courseApply" );
-        this.$router.push("/courseApply");
-      } else {
-        window.location.replace(
-        window.location.href.toString().replace(window.location.hash, "") +
-          "#" + "/PeriodExchange" );
-        this.$router.push("/PeriodExchange");
-      }
+      // if(courseApply) {
+      //   window.location.replace(
+      //   window.location.href.toString().replace(window.location.hash, "") +
+      //     "#" + "/courseApply" );
+      //   this.$router.push("/courseApply");
+      // } else {
+      //   window.location.replace(
+      //   window.location.href.toString().replace(window.location.hash, "") +
+      //     "#" + "/PeriodExchange" );
+      //   this.$router.push("/PeriodExchange");
+      // }
+      let historyLength = window.history.length
+      window.history.go(-(historyLength - 1))
       
 
       // if (browser().android) {
@@ -161,19 +163,21 @@ export default {
       // }
     },
     onRepay() {
-      let courseApply = localStorage.getItem('courseApply')
+      // let courseApply = localStorage.getItem('courseApply')
       clearInterval(this.timer)
-      if(courseApply) {
-        window.location.replace(
-        window.location.href.toString().replace(window.location.hash, "") +
-          "#" + "/courseApply" );
-        this.$router.push("/courseApply");
-      } else {
-        window.location.replace(
-        window.location.href.toString().replace(window.location.hash, "") +
-          "#" + "/PeriodExchange" );
-        this.$router.push("/PeriodExchange");
-      }
+      // if(courseApply) {
+      //   window.location.replace(
+      //   window.location.href.toString().replace(window.location.hash, "") +
+      //     "#" + "/courseApply" );
+      //   this.$router.push("/courseApply");
+      // } else {
+      //   window.location.replace(
+      //   window.location.href.toString().replace(window.location.hash, "") +
+      //     "#" + "/PeriodExchange" );
+      //   this.$router.push("/PeriodExchange");
+      // }
+      let historyLength = window.history.length
+      window.history.go(-(historyLength - 1))
     },
     CountDown() {
       let s = 60;

部分文件因为文件数量过多而无法显示