修改秒杀处理逻辑

master
于肖磊 2025-04-27 11:03:50 +08:00
parent 3e0eb6bc6f
commit ea5320f2fb
1 changed files with 8 additions and 10 deletions

View File

@ -295,7 +295,7 @@
const new_style = this.propValue.style;
const data = new_form.data;
let new_list = [];
if (data && !isEmpty(data.current)) {
if (data && !isEmpty(data.current) && !isEmpty(data.current.time)) {
if (!isEmpty(data.current.goods)) {
new_list = data.current.goods;
}
@ -308,15 +308,13 @@
time_first_text: time_first_text,
},
});
if (time_first_text !== '已结束') {
//
setTimeout(() => {
this.updateCountdown();
}, 0);
this.setData({
intervalId: setInterval(this.updateCountdown, 1000),
});
}
//
setTimeout(() => {
this.updateCountdown();
}, 0);
this.setData({
intervalId: setInterval(this.updateCountdown, 1000),
});
}
//
const product_style_list = [