diff --git a/pages/release/index.vue b/pages/release/index.vue index a055cd0..36edde1 100644 --- a/pages/release/index.vue +++ b/pages/release/index.vue @@ -187,6 +187,7 @@ export default { } } } + console.log(this.shoplist) }, // 改变选中状态 changeselect(num) { @@ -278,10 +279,10 @@ export default { let that = this; let num =Number(e.name) if (e.value == true) { - that.delarr(that.list[num].goods_id); + that.pushes(that.list[num].goods_id); that.list[num].checked=true } else { - that.pushes(that.list[num].goods_id); + that.delarr(that.list[num].goods_id); that.list[num].checked=false } }, @@ -293,7 +294,7 @@ export default { } else { let index = that.arres_list.indexOf(id); that.arres_list.splice(index, 1); - that.getshoplist(id); + that.getshoplist(); } }, // 增加直播商品 @@ -303,7 +304,7 @@ export default { console.log('为空'); } else { that.arres_list.push(id); - that.getshoplist(id); + that.getshoplist(); } }, tosign() { @@ -315,7 +316,7 @@ export default { } else { let arr = res.data.list; for (let index in arr) { - arr[index].checked = true; + arr[index].checked = false; } this.list = arr; } diff --git a/pages/release/video.vue b/pages/release/video.vue index 05bbbc5..5aae2f2 100644 --- a/pages/release/video.vue +++ b/pages/release/video.vue @@ -285,10 +285,10 @@ export default { let that = this; let num =Number(e.name) if (e.value == true) { - that.delarr(that.list[num].goods_id); + that.pushes(that.list[num].goods_id); that.list[num].checked=true } else { - that.pushes(that.list[num].goods_id); + that.delarr(that.list[num].goods_id); that.list[num].checked=false } },