|
@@ -137,23 +137,22 @@ 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");
|
|
|
- // }
|
|
|
let historyLength = window.history.length
|
|
|
- window.history.go(-(historyLength - 1))
|
|
|
-
|
|
|
-
|
|
|
+ if(courseApply) {
|
|
|
+ // window.location.replace(
|
|
|
+ // window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ // "#" + "/courseApply" );
|
|
|
+ // this.$router.push("/courseApply");
|
|
|
+ window.history.go(-(historyLength - 1))
|
|
|
+ } else {
|
|
|
+ // window.location.replace(
|
|
|
+ // window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ // "#" + "/PeriodExchange" );
|
|
|
+ // this.$router.push("/PeriodExchange");
|
|
|
+ window.history.go(-(historyLength - 2))
|
|
|
+ }
|
|
|
// if (browser().android) {
|
|
|
// DAYA.postMessage(JSON.stringify({ api: "back" }));
|
|
|
// } else if (browser().iPhone) {
|
|
@@ -163,21 +162,22 @@ 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");
|
|
|
- // }
|
|
|
let historyLength = window.history.length
|
|
|
- window.history.go(-(historyLength - 1))
|
|
|
+ if(courseApply) {
|
|
|
+ // window.location.replace(
|
|
|
+ // window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ // "#" + "/courseApply" );
|
|
|
+ // this.$router.push("/courseApply");
|
|
|
+ window.history.go(-(historyLength - 1))
|
|
|
+ } else {
|
|
|
+ // window.location.replace(
|
|
|
+ // window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ // "#" + "/PeriodExchange" );
|
|
|
+ // this.$router.push("/PeriodExchange");
|
|
|
+ window.history.go(-(historyLength - 2))
|
|
|
+ }
|
|
|
},
|
|
|
CountDown() {
|
|
|
let s = 60;
|