fix: 修改异步方法
This commit is contained in:
parent
e104a9a61c
commit
6a6990c32f
|
@ -143,6 +143,13 @@
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.ysf = res.data[0];
|
this.ysf = res.data[0];
|
||||||
this.receive_time = res.data[0].entity.time_limit;
|
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();
|
let ua = window.navigator.userAgent.toLowerCase();
|
||||||
this.isMini = /miniProgram/i.test(ua);
|
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');
|
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
|
||||||
if (key_expiration_time != 0) {
|
if (key_expiration_time != 0) {
|
||||||
|
|
Loading…
Reference in New Issue