Commit 3b2d4ff0 by Lin

style(reception): 优化接待中心卡片和布局

- 更新接待中心的卡片样式,移除冗余的样式绑定,提升代码简洁性
- 引入滚动视图以支持竖屏模式下的内容溢出处理
- 调整样式变量以适应不同屏幕尺寸,增强视觉一致性
- 增加新的样式类以改善卡片的布局和间距
1 parent 68e6fefb
......@@ -34,51 +34,59 @@
<view class="reception-content-container">
<!-- 竖屏:保持原逻辑(Tabs 切换展示) -->
<view v-if="isLandscape != true" class="reception-content-portrait">
<ReceptionDashboardTab
<!-- 竖屏:业绩看板内容溢出时允许上下滚动 -->
<scroll-view
v-if="mainTabIndex == 0"
:performance-data="performanceData"
:performance-metrics-visible="performanceMetricsVisible"
:selected-brand="selectedBrand"
:time-progress-percent="timeProgressPercent"
:compare-rows="currentOutputTab.compareRows"
:summary="currentOutputTab.summary"
:target-value-text="monthValueTargetText"
:achievement-value-text="monthValueAchievementText"
:output-tab-index="outputTabIndex"
@toggle-metrics="togglePerformanceMetricsVisibility"
@open-brand-picker="show = true"
@update:output-tab-index="onOutputTabIndexChange"
/>
<ReceptionCustomerListTab
v-if="mainTabIndex == 1"
:sticky-header="isLandscape"
:list-sub-tab-index="listSubTabIndex"
:reception-filter-narrow-mode="receptionFilterNarrowMode"
:entry-filter-index="entryFilterIndex"
:filter-tab-index="filterTabIndex"
:submitted-result-tab-index="submittedResultTabIndex"
:review-tab-index="reviewTabIndex"
:unsubmitted-pending-tab-index="unsubmittedPendingTabIndex"
:customer-list="customerList"
:reception-record-list="receptionRecordList"
:customer-list-loading-more="customerListLoadingMore"
:customer-list-has-more="customerListHasMore"
:reception-list-loading-more="receptionListLoadingMore"
:reception-list-has-more="receptionListHasMore"
@scroll-lower="onListScrollToLower"
@switch-list-sub-tab="switchListSubTab"
@switch-entry-filter-tab="switchEntryFilterTab"
@switch-filter-tab="switchFilterTab"
@open-submitted-result-picker="openSubmittedResultPicker"
@open-review-picker="openReviewPicker"
@switch-unsubmitted-pending-tab="switchUnsubmittedPendingTab"
@customer-entry-click="onCustomerEntryClick"
@entry-click="onListCustomerEntryClick"
@entry-edit="onListCustomerEntryEdit"
@entry-delete="onListCustomerEntryDelete"
@reception-click="onReceptionCardClick"
/>
class="reception-dashboard-scroll"
scroll-y="true"
show-scrollbar="false"
>
<ReceptionDashboardTab
:performance-data="performanceData"
:performance-metrics-visible="performanceMetricsVisible"
:selected-brand="selectedBrand"
:time-progress-percent="timeProgressPercent"
:compare-rows="currentOutputTab.compareRows"
:summary="currentOutputTab.summary"
:target-value-text="monthValueTargetText"
:achievement-value-text="monthValueAchievementText"
:output-tab-index="outputTabIndex"
@toggle-metrics="togglePerformanceMetricsVisibility"
@open-brand-picker="show = true"
@update:output-tab-index="onOutputTabIndexChange"
/>
</scroll-view>
<view v-if="mainTabIndex == 1" class="reception-list-wrapper">
<ReceptionCustomerListTab
:sticky-header="isLandscape"
:list-sub-tab-index="listSubTabIndex"
:reception-filter-narrow-mode="receptionFilterNarrowMode"
:entry-filter-index="entryFilterIndex"
:filter-tab-index="filterTabIndex"
:submitted-result-tab-index="submittedResultTabIndex"
:review-tab-index="reviewTabIndex"
:unsubmitted-pending-tab-index="unsubmittedPendingTabIndex"
:customer-list="customerList"
:reception-record-list="receptionRecordList"
:customer-list-loading-more="customerListLoadingMore"
:customer-list-has-more="customerListHasMore"
:reception-list-loading-more="receptionListLoadingMore"
:reception-list-has-more="receptionListHasMore"
@scroll-lower="onListScrollToLower"
@switch-list-sub-tab="switchListSubTab"
@switch-entry-filter-tab="switchEntryFilterTab"
@switch-filter-tab="switchFilterTab"
@open-submitted-result-picker="openSubmittedResultPicker"
@open-review-picker="openReviewPicker"
@switch-unsubmitted-pending-tab="switchUnsubmittedPendingTab"
@customer-entry-click="onCustomerEntryClick"
@entry-click="onListCustomerEntryClick"
@entry-edit="onListCustomerEntryEdit"
@entry-delete="onListCustomerEntryDelete"
@reception-click="onReceptionCardClick"
/>
</view>
</view>
<!-- 横屏:隐藏 Tabs,左右分栏同时展示(左 1/3 业绩看板,右 2/3 客户列表) -->
......@@ -274,7 +282,9 @@ const receptionTabsContainerStyle = computed((): UTSJSONObject => {
return {} as UTSJSONObject
}
return {
padding: c.containerPadding
padding: c.containerPadding,
// 仅 768x1174 竖屏需要额外顶距,其它分辨率强制为 0(避免顶部出现多余空隙)
marginTop: '30px',
} as UTSJSONObject
})
......@@ -1293,6 +1303,7 @@ onUnmounted(() => {
flex-shrink: 0;
border-bottom: 1px solid #eef2f7;
padding: 0px 12px 6px;
margin-top: 0px;
box-sizing: border-box;
}
......@@ -1329,6 +1340,20 @@ onUnmounted(() => {
.reception-content-portrait {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.reception-dashboard-scroll {
flex: 1;
width: 100%;
min-height: 0;
}
.reception-list-wrapper {
flex: 1;
width: 100%;
min-height: 0;
}
/* 横屏:左右分栏同时展示(左 1/3 业绩看板,右 2/3 客户列表) */
......
......@@ -77,6 +77,40 @@ export default {
'--reception-dash-flow-rate-value-line-height': '22px',
'--reception-dash-flow-rate-badge-size': '94px',
'--reception-dash-flow-rate-badge-radius': '47px',
// receptionCenter: dashboard(CardMonthValue) 默认样式变量(可被 resolutions 覆盖)
'--reception-dash-month-title-font-size': '14px',
'--reception-dash-month-output-summary-margin-top': '18px',
'--reception-dash-month-summary-label-font-size': '12px',
'--reception-dash-month-summary-label-margin-bottom': '6px',
'--reception-dash-month-summary-num-font-size': '28px',
'--reception-dash-month-summary-unit-font-size': '14px',
'--reception-dash-month-summary-unit-margin-left': '2px',
'--reception-dash-month-summary-unit-padding-bottom': '4px',
'--reception-dash-month-personal-margin-top': '8px',
'--reception-dash-month-personal-padding': '4px 8px',
'--reception-dash-month-personal-radius': '4px',
'--reception-dash-month-personal-label-font-size': '11px',
'--reception-dash-month-personal-value-font-size': '11px',
'--reception-dash-month-ring-size': '90px',
'--reception-dash-month-ring-half-size': '45px',
'--reception-dash-month-ring-radius': '45px',
'--reception-dash-month-ring-border-width': '6px',
'--reception-dash-month-ring-transform-origin': '45px 45px',
'--reception-dash-month-ring-half-right-left': '45px',
'--reception-dash-month-ring-half-inner-right-left': '-45px',
'--reception-dash-month-ring-value-font-size': '16px',
'--reception-dash-month-ring-label-font-size': '10px',
'--reception-dash-month-ring-label-margin-top': '2px',
'--reception-dash-month-target-padding-top': '16px',
'--reception-dash-month-target-label-font-size': '12px',
'--reception-dash-month-target-value-font-size': '14px',
'--reception-dash-month-target-value-margin-top': '4px',
},
portrait: {
'--adapter-color': 'red',
......@@ -174,6 +208,41 @@ export default {
'--reception-dash-flow-rate-value-line-height': '32px',
'--reception-dash-flow-rate-badge-size': '120px',
'--reception-dash-flow-rate-badge-radius': '60px',
// 针对 768x1174 竖屏:本月业绩卡片(CardMonthValue) 字体/尺寸自适应增大
'--reception-dash-month-title-font-size': '20px',
'--reception-dash-month-output-summary-margin-top': '22px',
'--reception-dash-month-summary-label-font-size': '16px',
'--reception-dash-month-summary-label-margin-bottom': '10px',
'--reception-dash-month-summary-num-font-size': '40px',
'--reception-dash-month-summary-unit-font-size': '20px',
'--reception-dash-month-summary-unit-margin-left': '6px',
'--reception-dash-month-summary-unit-padding-bottom': '6px',
'--reception-dash-month-personal-margin-top': '14px',
'--reception-dash-month-personal-padding': '8px 12px',
'--reception-dash-month-personal-radius': '10px',
'--reception-dash-month-personal-label-font-size': '16px',
'--reception-dash-month-personal-value-font-size': '16px',
'--reception-dash-month-ring-size': '128px',
'--reception-dash-month-ring-half-size': '64px',
'--reception-dash-month-ring-radius': '64px',
'--reception-dash-month-ring-border-width': '8px',
'--reception-dash-month-ring-transform-origin': '64px 64px',
'--reception-dash-month-ring-half-right-left': '64px',
'--reception-dash-month-ring-half-inner-right-left': '-64px',
'--reception-dash-month-ring-value-font-size': '22px',
'--reception-dash-month-ring-label-font-size': '14px',
'--reception-dash-month-ring-label-margin-top': '6px',
'--reception-dash-month-target-margin-top': '32px',
'--reception-dash-month-target-padding-top': '22px',
'--reception-dash-month-target-label-font-size': '16px',
'--reception-dash-month-target-value-font-size': '20px',
'--reception-dash-month-target-value-margin-top': '8px',
},
'landscape-1174x768': {
'--adapter-color': '#FF4444',
......
......@@ -46,12 +46,14 @@
:metrics-visible="performanceMetricsVisible"
@update:tab-index="onUpdateOutputTabIndex"
/>
<CardMonthValue
:summary="summary"
:target-value-text="targetValueText"
:achievement-value-text="achievementValueText"
:metrics-visible="performanceMetricsVisible"
/>
<view class="card-month-value-wrap">
<CardMonthValue
:summary="summary"
:target-value-text="targetValueText"
:achievement-value-text="achievementValueText"
:metrics-visible="performanceMetricsVisible"
/>
</view>
</view>
<!-- </scroll-view> -->
<!-- </layout-root> -->
......@@ -111,6 +113,9 @@ const headerEyeIconSize = computed((): number => {
</script>
<style scoped lang="scss">
.card-month-value-wrap {
margin: 16px 0;
}
// @import "../styles/common.scss";
.dashboard-scroll-view {
flex: 1;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!