Commit 69d161ab by Lin

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

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