Commit 16f4b0fc by liimin

Merge branch 'feature/rework' of http://192.168.3.233:8090/monorepo/venus into feature/rework

2 parents d390dcfe 4e1673a1
......@@ -4,16 +4,18 @@
<image class="home-tabbar-bg-img"
mode="aspectFill"
src="/static/images/home/left-bg.png" />
<view class="user-box user-box-clickable hf-landscape-user"
@click="emit('jumpPersonCenter')">
<view class="hf-landscape-profile">
<un-avatar :text="avatarText"
shape="circle"
size="52"
bgColor="#2f6af7"
color="#ffffff"
fontSize="20" />
<text class="hf-landscape-name">{{ userName }}</text>
<view class="hf-landscape-column">
<view class="user-box user-box-clickable hf-landscape-user"
@click="emit('jumpPersonCenter')">
<view class="hf-landscape-profile">
<un-avatar :text="avatarText"
shape="circle"
size="52"
bgColor="#2f6af7"
color="#ffffff"
fontSize="20" />
<text class="hf-landscape-name">{{ userName }}</text>
</view>
</view>
</view>
<view class="landscape-tabbar-wrap">
......@@ -30,20 +32,21 @@
<text class="landscape-vertical-tabs__label">{{ item.label }}</text>
</view>
</view>
</view>
</view>
</view>
<view class="home-tabbar-footer flex-col hf-landscape-footer">
<view class="hf-landscape-footer-btn"
@tap="emit('sceneChange')">
<image class="hf-landscape-footer-icon"
mode="aspectFit"
src="/static/images/home/scene-change.png" />
</view>
<view class="hf-landscape-footer-btn hf-landscape-footer-btn--after"
@tap="emit('setting')">
<image class="hf-landscape-footer-icon"
mode="aspectFit"
src="/static/images/home/setting.png" />
<view class="home-tabbar-footer flex-col hf-landscape-footer">
<view class="hf-landscape-footer-btn"
@tap="emit('sceneChange')">
<image class="hf-landscape-footer-icon"
mode="aspectFit"
src="/static/images/home/scene-change.png" />
</view>
<view class="hf-landscape-footer-btn hf-landscape-footer-btn--after"
@tap="emit('setting')">
<image class="hf-landscape-footer-icon"
mode="aspectFit"
src="/static/images/home/setting.png" />
</view>
</view>
</view>
<CenterPopup :list="sceneTypeList"
......@@ -106,6 +109,20 @@ function onTabItemClick(index: number): void {
<style scoped lang="scss">
@import "./styles/common.scss";
/* 横屏侧栏主列:顶/左右/底对称留白,子块共一条竖直中轴 */
.hf-landscape-column {
flex: 1;
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: 14px 10px 20px;
position: relative;
z-index: 1;
}
/* 横屏侧栏:用户区 / Tab / 底按钮同一竖直中轴 */
.hf-landscape-user {
width: 100%;
......@@ -113,7 +130,8 @@ function onTabItemClick(index: number): void {
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding-top: 20px;
padding-top: 0;
flex-shrink: 0;
}
.hf-landscape-profile {
......@@ -123,7 +141,7 @@ function onTabItemClick(index: number): void {
align-items: center;
}
/* 与 MyCenterMain .name 一致 */
/* 与 MyCenterMain .name 一致;与 Tab 文案同宽便于视觉对齐 */
.hf-landscape-name {
margin-top: 10px;
font-size: 19px;
......@@ -131,18 +149,31 @@ function onTabItemClick(index: number): void {
color: #1a2433;
line-height: 24px;
text-align: center;
max-width: 108px;
width: 100%;
max-width: 104px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hf-landscape-tab-wrap {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 0;
}
.hf-landscape-footer {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
flex-shrink: 0;
margin-top: auto;
padding-bottom: 0;
}
.hf-landscape-footer-btn {
......@@ -211,7 +242,8 @@ function onTabItemClick(index: number): void {
font-size: 12px;
color: #8a98b5;
text-align: center;
max-width: 96px;
width: 100%;
max-width: 104px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
......
......@@ -419,7 +419,7 @@
display: flex;
flex-direction: column;
position: relative;
width: 120px;
// width: 120px;
flex-shrink: 0;
background-image: linear-gradient(to bottom, #e8f0fe, #e8ecf5);
......
......@@ -6,7 +6,7 @@
<view class="funnel-container">
<view class="flow-layout">
<view class="funnel-main">
<view class="metric-card">
<view class="metric-card metric-card-primary">
<text class="metric-label">累计交付数</text>
<text class="metric-value">{{ funnelCountDisplay1 }}</text>
</view>
......@@ -127,15 +127,18 @@ const contactRateMasked = computed((): string => {
.funnel-main {
flex: 1;
min-height: 108px;
flex-direction: column;
flex-direction: var(--reception-dash-flow-metric-layout-direction, column);
align-items: stretch;
justify-content: center;
padding-right: 10px;
padding-right: var(--reception-dash-flow-metric-to-rate-gap, 10px);
box-sizing: border-box;
}
.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);
border-radius: 12px;
background: rgba(255, 255, 255, 0.86);
......@@ -143,12 +146,16 @@ const contactRateMasked = computed((): string => {
padding: 8px 12px;
box-sizing: border-box;
flex-direction: column;
align-items: flex-start;
align-items: var(--reception-dash-flow-metric-text-align-items, flex-start);
justify-content: center;
}
.metric-card-primary {
margin-right: var(--reception-dash-flow-metric-card-primary-margin-right, 0px);
}
.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);
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
......@@ -157,6 +164,8 @@ const contactRateMasked = computed((): string => {
font-size: var(--reception-dash-flow-metric-label-font-size, 11px);
color: #7b90ad;
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 {
......@@ -165,6 +174,8 @@ const contactRateMasked = computed((): string => {
font-weight: 700;
color: #1e40af;
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 {
......
<template>
<!-- 接待中心 Tab 聚合页:与 pages/index、pages/person/myCenter 一致,SceneShell 负责 hideNativeTabBar + un-tabbar -->
<layout-root :page-vars="pageVars">
<view class="reception-shell-page">
<view class="reception-shell-page" :style="receptionShellPageStyle">
<SceneShell ref="shellRef"
:active-tab-index="1">
<template #default>
......@@ -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 客户列表) -->
......@@ -215,6 +223,29 @@ const receptionOrientationHook = useOrientation()
const hookOrientation = computed((): string => {
return (receptionOrientationHook.orientationKey as Ref<string>).value
})
/**
* 固定页面可用高度,避免出现“整页上下滑 + 内部列表滚动”的双滚动/溢出问题。
* 说明:
* - uni-app x App 端不支持 vh/calc,改用 JS 计算后的 px 高度
* - 这里使用 useOrientation 内部的 screenHeight(物理屏幕高)作为页面容器高度基准
* - 内容区继续用 flex 布局分配剩余高度(Tabs 固定、内容自适应)
*/
const receptionShellPageStyle = computed((): UTSJSONObject => {
const h = (receptionOrientationHook.windowHeight as Ref<number>).value
if (h > 0) {
return {
width: '100%',
height: `${h}px`,
overflow: 'hidden'
} as UTSJSONObject
}
return {
width: '100%',
height: '100%',
overflow: 'hidden'
} as UTSJSONObject
})
// ========== Tab 管理 ==========
/** 主 Tab:0=业绩看板,1=客户列表 */
const mainTabIndex = ref(0)
......@@ -251,7 +282,9 @@ const receptionTabsContainerStyle = computed((): UTSJSONObject => {
return {} as UTSJSONObject
}
return {
padding: c.containerPadding
padding: c.containerPadding,
// 仅 768x1174 竖屏需要额外顶距,其它分辨率强制为 0(避免顶部出现多余空隙)
marginTop: '30px',
} as UTSJSONObject
})
......@@ -1209,9 +1242,7 @@ onMounted(() => {
// 横屏:左右分栏同时展示两个模块,因此初始化时两边数据都需要拉取
if (isLandscape.value == true) {
void getPerformanceData()
if (listSubTabIndex.value == 0) {
void getCustomerList(false)
} else {
if (listSubTabIndex.value != 0) {
void getReceptionRecordList(false)
}
} else {
......@@ -1219,12 +1250,16 @@ onMounted(() => {
void getPerformanceData()
} else {
if (listSubTabIndex.value == 0) {
void getCustomerList(false)
// 客户列表会在下方统一触发一次
} else {
void getReceptionRecordList(false)
}
}
}
// 默认页面加载完成后拉取一次客户列表
customerFilePageNum.value = 1
void getCustomerList(false)
})
// 在 center.uvue setup 顶部监听自定义事件,刷新列表
......@@ -1243,6 +1278,16 @@ onUnmounted(() => {
<style scoped lang="scss">
@import "./styles/common.scss";
.reception-shell-page {
flex: 1;
width: 100%;
height: 100%;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* 接待中心页面包一层:供预录表单绝对定位覆盖 */
.reception-center-page {
flex: 1;
......@@ -1260,8 +1305,8 @@ onUnmounted(() => {
flex-shrink: 0;
border-bottom: 1px solid #eef2f7;
padding: 0px 12px 6px;
margin-top: 0px;
box-sizing: border-box;
margin-top: 30px;
}
.reception-main-tabs {
......@@ -1284,4 +1329,58 @@ onUnmounted(() => {
display: flex;
flex-direction: column;
}
/* ========== 内容区域布局(竖/横屏) ========== */
.reception-content-container {
flex: 1;
width: 100%;
min-height: 0;
display: flex;
flex-direction: column;
}
.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 客户列表) */
.reception-content-landscape {
flex: 1;
width: 100%;
min-height: 0;
display: flex;
flex-direction: row;
}
.reception-landscape-left {
flex: 1;
min-width: 0;
max-width: 33.3333%;
min-height: 0;
display: flex;
flex-direction: column;
}
.reception-landscape-right {
flex: 2;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
</style>
......@@ -370,13 +370,6 @@ const emit = defineEmits<{
'close': []
}>()
function getStr(data: UTSJSONObject | null, key: string): string {
if (data == null) { return '' }
const v = data[key]
if (v == null) { return '' }
return `${v}`
}
// 格式化手机号:13001365398 -> 130 0136 5398
function formatPhone(phone: string): string {
if (phone == null || phone == '') { return '' }
......@@ -532,7 +525,6 @@ async function loadMaterialResponsePageForDetail(d: UTSJSONObject | null): Promi
try {
const res = await getMaterialResponsePage(params)
console.log('getMaterialResponsePage', res);
const body = res as UTSJSONObject
const listRaw = body['list']
if (listRaw != null && listRaw instanceof Array) {
......@@ -573,32 +565,32 @@ watch(
const displayName = computed((): string => {
const d = resolvedDetail.value
if (d == null) { return '-' }
const v = getStr(d, 'ownerName')
const v = fieldStr(d, 'ownerName')
if (v != '') { return v }
return orPlaceholder(getStr(d, 'name'))
return orPlaceholder(fieldStr(d, 'name'))
})
const displayPhone = computed((): string => {
const d = resolvedDetail.value
if (d == null) { return '-' }
const raw = getStr(d, 'ownerPhone')
const raw = fieldStr(d, 'ownerPhone')
if (raw != '') { return formatPhone(raw) }
const raw2 = getStr(d, 'phone')
const raw2 = fieldStr(d, 'phone')
return orPlaceholder(formatPhone(raw2))
})
const displayBrandModel = computed((): string => {
const d = resolvedDetail.value
if (d == null) { return '-' }
return orPlaceholder(getStr(d, 'brandModel'))
return orPlaceholder(fieldStr(d, 'brandModel'))
})
const displayReceptionScenario = computed((): string => {
const d = resolvedDetail.value
if (d == null) { return '-' }
let v = getStr(d, 'receptionScenario')
let v = fieldStr(d, 'receptionScenario')
if (v == '') {
v = getStr(d, 'receptionSceneName')
v = fieldStr(d, 'receptionSceneName')
}
return orPlaceholder(v)
})
......@@ -613,9 +605,9 @@ const displayVisitDate = computed((): string => {
const displayCustomerTags = computed((): string => {
const d = resolvedDetail.value
if (d == null) { return '-' }
let tag = getStr(d, 'customerTagName')
let tag = fieldStr(d, 'customerTagName')
if (tag == '') {
tag = getStr(d, 'customerTags')
tag = fieldStr(d, 'customerTags')
}
if (tag.indexOf(',') >= 0) {
const tagParts = tag.split(',')
......
......@@ -8,6 +8,38 @@ export default {
// 兼容旧变量(scss 里有引用)
'--reception-main-tabs-font-size': '17px',
// receptionCenter: 列表底部提示文案(加载中/已到底)默认字号(可被 resolutions 覆盖)
'--reception-list-footer-font-size': '13px',
'--reception-list-footer-line-height': '18px',
// 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 覆盖)
'--reception-dash-card-padding': '16px 20px',
'--reception-dash-card-border-radius': '22px',
......@@ -29,6 +61,18 @@ export default {
'--reception-dash-flow-metric-label-font-size': '11px',
'--reception-dash-flow-metric-value-font-size': '19px',
'--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-value-line-height': '22px',
'--reception-dash-flow-rate-caption-font-size': '11px',
......@@ -37,6 +81,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',
......@@ -68,6 +146,38 @@ export default {
// 兼容旧变量(scss 里有引用)
'--reception-main-tabs-font-size': '24px',
// 针对 768x1174 竖屏:列表底部提示文案字号自适应增大
'--reception-list-footer-font-size': '16px',
'--reception-list-footer-line-height': '22px',
// 针对 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) 字体/宽高自适应增大
'--reception-dash-output-tabs-margin-bottom': '28px',
'--reception-dash-segmented-font-size': '19px',
......@@ -86,14 +196,61 @@ export default {
'--reception-dash-flow-metric-label-font-size': '16px',
'--reception-dash-flow-metric-value-font-size': '28px',
'--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-value-line-height': '34px',
'--reception-dash-flow-rate-caption-font-size': '16px',
'--reception-dash-flow-rate-caption-line-height': '20px',
'--reception-dash-flow-rate-value-font-size': '26px',
'--reception-dash-flow-rate-value-line-height': '32px',
'--reception-dash-flow-rate-badge-size': '140px',
'--reception-dash-flow-rate-badge-radius': '70px',
'--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',
......
......@@ -138,6 +138,9 @@
<text v-if="receptionListLoadingMore == true" class="list-footer-text">加载中...</text>
<text v-else-if="receptionListHasMore != true && receptionRecordList.length > 0" class="list-footer-text">- 已经到底了 -</text>
</view>
<!-- 竖屏:底部增加 tabbar 占位 + 安全区 padding,避免内容被自定义 tabbar 覆盖 -->
<view v-if="isPortraitMode == true" class="list-bottom-safe-spacer" :style="bottomSafeSpacerStyle"></view>
</view>
</list-item>
</list-view>
......@@ -153,6 +156,7 @@ import CustomEmpty from '@/components/CustomEmpty/index.uvue'
import ReceptionListPrimaryFilter from '../filters/ReceptionListPrimaryFilter.uvue'
import ReceptionListSecondaryFilter from '../filters/ReceptionListSecondaryFilter.uvue'
import { cssClassRef } from '@/services/adapter'
import { getPortraitConfig, PORTRAIT_COMMON } from '@/components/HomeFrame/styles/portrait.uts'
import {
getReceptionPortraitListSubTabsConfig,
type ReceptionPortraitListSubTabsConfig,
......@@ -219,6 +223,21 @@ const showCustomerEmpty = computed((): boolean => {
const showReceptionEmpty = computed((): boolean => {
return props.receptionRecordList.length == 0 && props.receptionListHasMore != true && props.receptionListLoadingMore != true
})
const isPortraitMode = computed((): boolean => {
const cls = cssClassRef.value
return cls != null && cls.indexOf('layout-portrait') >= 0
})
const bottomSafeSpacerStyle = computed((): UTSJSONObject => {
if (isPortraitMode.value != true) {
return {} as UTSJSONObject
}
const cls = cssClassRef.value
const cfg = getPortraitConfig(cls)
const h = cfg != null ? (cfg.tabbarHeight as number) : (PORTRAIT_COMMON.tabbarHeight as number)
return { height: `${h}px` } as UTSJSONObject
})
</script>
<style scoped lang="scss">
......@@ -364,6 +383,7 @@ const showReceptionEmpty = computed((): boolean => {
flex-direction: column;
padding-left: 12px;
padding-right: 12px;
padding-bottom: env(safe-area-inset-bottom);
box-sizing: border-box;
}
......@@ -380,8 +400,13 @@ const showReceptionEmpty = computed((): boolean => {
flex-direction: row;
}
.list-bottom-safe-spacer {
width: 100%;
}
.list-footer-text {
font-size: 10px;
font-size: var(--reception-list-footer-font-size, 13px);
line-height: var(--reception-list-footer-line-height, 18px);
color: #94A3B8;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!