From 535ae732bc6bc2f2e0f311f04a4fa179a95ba484 Mon Sep 17 00:00:00 2001
From: jing <1683105490@qq.com>
Date: Mon, 28 Sep 2026 11:25:02 +0800
Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=95=86=E5=93=81=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E6=A8=A1=E6=9D=BF5=20=E7=82=B9=E8=BF=9B=E5=95=86?=
=?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=EF=BC=8C=E8=BF=9B=E5=85=A5=E5=95=86?=
=?UTF-8?q?=E5=93=81=E5=88=97=E8=A1=A8=E9=9A=90=E8=97=8F=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E6=A1=86=E4=B8=8B=E9=9D=A2=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components-diy/diy-category-item.vue | 4 ++--
pages_goods/list.vue | 8 ++++----
pages_goods/public/css/list.scss | 13 +++++++++++++
pages_goods/public/js/list.js | 5 +++++
4 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/components-diy/diy-category-item.vue b/components-diy/diy-category-item.vue
index 446142b..5f6a5dd 100644
--- a/components-diy/diy-category-item.vue
+++ b/components-diy/diy-category-item.vue
@@ -187,9 +187,9 @@
{{ category.category_name }}
-
+
+ @tap.stop="$util.redirectTo('/pages_goods/list', { category_id: one.category_id, list_style: 'grid', hide_sort: 1 })">
diff --git a/pages_goods/list.vue b/pages_goods/list.vue
index a6e3bb6..f72e0e3 100644
--- a/pages_goods/list.vue
+++ b/pages_goods/list.vue
@@ -1,6 +1,6 @@
-
+
@@ -12,8 +12,8 @@
@click="changeListStyle()">
-
-
+
+
{{ $lang('goods.list.Random') }}
@@ -45,7 +45,7 @@
-
+
view {
flex: 1;
text-align: center;
diff --git a/pages_goods/public/js/list.js b/pages_goods/public/js/list.js
index 3e696e9..5635e8c 100644
--- a/pages_goods/public/js/list.js
+++ b/pages_goods/public/js/list.js
@@ -19,6 +19,7 @@ export default {
coupon: 0,
emptyShow: false,
isList: true, //列表样式
+ hideSort: false, //是否隐藏排序栏(综合/销量/价格/筛选)
//分享所需标题
share_title: '',
//搜索到多少件商品
@@ -87,6 +88,10 @@ export default {
if (options.list_style === 'grid') {
this.isList = false;
}
+ // 商品分类(模板5)进入时隐藏排序栏(综合/销量/价格/筛选), 只隐藏不移除
+ if (options.hide_sort == 1) {
+ this.hideSort = true;
+ }
this.keyword = options.keyword || '';
this.coupon = options.coupon || 0;
this.goods_id_arr = options.goods_id_arr || 0;