From daf385c8e0618965fd2f2e2b536fbc472cb6865b Mon Sep 17 00:00:00 2001 From: wikiboss Date: Mon, 21 Sep 2026 15:06:10 +0800 Subject: [PATCH] =?UTF-8?q?style(crm):=20=E9=A1=B6=E7=BA=A7UI/UX=E7=BE=8E?= =?UTF-8?q?=E5=AD=A6=E5=8D=87=E7=BB=B4=E7=8B=AC=E7=AB=8B=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=B8=AD=E5=BF=83(stats.uvue)=EF=BC=8C=E6=B3=A8=E5=85=A5?= =?UTF-8?q?=E5=A4=A9=E5=B9=95=E5=BE=AE=E6=9E=81=E5=85=89=E3=80=81=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E8=88=B1=E6=8E=A7=E5=88=B6=E5=8F=B0=E4=B8=8E=E6=B5=81?= =?UTF-8?q?=E4=BD=93=E6=BC=8F=E6=96=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mpuniapp/pages/owner/card/edit.uvue | 42 +- mpuniapp/pages/owner/stats.uvue | 645 ++++++++++++++++++++++------ mpuniapp/pages/owner/useStats.uts | 28 ++ 3 files changed, 563 insertions(+), 152 deletions(-) diff --git a/mpuniapp/pages/owner/card/edit.uvue b/mpuniapp/pages/owner/card/edit.uvue index b0d5b6a..201c5eb 100644 --- a/mpuniapp/pages/owner/card/edit.uvue +++ b/mpuniapp/pages/owner/card/edit.uvue @@ -34,24 +34,24 @@ - - - - - PORTFOLIO - ↗ + + + + + PORTFOLIO + ↗ - {{ casesEntryTitle }} - {{ casesEntrySub }} + {{ casesEntryTitle }} + {{ casesEntrySub }} - - - INSIGHTS - ↗ + + + INSIGHTS + ↗ - {{ articlesEntryTitle }} - {{ articlesEntrySub }} + {{ articlesEntryTitle }} + {{ articlesEntrySub }} @@ -1164,14 +1164,14 @@ onLoad((options: CardEditPageOptions) => { color: var(--oc-text-2, #667085); } -.bento-entry-grid { +.quick-entry-grid { display: flex; flex-direction: row; gap: 12px; margin-bottom: 16px; } -.bento-entry-card { +.quick-entry-card { flex: 1; background-color: var(--oc-surface, #FFFFFF); border-radius: var(--oc-radius-card, 20px); @@ -1182,7 +1182,7 @@ onLoad((options: CardEditPageOptions) => { flex-direction: column; } -.bento-entry-top { +.quick-entry-top { display: flex; flex-direction: row; justify-content: space-between; @@ -1190,7 +1190,7 @@ onLoad((options: CardEditPageOptions) => { margin-bottom: 6px; } -.bento-entry-badge { +.quick-entry-badge { font-size: 10px; font-weight: 700; color: var(--oc-primary, #0088FF); @@ -1199,19 +1199,19 @@ onLoad((options: CardEditPageOptions) => { border-radius: 4px; } -.bento-entry-arrow { +.quick-entry-arrow { font-size: 14px; color: var(--oc-text-2, #64748B); } -.bento-entry-title { +.quick-entry-title { font-size: 14px; font-weight: 700; color: var(--oc-text, #101828); margin-bottom: 2px; } -.bento-entry-sub { +.quick-entry-sub { font-size: 11px; color: var(--oc-text-2, #64748B); } diff --git a/mpuniapp/pages/owner/stats.uvue b/mpuniapp/pages/owner/stats.uvue index 01ca465..688f33f 100644 --- a/mpuniapp/pages/owner/stats.uvue +++ b/mpuniapp/pages/owner/stats.uvue @@ -1,19 +1,29 @@ @@ -198,6 +295,19 @@ const pageRtlClass = computed((): string => { return isRtl(getCurrentLocale()) ? 'stats-rtl' : ''; }); +const healthHotFlex = computed((): number => { + return state.summary.hotLeads > 0 ? state.summary.hotLeads : 1; +}); + +const healthWarmFlex = computed((): number => { + const warm = state.summary.totalLeads - state.summary.hotLeads - state.summary.wonLeads; + return warm > 0 ? warm : 1; +}); + +const healthCoolFlex = computed((): number => { + return 1; +}); + function t(key: string): string { return resolveStatsText(key); } @@ -221,89 +331,133 @@ onShow(() => {