|
@@ -142,112 +142,40 @@ export default {
|
|
|
},
|
|
|
onAppBack() {
|
|
|
// app回调页面
|
|
|
- if (browser().android) {
|
|
|
- if (this.groupType == "PRACTICE") {
|
|
|
- // 收费网管课
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- DAYA.postMessage(JSON.stringify({ api: "back" }));
|
|
|
- }
|
|
|
- } else if (browser().iPhone) {
|
|
|
- if (this.groupType == "PRACTICE") {
|
|
|
- // 收费网管课
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- window.webkit.messageHandlers.DAYA.postMessage(
|
|
|
- JSON.stringify({ api: "back" })
|
|
|
- );
|
|
|
- }
|
|
|
+ let courseApply = localStorage.getItem('courseApply')
|
|
|
+ if(courseApply) {
|
|
|
+ window.location.replace(
|
|
|
+ window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ "#" + "/courseApply" );
|
|
|
+ this.$router.push("/courseApply");
|
|
|
} else {
|
|
|
- // musicGroupId
|
|
|
- if (this.$route.query.sporadic || this.groupType == "SPORADIC") {
|
|
|
- this.$router.push({
|
|
|
- path: "/SporadicLogin",
|
|
|
- query: {
|
|
|
- id: this.$route.query.sporadic || this.orderInfo.musicGroupId
|
|
|
- }
|
|
|
- });
|
|
|
- } else if (this.groupType == "PRACTICE") {
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- this.$router.push({
|
|
|
- path: "/login",
|
|
|
- query: {
|
|
|
- musicGroupId: this.$route.query.musicGroupId
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ window.location.replace(
|
|
|
+ window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ "#" + "/PeriodExchange" );
|
|
|
+ this.$router.push("/PeriodExchange");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ // if (browser().android) {
|
|
|
+ // DAYA.postMessage(JSON.stringify({ api: "back" }));
|
|
|
+ // } else if (browser().iPhone) {
|
|
|
+ // window.webkit.messageHandlers.DAYA.postMessage(
|
|
|
+ // JSON.stringify({ api: "back" })
|
|
|
+ // );
|
|
|
+ // }
|
|
|
},
|
|
|
onRepay() {
|
|
|
- if (browser().android) {
|
|
|
- if (this.groupType == "PRACTICE") {
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- DAYA.postMessage(JSON.stringify({ api: "back" }));
|
|
|
- }
|
|
|
- } else if (browser().iPhone) {
|
|
|
- if (this.groupType == "PRACTICE") {
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- window.webkit.messageHandlers.DAYA.postMessage(
|
|
|
- JSON.stringify({ api: "back" })
|
|
|
- );
|
|
|
- }
|
|
|
+ let courseApply = localStorage.getItem('courseApply')
|
|
|
+ if(courseApply) {
|
|
|
+ window.location.replace(
|
|
|
+ window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ "#" + "/courseApply" );
|
|
|
+ this.$router.push("/courseApply");
|
|
|
} else {
|
|
|
- if (this.groupType == "SPORADIC") {
|
|
|
- if (this.activeName == "LUCK") {
|
|
|
- this.$router.push({
|
|
|
- path: "/smallLogin/active"
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$router.push({
|
|
|
- path: "/SporadicLogin",
|
|
|
- query: {
|
|
|
- id: this.orderInfo.musicGroupId
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- } else if (this.groupType == "PRACTICE") {
|
|
|
- window.location.replace(
|
|
|
- window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" +
|
|
|
- "/auditionpay/1"
|
|
|
- );
|
|
|
- this.$router.push("/auditionpay/1");
|
|
|
- } else {
|
|
|
- this.$router.push({
|
|
|
- path: "/login",
|
|
|
- query: {
|
|
|
- musicGroupId: this.$route.query.musicGroupId
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+ window.location.replace(
|
|
|
+ window.location.href.toString().replace(window.location.hash, "") +
|
|
|
+ "#" + "/PeriodExchange" );
|
|
|
+ this.$router.push("/PeriodExchange");
|
|
|
}
|
|
|
},
|
|
|
CountDown() {
|