From 7cf5577cb0344ed53d8dc6210b446762029facee Mon Sep 17 00:00:00 2001 From: cmxdd <86407334@qq.com> Date: Tue, 11 Aug 2020 09:41:12 +0800 Subject: [PATCH] fixed bug adout publish shop --- pages/release/index.vue | 11 ++++++----- pages/release/video.vue | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) 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 } },