feat:修复秒杀bug
This commit is contained in:
+4
-1
@@ -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);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user