fix: 修改异步方法

This commit is contained in:
zhangds 2024-06-18 15:52:57 +08:00
parent e104a9a61c
commit 6a6990c32f
1 changed files with 7 additions and 6 deletions

View File

@ -143,6 +143,13 @@
if (res.code === 200) {
this.ysf = res.data[0];
this.receive_time = res.data[0].entity.time_limit;
/* 初始弹窗 */
if (this.ysf && ![1, 9].includes(this.ysf.available)) {
this.is = true;
this.tip(product_status(this.ysf.available, this.ysf), 2);
}
}
})
}
@ -153,12 +160,6 @@
let ua = window.navigator.userAgent.toLowerCase();
this.isMini = /miniProgram/i.test(ua);
/* 初始弹窗 */
if (this.ysf && ![1, 9].includes(this.ysf.available)) {
this.is = true;
this.tip(product_status(this.ysf.available, this.ysf), 2);
}
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {