From 0307562fe49ffe7326323f351a63e49b3a0bf052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Sun, 1 Jan 2023 21:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=82=B9=E9=A4=90=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E7=9A=84=E5=AD=90=E7=B1=BB=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=90=8E=EF=BC=8C=E5=86=8D=E5=88=87=E6=8D=A2=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=A4=A7=E7=B1=BB=EF=BC=8C=E5=AD=90=E7=B1=BB=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E6=9C=AA=E8=87=AA=E5=8A=A8=E5=9B=9E=E7=A7=BB=E5=88=B0?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=8B=E6=A0=87=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreShop/pages/category/index/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue b/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue index 3ab6b2eb..e98a9efb 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue @@ -65,7 +65,7 @@ - + @@ -295,7 +295,7 @@ this.menuChilds = res.data[0].child; this.getGoods(); } - + } } }); @@ -439,14 +439,10 @@ this.currentCateId = id; this.needCurrentCateId = id; - this.childCurrent = 1; - console.log('childCurrent', this.childCurrent); - this.menuChilds = []; this.menuChilds = _this.menus[index].child; this.childCurrent = 0; - console.log('childCurrent', this.childCurrent); this.$forceUpdate() this.page = 1; @@ -454,7 +450,8 @@ this.getGoods(0); }, - childIdCheck(e) { + clickChange(e) { + this.childCurrent = e.index; if (e.id != 0) { this.needCurrentCateId = e.id; } else {