From f6e1e018cb09ff01b51312968a972ffda9cbb492 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sun, 22 Mar 2026 14:59:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=A6=96=E9=A1=B5=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF/=E8=AE=A4?= =?UTF-8?q?=E8=AF=81+=E9=87=91=E9=A2=9D=E5=8C=BA=E4=B8=89=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除card-user用户信息卡片 - 移除cert-section认证企业/姓名区块 - row-1改为单列stats-group占满全宽 - 新增row-finance三列grid:余额/本月消费/总消费各一张finance-card - 渐变图标+大字号数值+趋势标签 --- clientarea/home/hgcloud_home/css/home.css | 53 +++++++++- clientarea/home/hgcloud_home/home.php | 113 ++++++++-------------- 2 files changed, 90 insertions(+), 76 deletions(-) diff --git a/clientarea/home/hgcloud_home/css/home.css b/clientarea/home/hgcloud_home/css/home.css index 3d8f917..a2a0341 100644 --- a/clientarea/home/hgcloud_home/css/home.css +++ b/clientarea/home/hgcloud_home/css/home.css @@ -43,12 +43,61 @@ box-sizing: border-box !important; } -/* ====== ROW 1 — 用户信息 + 统计卡片(并排) ====== */ +/* ====== ROW 1 — 统计卡片(占满全宽) ====== */ .row-1 { display: grid !important; - grid-template-columns: 3fr 2fr !important; + grid-template-columns: 1fr !important; gap: 16px !important; } + +/* ====== ROW-FINANCE — 余额 / 本月消费 / 总消费 ====== */ +.row-finance { + display: grid !important; + grid-template-columns: repeat(3, 1fr) !important; + gap: 16px !important; +} +.finance-card { + padding: 20px 24px !important; + display: flex !important; + flex-direction: column !important; + transition: box-shadow var(--ease), transform var(--ease) !important; +} +.finance-card:hover { + box-shadow: var(--shadow-md) !important; + transform: translateY(-2px); +} +.fc-icon-wrap { + width: 40px !important; height: 40px !important; border-radius: 10px !important; + display: flex !important; align-items: center !important; justify-content: center !important; + font-size: 20px !important; margin-bottom: 12px !important; +} +.fc-icon-blue { background: linear-gradient(135deg, #E0EAFF, #C7D7FE) !important; color: #3B5DFF !important; } +.fc-icon-green { background: linear-gradient(135deg, #D1FAE5, #A7F3D0) !important; color: #059669 !important; } +.fc-icon-amber { background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important; color: #D97706 !important; } +.fc-label { + font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 6px; +} +.fc-value { + font-size: 28px; font-weight: 700; color: var(--text-primary); + line-height: 1.1; margin-bottom: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; +} +.fc-value .fc-currency { font-size: 16px; margin-right: 2px; font-weight: 500; color: var(--text-secondary); } +.fc-footer { + display: flex !important; align-items: center !important; gap: 8px !important; + min-height: 24px; +} +.fc-trend-up { + display: inline-flex; align-items: center; padding: 2px 8px; + border-radius: 20px; font-size: 12px; font-weight: 600; + background: #D1FAE5; color: var(--success); +} +.fc-trend-down { + display: inline-flex; align-items: center; padding: 2px 8px; + border-radius: 20px; font-size: 12px; font-weight: 600; + background: #FEE2E2; color: var(--danger); +} +.fc-vs { font-size: 12px; color: var(--text-tertiary); } +.fc-sub { font-size: 12px; color: var(--text-tertiary); } /* 用户卡片:占 60% */ .card-user { flex: 3 !important; diff --git a/clientarea/home/hgcloud_home/home.php b/clientarea/home/hgcloud_home/home.php index 537d537..a1cddae 100644 --- a/clientarea/home/hgcloud_home/home.php +++ b/clientarea/home/hgcloud_home/home.php @@ -21,34 +21,9 @@
- +
- -
-
-
{{account.firstName}}
-
-
- {{lang.index_hello}}, {{account.username}} - {{idcsmart_client_level.name}} -
-
ID: {{account.id}}
-
-
-
-
- - {{account.email ? account.email : '--'}} -
-
- - {{account.phone ? account.phone : '--'}} -
-
-
- - +
@@ -68,34 +43,46 @@
- -
- -
-
- {{lang.index_text3}} + +
+ +
+
+
{{lang.index_text3}}
+
{{commonData.currency_prefix}}{{account.credit}}
+ -
- {{commonData.currency_prefix}}{{account.credit}} +
+ +
+
+
{{lang.index_text4}}
+
{{commonData.currency_prefix}}{{account.this_month_consume}}
+ -
- {{lang.index_text35}} -
- + +
+
+
{{lang.index_text5}}
+
{{commonData.currency_prefix}}{{account.consume}}
+ +
+
+ + +
+
@@ -127,30 +114,8 @@
- +
- -
-
-
-
-
{{lang.index_compny}}
-
{{certificationObj.company.certification_company}}
-
{{lang.index_goAttestation}}
-
-
-
-
-
-
{{lang.index_name}}
-
- {{certificationObj.company.status === 1 ? certificationObj.company.card_name : certificationObj.person.card_name}} -
-
{{lang.index_goAttestation}}
-
-
-
-