From d606e5d78be61bfe02f4f71e0c9b2d9a59cc1362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A3=E4=BA=9B=E8=8A=B1=E5=84=BF?= <1156921458@qq.com> Date: Thu, 15 May 2025 16:10:51 +0800 Subject: [PATCH] .. --- frontend/src/pages/activity/detail/index.vue | 102 ++++++++++++------- 1 file changed, 65 insertions(+), 37 deletions(-) diff --git a/frontend/src/pages/activity/detail/index.vue b/frontend/src/pages/activity/detail/index.vue index d8a61c5..38d39dc 100644 --- a/frontend/src/pages/activity/detail/index.vue +++ b/frontend/src/pages/activity/detail/index.vue @@ -59,47 +59,49 @@ 比赛项目 - - - - {{ index + 1 }} - {{ item.name }} - - - - - + + + + + {{ index + 1 }} + {{ item.name }} + - - - - - - 比赛方法 - - {{ item.form }} - + + + - - - - 评分标准 + + + + + + 比赛方法 + + {{ item.form }} + + + + + + 评分标准 + + {{ item.rule }} - {{ item.rule }} - - - - - 比赛规则 + + + + 比赛规则 + + {{ item.ruleForm }} - {{ item.ruleForm }} - + @@ -344,10 +346,33 @@ onLoad((option) => { } /* 比赛项目 */ -.event-items { - display: flex; - flex-direction: column; - gap: 24rpx; +.event-items-scroll { + width: 100%; + white-space: nowrap; +} + +.event-items-horizontal { + display: inline-flex; + padding: 0 12rpx; +} + +.event-item-card { + display: inline-block; + width: 600rpx; + min-width: 600rpx; + max-width: 80vw; + background-color: #ffffff; + border-radius: 12rpx; + overflow: hidden; + border: 1px solid #f0f0f0; + margin-right: 24rpx; + flex-shrink: 0; + white-space: normal; + box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); +} + +.event-item-card:last-child { + margin-right: 12rpx; } .event-item { @@ -398,6 +423,9 @@ onLoad((option) => { margin-right: 8rpx; position: relative; z-index: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .event-item-content { @@ -406,7 +434,7 @@ onLoad((option) => { .event-item-image { width: 100%; - height: 300rpx; + height: 240rpx; display: block; }