From 6a6990c32f8443e515780095ab68c9b294a8eb5d Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 18 Jun 2024 15:52:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- goods-v2/ysf-reduce.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/goods-v2/ysf-reduce.html b/goods-v2/ysf-reduce.html index 1fd8ca7..b9ebf7d 100644 --- a/goods-v2/ysf-reduce.html +++ b/goods-v2/ysf-reduce.html @@ -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) {