From a863ec31b3c05250609d2d2a5800e781d92767aa Mon Sep 17 00:00:00 2001 From: "1173117610@qq.com" Date: Mon, 11 May 2026 11:27:07 +0800 Subject: [PATCH] 1 --- pages.json | 6 + pages/category/category.vue | 13 +- pages/category/category_detail.vue | 444 +++++++++++++++++++++++++++++ 3 files changed, 459 insertions(+), 4 deletions(-) create mode 100644 pages/category/category_detail.vue diff --git a/pages.json b/pages.json index 62031d8..7795fef 100644 --- a/pages.json +++ b/pages.json @@ -17,6 +17,12 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/category/category_detail", + "style": { + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/category/category.vue b/pages/category/category.vue index 3e282d6..3132ad5 100644 --- a/pages/category/category.vue +++ b/pages/category/category.vue @@ -28,7 +28,7 @@ - + {{ sub.cate_name.trim() }} @@ -221,9 +221,14 @@ onSubSwiperChange(e) { this.subCurrentIndex = e.detail.current; }, - selectSub(sonId) { - this.currentSonId = sonId; - this.getProducts(true); + selectSub(sub) { + const name = encodeURIComponent(sub.cate_name.trim()); + const catId = this.currentCatId; + const secondCat = sub.second_category; + + uni.navigateTo({ + url: `/pages/category/category_detail?cate_name=${name}&id=${catId}&second_category=${secondCat}` + }); }, changeSort(type) { if (type === 3 && this.sortType === 3) { diff --git a/pages/category/category_detail.vue b/pages/category/category_detail.vue new file mode 100644 index 0000000..d6eea82 --- /dev/null +++ b/pages/category/category_detail.vue @@ -0,0 +1,444 @@ + + + + +