Commit 69d161ab by Lin

style(reception): 优化接待中心组件样式以提升布局和可读性

- 移除 un-segmented 组件的多余空格,简化代码
- 调整 filter-group 的样式,增加宽度以适应横屏布局
- 为 un-segmented 组件添加高度属性,确保一致的视觉效果
1 parent 7c862638
......@@ -6,7 +6,6 @@
type="card"
:model-value="tabIndex"
active-color="#000000"
@update:model-value="onSegmentedTabIndex"
>
<un-segmented-item text="本月交付转化率"></un-segmented-item>
......
......@@ -78,11 +78,16 @@
<view class="filter-section">
<!-- 客户录入:今日到店/全部客户 -->
<view v-if="rightTabIndex == 0" class="filter-group filter-group-compact filter-group-entry-segmented glass-card">
<view
v-if="rightTabIndex == 0"
class="filter-group filter-group-compact filter-group-entry-segmented glass-card"
:class="{ 'filter-group-entry-segmented--wide': receptionDashboardSplit }"
>
<view class="filter-tabs-row entry-filter-segmented-wrap">
<un-segmented
type="card"
bg-color="rgba(241, 245, 249, 0.5)"
:height="24"
active-color="#000000"
:model-value="entryFilterIndex"
@update:model-value="switchEntryFilterTab"
......@@ -97,6 +102,7 @@
<view class="filter-tabs-row entry-filter-segmented-wrap">
<un-segmented
type="card"
:height="24"
bg-color="rgba(241, 245, 249, 0.5)"
active-color="#000000"
:model-value="filterTabIndex"
......@@ -108,9 +114,13 @@
</view>
</view>
<view class="filter-actions" v-if="rightTabIndex == 1">
<view v-if="filterTabIndex == 0" class="filter-group filter-group-compact glass-card review-tabs-wrap">
<view
v-if="filterTabIndex == 0"
class="filter-group filter-group-compact glass-card review-tabs-wrap review-tabs-wrap-wide"
>
<view class="filter-tabs-row entry-filter-segmented-wrap">
<un-segmented
:height="24"
type="card"
bg-color="rgba(241, 245, 249, 0.5)"
active-color="#000000"
......@@ -122,9 +132,13 @@
</un-segmented>
</view>
</view>
<view v-if="filterTabIndex == 0" class="filter-group filter-group-compact glass-card review-tabs-wrap">
<view
v-if="filterTabIndex == 0"
class="filter-group filter-group-compact glass-card review-tabs-wrap review-tabs-wrap-wide"
>
<view class="filter-tabs-row entry-filter-segmented-wrap">
<un-segmented
:height="24"
type="card"
bg-color="#f1f5f9"
active-color="#000000"
......@@ -136,10 +150,14 @@
</un-segmented>
</view>
</view>
<view v-if="filterTabIndex == 1" class="filter-group filter-group-compact glass-card review-tabs-wrap">
<view
v-if="filterTabIndex == 1"
class="filter-group filter-group-compact glass-card review-tabs-wrap review-tabs-wrap-wide"
>
<view class="filter-tabs-row entry-filter-segmented-wrap">
<un-segmented
type="card"
:height="24"
bg-color="rgba(241, 245, 249, 0.5)"
active-color="#000000"
:model-value="unsubmittedPendingTabIndex"
......@@ -1501,6 +1519,11 @@ onUnmounted(() => {
min-width: 120px;
}
/* 横屏分栏(receptionDashboardSplit)时横向空间更大,客户录入主分段器再放宽 */
.filter-group-compact.filter-group-entry-segmented.filter-group-entry-segmented--wide {
min-width: 168px;
}
/* filter-actions 内两个分段器(战败/成交、复盘/未复盘)的间距 */
.review-tabs-wrap {
margin-left: 6px;
......@@ -1508,6 +1531,11 @@ onUnmounted(() => {
min-width: 80px;
}
/* 已提交复盘:成交/战败、未复盘/复盘 分段器加宽,与主筛选分段器可读的 120px 档位一致 */
.review-tabs-wrap.review-tabs-wrap-wide {
min-width: 120px;
}
/* 筛选 tabs 容器:强制左右布局,固定高度 */
.filter-tabs-row {
flex-direction: row;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!