feat:修复秒杀bug
This commit is contained in:
+5
-2
@@ -338,14 +338,17 @@ export default {
|
|||||||
url().then((res) => {
|
url().then((res) => {
|
||||||
console.log("获取秒杀", res);
|
console.log("获取秒杀", res);
|
||||||
if (res.bizcode === 100) {
|
if (res.bizcode === 100) {
|
||||||
res.data.activityId &&
|
this.seckillGoodsList = [];
|
||||||
this.onGetSeckillGoodsList(res.data.activityId, "seckillGoodsList");
|
if(res.data.activityId){
|
||||||
|
this.onGetSeckillGoodsList(res.data.activityId, "seckillGoodsList");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取秒杀商品
|
// 获取秒杀商品
|
||||||
onGetSeckillGoodsList(activityId, key) {
|
onGetSeckillGoodsList(activityId, key) {
|
||||||
|
|
||||||
getSeckillGoodsList({
|
getSeckillGoodsList({
|
||||||
activityId: activityId,
|
activityId: activityId,
|
||||||
page: 1,
|
page: 1,
|
||||||
|
|||||||
@@ -409,7 +409,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
}
|
}
|
||||||
}, 2000);
|
}, 1500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user