优化讲解展厅列表一屏展示
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
lyf
2026-07-09 19:08:27 +08:00
parent 3f9c64a36e
commit 8f6ff3c3f5

View File

@@ -10,6 +10,7 @@
<scroll-view <scroll-view
class="explain-scroll" class="explain-scroll"
:class="{ 'hall-stage': stage === 'hall' }"
scroll-y scroll-y
:show-scrollbar="false" :show-scrollbar="false"
> >
@@ -24,11 +25,11 @@
</view> </view>
<template v-else> <template v-else>
<view v-if="stage === 'hall' && filteredHalls.length" class="hall-list"> <view v-if="stage === 'hall' && filteredHalls.length" class="hall-list hall-overview-list">
<view <view
v-for="(hall, index) in filteredHalls" v-for="(hall, index) in filteredHalls"
:key="hall.id" :key="hall.id"
class="hall-card" class="hall-card hall-overview-card"
@tap="handleHallClick(hall.id)" @tap="handleHallClick(hall.id)"
> >
<view <view
@@ -62,7 +63,7 @@
<view class="floor-badge"> <view class="floor-badge">
<text class="floor-badge-text">{{ hall.floorLabel || '楼层待补充' }}</text> <text class="floor-badge-text">{{ hall.floorLabel || '楼层待补充' }}</text>
</view> </view>
<text class="hall-meta-text">{{ hallMetaText(hall) }}</text> <text class="hall-meta-text hall-overview-meta">{{ hallMetaText(hall) }}</text>
</view> </view>
</view> </view>
@@ -338,10 +339,15 @@ const handleBack = () => {
.explain-scroll { .explain-scroll {
height: 100%; height: 100%;
padding: 76px 20px calc(112px + env(safe-area-inset-bottom)); padding: 60px 12px calc(82px + env(safe-area-inset-bottom));
box-sizing: border-box; box-sizing: border-box;
} }
.explain-scroll.hall-stage {
padding: 58px 12px calc(74px + env(safe-area-inset-bottom));
overflow: hidden;
}
.state-title, .state-title,
.state-desc, .state-desc,
.hall-name, .hall-name,
@@ -426,15 +432,20 @@ const handleBack = () => {
.hall-list { .hall-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 8px;
}
.hall-overview-list {
height: 100%;
gap: 5px;
} }
.hall-card { .hall-card {
min-height: 112px; min-height: 96px;
padding: 14px 13px 14px 16px; padding: 10px 11px 10px 12px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 14px; gap: 10px;
box-sizing: border-box; box-sizing: border-box;
background: #ffffff; background: #ffffff;
border: 1px solid #e4e6df; border: 1px solid #e4e6df;
@@ -442,14 +453,21 @@ const handleBack = () => {
box-shadow: 0 8px 18px rgba(36, 49, 42, 0.05); box-shadow: 0 8px 18px rgba(36, 49, 42, 0.05);
} }
.hall-overview-card {
min-height: 0;
flex: 1 1 0;
gap: 7px;
padding: 4px 10px;
}
.hall-card:active { .hall-card:active {
background: #f7f8f3; background: #f7f8f3;
} }
.hall-thumb { .hall-thumb {
flex-shrink: 0; flex-shrink: 0;
width: 68px; width: 56px;
height: 68px; height: 56px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
border-radius: 8px; border-radius: 8px;
@@ -461,6 +479,11 @@ const handleBack = () => {
object-fit: contain; object-fit: contain;
} }
.hall-overview-card .hall-thumb {
width: 48px;
height: 48px;
}
.hall-thumb-shell.is-image-loaded { .hall-thumb-shell.is-image-loaded {
background: #eef0e4; background: #eef0e4;
} }
@@ -503,16 +526,16 @@ const handleBack = () => {
} }
.hall-thumb-text { .hall-thumb-text {
font-size: 24px; font-size: 20px;
line-height: 32px; line-height: 28px;
font-weight: 800; font-weight: 800;
color: #83927a; color: #83927a;
} }
.unit-thumb { .unit-thumb {
flex-shrink: 0; flex-shrink: 0;
width: 96px; width: 84px;
height: 68px; height: 58px;
border-radius: 8px; border-radius: 8px;
background: #eef0e4; background: #eef0e4;
border: 1px solid rgba(36, 49, 42, 0.06); border: 1px solid rgba(36, 49, 42, 0.06);
@@ -525,6 +548,10 @@ const handleBack = () => {
min-width: 0; min-width: 0;
} }
.hall-overview-card .hall-main {
flex: 1;
}
.stop-desc { .stop-desc {
display: block; display: block;
margin-top: 5px; margin-top: 5px;
@@ -538,8 +565,8 @@ const handleBack = () => {
.hall-name { .hall-name {
min-width: 0; min-width: 0;
font-size: 17px; font-size: 16px;
line-height: 24px; line-height: 22px;
font-weight: 800; font-weight: 800;
color: #151713; color: #151713;
overflow: hidden; overflow: hidden;
@@ -547,6 +574,15 @@ const handleBack = () => {
white-space: nowrap; white-space: nowrap;
} }
.hall-overview-card .hall-name {
font-size: 15px;
line-height: 20px;
}
.hall-overview-card .hall-meta-row {
margin-top: 3px;
}
.stop-title-row { .stop-title-row {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -580,18 +616,18 @@ const handleBack = () => {
} }
.hall-meta-row { .hall-meta-row {
margin-top: 10px; margin-top: 7px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 6px;
min-width: 0; min-width: 0;
} }
.floor-badge { .floor-badge {
flex-shrink: 0; flex-shrink: 0;
min-width: 28px; min-width: 28px;
height: 24px; height: 22px;
padding: 0 6px; padding: 0 5px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -602,29 +638,53 @@ const handleBack = () => {
} }
.floor-badge-text { .floor-badge-text {
font-size: 13px; font-size: 12px;
line-height: 17px; line-height: 16px;
font-weight: 600; font-weight: 600;
color: #aaa900; color: #aaa900;
} }
.hall-meta-text { .hall-meta-text {
min-width: 0; min-width: 0;
font-size: 15px; font-size: 13px;
line-height: 21px; line-height: 18px;
color: #555c51; color: #555c51;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.hall-overview-card .floor-badge {
height: 19px;
border-radius: 5px;
}
.hall-overview-card .floor-badge-text {
font-size: 11px;
line-height: 15px;
}
.hall-overview-meta {
min-width: 0;
font-size: 11px;
line-height: 15px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hall-arrow { .hall-arrow {
flex-shrink: 0; flex-shrink: 0;
font-size: 30px; font-size: 24px;
line-height: 30px; line-height: 24px;
color: #151713; color: #151713;
} }
.hall-overview-card .hall-arrow {
font-size: 20px;
line-height: 20px;
}
.state-block { .state-block {
margin: 34px 0; margin: 34px 0;
padding: 22px 16px; padding: 22px 16px;