From b0ff539311179e59379778f60a3f681066f9fa30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E5=9F=8E?= <17521612761@163.com> Date: Wed, 13 Mar 2024 10:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CoreShop/pages/category/index/index.scss | 12 ++++++++++++ .../CoreShop/pages/category/index/index.vue | 1 + 2 files changed, 13 insertions(+) diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.scss b/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.scss index df1cd5ed..766c23b1 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.scss +++ b/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.scss @@ -244,10 +244,16 @@ text-color-assist { color: #919293; } .menu-layout{ display: flex; flex-wrap: wrap; + max-height: 500rpx; + overflow: scroll; + .menu-box{ display: inline-block; width: 140rpx; margin-bottom: 25rpx; + max-height: 300rpx; + overflow: scroll; + .img{ display: block; margin: 0 auto; @@ -361,6 +367,12 @@ text-color-assist { color: #919293; } background-color: #f7f7f7; text-align: center; border-radius: 5rpx; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + } .active{ background-color: #edf8f2; 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 9cd5c241..730e3397 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/category/index/index.vue @@ -418,6 +418,7 @@ export default { }, handleMenuTapNew(id) { const _this = this; + _this.scrollLeftSticky = 0; let menu = _this.menus[_this.primaryClassificationIndex].child.filter((res) => res.id == id); _this.needCurrentCateId = menu[0].id; _this.currentCateId = menu[0].id;