Commit 3b2d4ff0 by Lin

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

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