From 4ae5f85b5e4bad842385ef874d9cb12d432274b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Sun, 29 Jan 2023 13:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 26 ++- pages/ProductList/ProductList.vue | 6 +- pages/classification/classification.vue | 297 ++++++++++++++++++++++++ pages/toptabbar/toptabbar.vue | 1 - 4 files changed, 318 insertions(+), 12 deletions(-) create mode 100644 pages/classification/classification.vue diff --git a/pages.json b/pages.json index 3b0b8b2..3845169 100644 --- a/pages.json +++ b/pages.json @@ -331,17 +331,23 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" } + }, { + "path": "pages/toptabbar/toptabbar", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + }, + { + "path": "pages/classification/classification", + "style": { + "navigationBarTitleText": "分类", + "enablePullDownRefresh": false + } + } - ,{ - "path" : "pages/toptabbar/toptabbar", - "style" : - { - "navigationBarTitleText": "", - "enablePullDownRefresh": false - } - - } - ], + ], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "", diff --git a/pages/ProductList/ProductList.vue b/pages/ProductList/ProductList.vue index c9bd2e5..d1e19b9 100644 --- a/pages/ProductList/ProductList.vue +++ b/pages/ProductList/ProductList.vue @@ -96,7 +96,11 @@ methods: { //点击导航栏标签改变当前索引 toggleTab(index) { - if (index == 1111111111111) {} else if (index == 0) { + if (index == 1111111111111) { + uni.navigateTo({ + url: `/pages/classification/classification?goodsCategoryId=${this.GoodsCategorychildrenid}` + }) + } else if (index == 0) { this.GoodsCategorychildrenid = this.goodsCategoryId this.tabIndex = index this.pageNum = 1 diff --git a/pages/classification/classification.vue b/pages/classification/classification.vue new file mode 100644 index 0000000..ae706b6 --- /dev/null +++ b/pages/classification/classification.vue @@ -0,0 +1,297 @@ + + + + + diff --git a/pages/toptabbar/toptabbar.vue b/pages/toptabbar/toptabbar.vue index 7d685dd..8a6d6e3 100644 --- a/pages/toptabbar/toptabbar.vue +++ b/pages/toptabbar/toptabbar.vue @@ -91,7 +91,6 @@ methods: { //点击导航栏标签触发 toggleTab(index) { - console.log(index) this.$emit("toggleToptab", index) } }