|
@@ -137,19 +137,21 @@ export default {
|
|
},
|
|
},
|
|
onAppBack() {
|
|
onAppBack() {
|
|
// app回调页面
|
|
// app回调页面
|
|
- let courseApply = localStorage.getItem('courseApply')
|
|
|
|
|
|
+ // let courseApply = localStorage.getItem('courseApply')
|
|
clearInterval(this.timer)
|
|
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) {
|
|
// if (browser().android) {
|
|
@@ -161,19 +163,21 @@ export default {
|
|
// }
|
|
// }
|
|
},
|
|
},
|
|
onRepay() {
|
|
onRepay() {
|
|
- let courseApply = localStorage.getItem('courseApply')
|
|
|
|
|
|
+ // let courseApply = localStorage.getItem('courseApply')
|
|
clearInterval(this.timer)
|
|
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() {
|
|
CountDown() {
|
|
let s = 60;
|
|
let s = 60;
|