...
|
...
|
@@ -33,6 +33,15 @@ export default { |
|
|
mounted() {
|
|
|
},
|
|
|
activated() {
|
|
|
this.check().then(() => {
|
|
|
}).catch((result) => {
|
|
|
this.init();
|
|
|
if (result?.data?.statusDetail?.leftTime < 60) {
|
|
|
this.count = result?.data?.statusDetail?.leftTime;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
init() {
|
|
|
if (this.payParams) {
|
|
|
this.openPay();
|
|
|
}
|
...
|
...
|
@@ -42,12 +51,6 @@ export default { |
|
|
if (this.extra) {
|
|
|
this.page = JSON.parse(this.extra || '{}');
|
|
|
}
|
|
|
|
|
|
this.check().catch((result) => {
|
|
|
if (result?.data?.statusDetail?.leftTime < 60) {
|
|
|
this.count = result?.data?.statusDetail?.leftTime;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
if (this.timer) {
|
...
|
...
|
|