feat:修复秒杀bug

This commit is contained in:
2026-07-16 21:28:10 +08:00
parent 96dfd68553
commit a879198143
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -338,14 +338,17 @@ export default {
url().then((res) => {
console.log("获取秒杀", res);
if (res.bizcode === 100) {
res.data.activityId &&
this.seckillGoodsList = [];
if(res.data.activityId){
this.onGetSeckillGoodsList(res.data.activityId, "seckillGoodsList");
}
}
});
},
// 获取秒杀商品
onGetSeckillGoodsList(activityId, key) {
getSeckillGoodsList({
activityId: activityId,
page: 1,
@@ -409,7 +409,7 @@ export default {
} else {
uni.navigateBack();
}
}, 2000);
}, 1500);
}
},
},