From 3a292e84a2b63b03183ad14bdcaef588e2ddcda1 Mon Sep 17 00:00:00 2001 From: zheng020 Date: Fri, 29 May 2026 16:17:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9suqre=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=BB=84=E4=BB=B6=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages.json | 8 +- .../square/components/BannerCarousel.vue | 4 +- .../pages/square/components/ContentTabs.vue | 77 +++++------ .../square/components/HotCategoryBlock.vue | 26 ++-- frontend/pages/square/hot-category-more.vue | 123 ++++++++++++++---- frontend/pages/square/square.vue | 65 +++++++-- 6 files changed, 202 insertions(+), 101 deletions(-) diff --git a/frontend/pages.json b/frontend/pages.json index bb9a499..cefe184 100644 --- a/frontend/pages.json +++ b/frontend/pages.json @@ -11,10 +11,10 @@ { "path": "pages/square/hot-category-more", "style": { - "navigationBarTitleText": "热门推荐", - "navigationBarBackgroundColor": "#1a1a2e", - "navigationBarTextStyle": "white", - "backgroundColor": "#1a1a2e" + "navigationStyle": "custom", + "app-plus": { + "bounce": "none" + } } }, { diff --git a/frontend/pages/square/components/BannerCarousel.vue b/frontend/pages/square/components/BannerCarousel.vue index f412f20..91f0ab7 100644 --- a/frontend/pages/square/components/BannerCarousel.vue +++ b/frontend/pages/square/components/BannerCarousel.vue @@ -69,10 +69,10 @@ const onTop3DataLoaded = (items) => { .banner-activity-img { width: 100%; - height: 296rpx; + height: 312rpx; display: block; border-radius:24rpx; position: relative; - top: 32rpx; + top: 24rpx; } diff --git a/frontend/pages/square/components/ContentTabs.vue b/frontend/pages/square/components/ContentTabs.vue index 8208195..20f0e80 100644 --- a/frontend/pages/square/components/ContentTabs.vue +++ b/frontend/pages/square/components/ContentTabs.vue @@ -1,48 +1,39 @@ @@ -66,16 +57,18 @@ const tabs = [ } .tab-item { - flex: 1; - max-width: 160rpx; + max-width: 134rpx; + height: 42rpx; + border-radius: 21rpx; + opacity: 0.78; position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; - height: 56rpx; - margin: 0 4rpx; overflow: visible; + background: linear-gradient(90deg, rgba(255, 222, 8, 0.2989) -17.54%, rgba(252, 100, 102, 0.61) 64.4%, rgba(244, 88, 104, 0.61) 116.67%); + box-shadow: 2px 2px 4px 0px #F2151578; } /* 背景图片铺满整个 tab */ @@ -96,25 +89,13 @@ const tabs = [ /* 左侧图标,绝对浮动覆盖背景左侧色块,不影响文字布局 */ .tab-left { - position: absolute; - z-index: 1; - left: -16rpx; - top: 35%; - transform: translateY(-50%) rotateZ(8deg); - width: 80rpx; - height: 80rpx; display: flex; align-items: center; justify-content: center; + padding: 4rpx 30rpx 4rpx 20rpx ; transition: transform 0.25s ease; } -/* 第一个 tab 图标单独样式 */ -.tab-left-first { - top: 23%; - -} - /* 选中时图标上移 */ /* .tab-item.active .tab-left { transform: translateY(-70%); @@ -133,13 +114,13 @@ const tabs = [ .tab-label { position: relative; z-index: 1; - font-size: 18rpx; + font-size: 24rpx; font-weight: 600; color: rgba(255, 255, 255, 0.95); /* color: #ffffff; */ text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.8); white-space: nowrap; - margin-left: 48rpx; + margin-left: 14rpx; } .tab-item.active .tab-label { diff --git a/frontend/pages/square/components/HotCategoryBlock.vue b/frontend/pages/square/components/HotCategoryBlock.vue index d8c9873..4285eaa 100644 --- a/frontend/pages/square/components/HotCategoryBlock.vue +++ b/frontend/pages/square/components/HotCategoryBlock.vue @@ -1,9 +1,9 @@