...
|
...
|
@@ -33,23 +33,10 @@ export default { |
|
|
mounted() {
|
|
|
},
|
|
|
activated() {
|
|
|
this.check().catch((result) => {
|
|
|
this.init();
|
|
|
if (result?.data?.statusDetail?.leftTime < 60) {
|
|
|
this.count = result?.data?.statusDetail?.leftTime;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
init() {
|
|
|
if (this.payParams) {
|
|
|
this.openPay();
|
|
|
}
|
|
|
|
|
|
this.setCount();
|
|
|
|
|
|
if (this.extra) {
|
|
|
this.page = JSON.parse(this.extra || '{}');
|
|
|
}
|
|
|
this.init();
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
if (this.timer) {
|
...
|
...
|
@@ -60,6 +47,19 @@ export default { |
|
|
},
|
|
|
methods: {
|
|
|
...mapOrderAction(['fetchOrderStatus']),
|
|
|
init() {
|
|
|
this.check().catch((result) => {
|
|
|
if (result?.data?.statusDetail?.leftTime < 60) {
|
|
|
this.count = result?.data?.statusDetail?.leftTime;
|
|
|
}
|
|
|
|
|
|
if (this.payParams) {
|
|
|
this.openPay();
|
|
|
}
|
|
|
|
|
|
this.setCount();
|
|
|
});
|
|
|
},
|
|
|
openPay() {
|
|
|
if (this.$xianyu.isAliApp) {
|
|
|
this.$xianyu.setXianyuPay({
|
...
|
...
|
|