From af58a8dd29fb02be1534d21405f69c459fc1fa58 Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Thu, 12 Feb 2026 01:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=88=9D=E6=AD=A5=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index dfeeee2..36fb5f0 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -133,15 +133,17 @@ page { box-sizing: border-box; } .page-container { - background-color: #f8f8f8; padding: 20rpx; box-sizing: border-box; + background: radial-gradient(circle at top left, #E8F4F8 40%, #F8FCFE 100%); } .list-scroll { - background-color: #fff; + /* 把背景色改为透明,才能透出背景渐变 */ + background-color: transparent; border-radius: 8rpx; overflow: hidden; + margin-top: 10rpx; /* 新增:H5端避免滚动条样式不一致 */ scrollbar-width: thin; } @@ -156,12 +158,16 @@ page { .list-item { padding: 12rpx 24rpx; - border-bottom: 20rpx solid #f7f7f7; + /* 移除border-bottom,改为margin-top,并且把列表项背景设为半透明白色 */ + margin-bottom: 20rpx; + background-color: rgba(255, 255, 255, 0.85); + border-radius: 12rpx; /* 新增:点击态样式,双端统一 */ - transition: background-color 0.2s; + transition: all 0.2s ease; } .list-item:active { - background-color: #f5f5f5; + background-color: rgba(255, 255, 255, 0.95); + transform: scale(0.98); } .item-title { @@ -214,6 +220,9 @@ page { color: #999; font-size: 26rpx; gap: 10rpx; + margin-top: 20rpx; + background-color: rgba(255, 255, 255, 0.85); + border-radius: 12rpx; } .no-more { @@ -228,5 +237,8 @@ page { font-size: 26rpx; /* 可选:增加上下内边距,视觉更舒适 */ padding: 30rpx 0; + margin-top: 20rpx; + background-color: rgba(255, 255, 255, 0.85); + border-radius: 12rpx; } \ No newline at end of file