|
@@ -4,20 +4,20 @@
|
|
|
<div class="payOn" v-if="pageStatus == 'ON'">
|
|
|
<img src="@/assets/images/pay_success.png" alt />
|
|
|
<p>支付成功</p>
|
|
|
- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button>
|
|
|
+ <!-- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="payError" v-if="pageStatus == 'FAILED' || pageStatus == 'CLOSE' || pageStatus == 'REFUND'">
|
|
|
<img src="@/assets/images/pay_error.png" alt />
|
|
|
<p>支付失败</p>
|
|
|
- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button>
|
|
|
+ <!-- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="paying" v-if="pageStatus == 'ING'">
|
|
|
<img src="@/assets/images/pay_ing.png" alt />
|
|
|
<p>订单处理中</p>
|
|
|
- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button>
|
|
|
- <p class="countdown">到计时{{ smsText }}秒刷新</p>
|
|
|
+ <!-- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button> -->
|
|
|
+ <!-- <p class="countdown">到计时{{ smsText }}秒刷新</p> -->
|
|
|
</div>
|
|
|
|
|
|
<div class="paySuccess" v-if="pageStatus == 'SUCCESS'">
|
|
@@ -58,8 +58,8 @@
|
|
|
{{ examRegistration.examStartTime }}
|
|
|
</p>
|
|
|
<!-- <img class="icon_img" src="@/assets/images/icon_cw.png" alt srcset /> -->
|
|
|
- </div>
|
|
|
- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button>
|
|
|
+ </div>
|
|
|
+ <!-- <van-button color="var(--main-color)" type="info" @click="onAppBack" round>返回</van-button> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -81,7 +81,8 @@ export default {
|
|
|
const query = this.$route.query
|
|
|
return {
|
|
|
headerStatus: false,
|
|
|
- isBack: query.isBack == "off" ? false : true, // 是否显示返回按钮
|
|
|
+ // isBack: query.isBack == "off" ? false : true, // 是否显示返回按钮
|
|
|
+ isBack: false, // 是否显示返回按钮
|
|
|
pageStatus: null,
|
|
|
orderInfo: {},
|
|
|
examRegistration: {}
|
|
@@ -94,6 +95,7 @@ export default {
|
|
|
this.headerStatus = true;
|
|
|
}
|
|
|
this.__init()
|
|
|
+ // this.pushHistory()
|
|
|
},
|
|
|
methods: {
|
|
|
pushHistory() {
|
|
@@ -152,22 +154,22 @@ export default {
|
|
|
onHref() {
|
|
|
window.location.replace(
|
|
|
window.location.href.toString().replace(window.location.hash, "") +
|
|
|
- "#" + "/levelMusic"
|
|
|
+ "#" + "/paymentResult"
|
|
|
);
|
|
|
- this.$router.push("/levelMusic")
|
|
|
+ this.$router.push("/paymentResult")
|
|
|
},
|
|
|
CountDown() {
|
|
|
- let s = 60;
|
|
|
- this.smsText = s;
|
|
|
- let timer = setInterval(() => {
|
|
|
- if (s <= 0) {
|
|
|
- this.__init();
|
|
|
- clearInterval(timer);
|
|
|
- } else {
|
|
|
- s--;
|
|
|
- this.smsText = s;
|
|
|
- }
|
|
|
- }, 1000);
|
|
|
+ // let s = 60;
|
|
|
+ // this.smsText = s;
|
|
|
+ // let timer = setInterval(() => {
|
|
|
+ // if (s <= 0) {
|
|
|
+ // this.__init();
|
|
|
+ // clearInterval(timer);
|
|
|
+ // } else {
|
|
|
+ // s--;
|
|
|
+ // this.smsText = s;
|
|
|
+ // }
|
|
|
+ // }, 1000);
|
|
|
}
|
|
|
},
|
|
|
filters: {
|