From 0cab3dd853380efa8ca5e40bd876f3867d293ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Tue, 12 Aug 2025 16:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E5=92=8C=E7=83=AD=E8=AF=8D=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.css | 18 +++++++++--------- pages/index/index.vue | 10 ++++++---- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/pages/index/index.css b/pages/index/index.css index d61d1120..431ebadb 100644 --- a/pages/index/index.css +++ b/pages/index/index.css @@ -3,10 +3,13 @@ } .hot-word-container { - height: 40px; + width: auto; + height: 50rpx; overflow: hidden; position: relative; - flex: 1; + /* flex: 1; */ + border-radius: 50rpx; + margin: 0 20rpx; } .hot-word-scroll { @@ -14,9 +17,9 @@ } .hot-word-item { - height: 40px; - line-height: 40px; - padding: 0 10px; + height: 50rpx; + line-height: 50rpx; + padding: 0 15rpx; color: #666; } @@ -118,7 +121,6 @@ page { display: flex; box-sizing: border-box; align-items: center; - padding-left: 30rpx; padding-right: 30rpx; font-size: 26rpx; } @@ -699,9 +701,7 @@ page { box-sizing: border-box; } -.merchantList2{ - -} +.merchantList2 {} .merchantItem { display: flex; diff --git a/pages/index/index.vue b/pages/index/index.vue index c0c42af4..011c2882 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -37,16 +37,18 @@ - - + {{ word }} + + @@ -279,7 +281,7 @@ export default { hotWord: [], // 搜索热词 scrollPosition: 0, // 滚动位置 scrollInterval: null, // 滚动定时器 - itemHeight: 40, // 每个热词项的高度 + itemHeight: 50, // 每个热词项的高度 // 中部1左侧广告 serverLeft: '',