From 0b55d74696423ed66a7dae3fd288fc557d0fe5dc Mon Sep 17 00:00:00 2001
From: evoxwht <442384644@qq.com>
Date: Thu, 30 Mar 2023 20:49:18 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=96=84=E5=93=81=E5=88=A0?=
=?UTF-8?q?=E9=99=A4=E7=9A=84=E6=97=B6=E5=80=99=E5=90=8C=E6=AD=A5=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E8=A1=A8=E6=A0=BC=E5=92=8C=E9=A1=B6=E9=83=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../admin/src/pages/marketing/live/add_goods.vue | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/template/admin/src/pages/marketing/live/add_goods.vue b/template/admin/src/pages/marketing/live/add_goods.vue
index cfb55274f..5d9fb61ca 100644
--- a/template/admin/src/pages/marketing/live/add_goods.vue
+++ b/template/admin/src/pages/marketing/live/add_goods.vue
@@ -24,7 +24,7 @@
![]()
-
+
@@ -155,7 +155,7 @@ export default {
this.selectIds = this.goodsList.map((i) => {
return i.product_id;
});
- console.log(this.selectIds,this.goodsList)
+ console.log(this.selectIds, this.goodsList);
},
// 生成直播商品
liveGoods() {
@@ -182,17 +182,21 @@ export default {
}, 300);
});
},
- bindDelete(index,item) {
+ bindDelete(index, item) {
this.goodsList.splice(index, 1);
- if (this.tabList.length) {
- let i = this.tabList.findIndex((e) => e.id == item.product_id);
- this.tabList.splice(i, 1);
+ let i = this.tabList.findIndex((e) => e.id == item.product_id);
+ this.tabList.splice(i, 1);
+ if (!this.goodsList.length) {
+ this.isShowBox = false;
}
},
del(row, index) {
this.tabList.splice(index, 1);
let i = this.goodsList.findIndex((e) => e.product_id == row.id);
this.goodsList.splice(i, 1);
+ if (!this.tabList.length) {
+ this.isShowBox = false;
+ }
},
// 提交
bindSub() {