修改直播间时间没有判断bug,店铺后台,批量发货没有跳转bug,直播后台添加小程序直播,前台显示小程序直播

This commit is contained in:
lemon橪
2021-06-21 18:11:46 +08:00
parent 2b85a5aba1
commit d89b984344
5 changed files with 39 additions and 20 deletions

View File

@@ -328,20 +328,34 @@ export default {
this.$set(this, "liveData", way);
},
/**
* 提交直播间商品
*/
addGoods() {
addLiveGoods({
roomId: this.$route.query.roomId,
liveGoodsId: item.liveGoodsId,
});
},
/**
* dialog点击确定时判断
*/
addGoods() {
console.log(this.commodityList);
this.liveData.forEach((item, index) => {
this.commodityList.forEach((oldVal, i) => {
// 如果商品里面没有商品,以及添加商品为第一次的话
if (oldVal.liveGoodsId != item.liveGoodsId) {
addLiveGoods({
roomId: this.$route.query.roomId,
liveGoodsId: item.liveGoodsId,
});
}
});
if (this.commodityList.length == 1 && this.liveData.length == 1) {
addLiveGoods({
roomId: this.$route.query.roomId,
liveGoodsId: item.liveGoodsId,
});
} else {
this.commodityList.forEach((oldVal, i) => {
// 如果商品里面没有商品,以及添加商品为第一次的话
if (oldVal.liveGoodsId != item.liveGoodsId) {
}
});
}
});
},