Commit 68e6fefb by Lin

style(reception): 更新接待中心样式和布局变量

- 移除冗余样式,优化接待中心页面的布局
- 引入新的 CSS 变量以支持动态适配,提升组件的灵活性
- 调整卡片和标签的样式,确保在不同屏幕尺寸下的视觉一致性
1 parent 7058287b
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="funnel-container"> <view class="funnel-container">
<view class="flow-layout"> <view class="flow-layout">
<view class="funnel-main"> <view class="funnel-main">
<view class="metric-card"> <view class="metric-card metric-card-primary">
<text class="metric-label">累计交付数</text> <text class="metric-label">累计交付数</text>
<text class="metric-value">{{ funnelCountDisplay1 }}</text> <text class="metric-value">{{ funnelCountDisplay1 }}</text>
</view> </view>
...@@ -127,15 +127,18 @@ const contactRateMasked = computed((): string => { ...@@ -127,15 +127,18 @@ const contactRateMasked = computed((): string => {
.funnel-main { .funnel-main {
flex: 1; flex: 1;
min-height: 108px; min-height: 108px;
flex-direction: column; flex-direction: var(--reception-dash-flow-metric-layout-direction, column);
align-items: stretch; align-items: stretch;
justify-content: center; justify-content: center;
padding-right: 10px; padding-right: var(--reception-dash-flow-metric-to-rate-gap, 10px);
box-sizing: border-box; box-sizing: border-box;
} }
.metric-card { .metric-card {
width: 100%; width: var(--reception-dash-flow-metric-card-width, 100%);
flex-grow: var(--reception-dash-flow-metric-card-flex-grow, 0);
flex-shrink: var(--reception-dash-flow-metric-card-flex-shrink, 0);
flex-basis: var(--reception-dash-flow-metric-card-flex-basis, auto);
min-height: var(--reception-dash-flow-metric-card-min-height, 48px); min-height: var(--reception-dash-flow-metric-card-min-height, 48px);
border-radius: 12px; border-radius: 12px;
background: rgba(255, 255, 255, 0.86); background: rgba(255, 255, 255, 0.86);
...@@ -143,12 +146,16 @@ const contactRateMasked = computed((): string => { ...@@ -143,12 +146,16 @@ const contactRateMasked = computed((): string => {
padding: 8px 12px; padding: 8px 12px;
box-sizing: border-box; box-sizing: border-box;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: var(--reception-dash-flow-metric-text-align-items, flex-start);
justify-content: center; justify-content: center;
} }
.metric-card-primary {
margin-right: var(--reception-dash-flow-metric-card-primary-margin-right, 0px);
}
.metric-card-secondary { .metric-card-secondary {
margin-top: 8px; margin-top: var(--reception-dash-flow-metric-card-secondary-margin-top, 8px);
background: rgba(255, 255, 255, 0.74); background: rgba(255, 255, 255, 0.74);
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
} }
...@@ -157,6 +164,8 @@ const contactRateMasked = computed((): string => { ...@@ -157,6 +164,8 @@ const contactRateMasked = computed((): string => {
font-size: var(--reception-dash-flow-metric-label-font-size, 11px); font-size: var(--reception-dash-flow-metric-label-font-size, 11px);
color: #7b90ad; color: #7b90ad;
line-height: var(--reception-dash-flow-metric-label-line-height, 14px); line-height: var(--reception-dash-flow-metric-label-line-height, 14px);
width: 100%;
text-align: var(--reception-dash-flow-metric-text-align, left);
} }
.metric-value { .metric-value {
...@@ -165,6 +174,8 @@ const contactRateMasked = computed((): string => { ...@@ -165,6 +174,8 @@ const contactRateMasked = computed((): string => {
font-weight: 700; font-weight: 700;
color: #1e40af; color: #1e40af;
line-height: var(--reception-dash-flow-metric-value-line-height, 22px); line-height: var(--reception-dash-flow-metric-value-line-height, 22px);
width: 100%;
text-align: var(--reception-dash-flow-metric-text-align, left);
} }
.rate-badge { .rate-badge {
......
...@@ -1294,7 +1294,6 @@ onUnmounted(() => { ...@@ -1294,7 +1294,6 @@ onUnmounted(() => {
border-bottom: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7;
padding: 0px 12px 6px; padding: 0px 12px 6px;
box-sizing: border-box; box-sizing: border-box;
margin-top: 30px;
} }
.reception-main-tabs { .reception-main-tabs {
......
...@@ -8,6 +8,34 @@ export default { ...@@ -8,6 +8,34 @@ export default {
// 兼容旧变量(scss 里有引用) // 兼容旧变量(scss 里有引用)
'--reception-main-tabs-font-size': '17px', '--reception-main-tabs-font-size': '17px',
// receptionCenter: dashboard header 默认样式变量(可被 resolutions 覆盖)
'--reception-dash-header-content-padding': '16px',
'--reception-dash-header-margin-bottom': '16px',
'--reception-dash-header-surface-padding': '12px',
'--reception-dash-header-surface-border-radius': '14px',
'--reception-dash-header-top-row-margin-bottom': '10px',
'--reception-dash-header-eyebrow-font-size': '11px',
'--reception-dash-header-eyebrow-margin-bottom': '2px',
'--reception-dash-header-title-font-size': '17px',
'--reception-dash-header-eye-btn-size': '30px',
'--reception-dash-header-eye-icon-size': '18px',
'--reception-dash-header-eye-btn-margin-right': '8px',
'--reception-dash-header-tag-height': '36px',
'--reception-dash-header-tag-min-width': '148px',
'--reception-dash-header-tag-padding-x': '10px',
'--reception-dash-header-tag-border-radius': '10px',
'--reception-dash-header-badge-height': '22px',
'--reception-dash-header-badge-padding-x': '8px',
'--reception-dash-header-badge-font-size': '10px',
'--reception-dash-header-badge-margin-right': '8px',
'--reception-dash-header-tag-font-size': '13px',
'--reception-dash-header-arrow-icon-size': '14px',
'--reception-dash-header-arrow-icon-margin-left': '6px',
'--reception-dash-header-progress-row-margin-bottom': '8px',
'--reception-dash-header-progress-label-font-size': '11px',
'--reception-dash-header-progress-value-font-size': '12px',
'--reception-dash-header-progress-bar-height': '8px',
// receptionCenter: dashboard(CardOutputValue) 默认样式变量(可被 resolutions 覆盖) // receptionCenter: dashboard(CardOutputValue) 默认样式变量(可被 resolutions 覆盖)
'--reception-dash-card-padding': '16px 20px', '--reception-dash-card-padding': '16px 20px',
'--reception-dash-card-border-radius': '22px', '--reception-dash-card-border-radius': '22px',
...@@ -29,6 +57,18 @@ export default { ...@@ -29,6 +57,18 @@ export default {
'--reception-dash-flow-metric-label-font-size': '11px', '--reception-dash-flow-metric-label-font-size': '11px',
'--reception-dash-flow-metric-value-font-size': '19px', '--reception-dash-flow-metric-value-font-size': '19px',
'--reception-dash-flow-metric-card-min-height': '48px', '--reception-dash-flow-metric-card-min-height': '48px',
// receptionCenter: dashboard(CardFlow) 卡片布局变量(可被 resolutions 覆盖)
'--reception-dash-flow-metric-layout-direction': 'column',
'--reception-dash-flow-metric-to-rate-gap': '10px',
'--reception-dash-flow-metric-card-width': '100%',
'--reception-dash-flow-metric-card-flex-grow': '0',
'--reception-dash-flow-metric-card-flex-shrink': '0',
'--reception-dash-flow-metric-card-flex-basis': 'auto',
// receptionCenter: dashboard(CardFlow) 文本对齐(可被 resolutions 覆盖)
'--reception-dash-flow-metric-text-align-items': 'flex-start',
'--reception-dash-flow-metric-text-align': 'left',
'--reception-dash-flow-metric-card-primary-margin-right': '0px',
'--reception-dash-flow-metric-card-secondary-margin-top': '8px',
'--reception-dash-flow-metric-label-line-height': '14px', '--reception-dash-flow-metric-label-line-height': '14px',
'--reception-dash-flow-metric-value-line-height': '22px', '--reception-dash-flow-metric-value-line-height': '22px',
'--reception-dash-flow-rate-caption-font-size': '11px', '--reception-dash-flow-rate-caption-font-size': '11px',
...@@ -68,6 +108,34 @@ export default { ...@@ -68,6 +108,34 @@ export default {
// 兼容旧变量(scss 里有引用) // 兼容旧变量(scss 里有引用)
'--reception-main-tabs-font-size': '24px', '--reception-main-tabs-font-size': '24px',
// 针对 768x1174 竖屏:看板头部(header) 尺寸自适应增大
'--reception-dash-header-content-padding': '22px',
'--reception-dash-header-margin-bottom': '22px',
'--reception-dash-header-surface-padding': '18px',
'--reception-dash-header-surface-border-radius': '18px',
'--reception-dash-header-top-row-margin-bottom': '14px',
'--reception-dash-header-eyebrow-font-size': '16px',
'--reception-dash-header-eyebrow-margin-bottom': '4px',
'--reception-dash-header-title-font-size': '24px',
'--reception-dash-header-eye-btn-size': '44px',
'--reception-dash-header-eye-icon-size': '26px',
'--reception-dash-header-eye-btn-margin-right': '12px',
'--reception-dash-header-tag-height': '52px',
'--reception-dash-header-tag-min-width': '220px',
'--reception-dash-header-tag-padding-x': '14px',
'--reception-dash-header-tag-border-radius': '14px',
'--reception-dash-header-badge-height': '32px',
'--reception-dash-header-badge-padding-x': '10px',
'--reception-dash-header-badge-font-size': '15px',
'--reception-dash-header-badge-margin-right': '12px',
'--reception-dash-header-tag-font-size': '19px',
'--reception-dash-header-arrow-icon-size': '20px',
'--reception-dash-header-arrow-icon-margin-left': '10px',
'--reception-dash-header-progress-row-margin-bottom': '12px',
'--reception-dash-header-progress-label-font-size': '16px',
'--reception-dash-header-progress-value-font-size': '17px',
'--reception-dash-header-progress-bar-height': '12px',
// 针对 768x1174 竖屏:看板(CardOutputValue) 字体/宽高自适应增大 // 针对 768x1174 竖屏:看板(CardOutputValue) 字体/宽高自适应增大
'--reception-dash-output-tabs-margin-bottom': '28px', '--reception-dash-output-tabs-margin-bottom': '28px',
'--reception-dash-segmented-font-size': '19px', '--reception-dash-segmented-font-size': '19px',
...@@ -86,14 +154,26 @@ export default { ...@@ -86,14 +154,26 @@ export default {
'--reception-dash-flow-metric-label-font-size': '16px', '--reception-dash-flow-metric-label-font-size': '16px',
'--reception-dash-flow-metric-value-font-size': '28px', '--reception-dash-flow-metric-value-font-size': '28px',
'--reception-dash-flow-metric-card-min-height': '72px', '--reception-dash-flow-metric-card-min-height': '72px',
// 针对 768x1174 竖屏:两个 metric card 并排展示
'--reception-dash-flow-metric-layout-direction': 'row',
'--reception-dash-flow-metric-to-rate-gap': '16px',
'--reception-dash-flow-metric-card-width': 'auto',
'--reception-dash-flow-metric-card-flex-grow': '1',
'--reception-dash-flow-metric-card-flex-shrink': '1',
'--reception-dash-flow-metric-card-flex-basis': '0px',
// 针对 768x1174 竖屏:卡片内文字居中
'--reception-dash-flow-metric-text-align-items': 'center',
'--reception-dash-flow-metric-text-align': 'center',
'--reception-dash-flow-metric-card-primary-margin-right': '12px',
'--reception-dash-flow-metric-card-secondary-margin-top': '0px',
'--reception-dash-flow-metric-label-line-height': '20px', '--reception-dash-flow-metric-label-line-height': '20px',
'--reception-dash-flow-metric-value-line-height': '34px', '--reception-dash-flow-metric-value-line-height': '34px',
'--reception-dash-flow-rate-caption-font-size': '16px', '--reception-dash-flow-rate-caption-font-size': '16px',
'--reception-dash-flow-rate-caption-line-height': '20px', '--reception-dash-flow-rate-caption-line-height': '20px',
'--reception-dash-flow-rate-value-font-size': '26px', '--reception-dash-flow-rate-value-font-size': '26px',
'--reception-dash-flow-rate-value-line-height': '32px', '--reception-dash-flow-rate-value-line-height': '32px',
'--reception-dash-flow-rate-badge-size': '140px', '--reception-dash-flow-rate-badge-size': '120px',
'--reception-dash-flow-rate-badge-radius': '70px', '--reception-dash-flow-rate-badge-radius': '60px',
}, },
'landscape-1174x768': { 'landscape-1174x768': {
'--adapter-color': '#FF4444', '--adapter-color': '#FF4444',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!