Commit 3b2d4ff0 by Lin

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

- 更新接待中心的卡片样式,移除冗余的样式绑定,提升代码简洁性
- 引入滚动视图以支持竖屏模式下的内容溢出处理
- 调整样式变量以适应不同屏幕尺寸,增强视觉一致性
- 增加新的样式类以改善卡片的布局和间距
1 parent 68e6fefb
...@@ -34,8 +34,14 @@ ...@@ -34,8 +34,14 @@
<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"
class="reception-dashboard-scroll"
scroll-y="true"
show-scrollbar="false"
>
<ReceptionDashboardTab
:performance-data="performanceData" :performance-data="performanceData"
:performance-metrics-visible="performanceMetricsVisible" :performance-metrics-visible="performanceMetricsVisible"
:selected-brand="selectedBrand" :selected-brand="selectedBrand"
...@@ -49,9 +55,10 @@ ...@@ -49,9 +55,10 @@
@open-brand-picker="show = true" @open-brand-picker="show = true"
@update:output-tab-index="onOutputTabIndexChange" @update:output-tab-index="onOutputTabIndexChange"
/> />
</scroll-view>
<view v-if="mainTabIndex == 1" class="reception-list-wrapper">
<ReceptionCustomerListTab <ReceptionCustomerListTab
v-if="mainTabIndex == 1"
:sticky-header="isLandscape" :sticky-header="isLandscape"
:list-sub-tab-index="listSubTabIndex" :list-sub-tab-index="listSubTabIndex"
:reception-filter-narrow-mode="receptionFilterNarrowMode" :reception-filter-narrow-mode="receptionFilterNarrowMode"
...@@ -80,6 +87,7 @@ ...@@ -80,6 +87,7 @@
@reception-click="onReceptionCardClick" @reception-click="onReceptionCardClick"
/> />
</view> </view>
</view>
<!-- 横屏:隐藏 Tabs,左右分栏同时展示(左 1/3 业绩看板,右 2/3 客户列表) --> <!-- 横屏:隐藏 Tabs,左右分栏同时展示(左 1/3 业绩看板,右 2/3 客户列表) -->
<view v-else class="reception-content-landscape"> <view v-else class="reception-content-landscape">
...@@ -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,6 +46,7 @@ ...@@ -46,6 +46,7 @@
:metrics-visible="performanceMetricsVisible" :metrics-visible="performanceMetricsVisible"
@update:tab-index="onUpdateOutputTabIndex" @update:tab-index="onUpdateOutputTabIndex"
/> />
<view class="card-month-value-wrap">
<CardMonthValue <CardMonthValue
:summary="summary" :summary="summary"
:target-value-text="targetValueText" :target-value-text="targetValueText"
...@@ -53,6 +54,7 @@ ...@@ -53,6 +54,7 @@
:metrics-visible="performanceMetricsVisible" :metrics-visible="performanceMetricsVisible"
/> />
</view> </view>
</view>
<!-- </scroll-view> --> <!-- </scroll-view> -->
<!-- </layout-root> --> <!-- </layout-root> -->
</template> </template>
...@@ -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!