Browse Source

refactor(profile): 收敛我的页为身份+家庭+资产入口+设置结构

- 身份卡+积分合并为单卡锚点
- 家庭横滑头像条保留
- 资产区由 5+2+5 网格收敛为 订单/卡券/成就 三入口 BaseCard
- 健康报告改为单行入口
- 团队/规划师服务中心保留,删除悬浮邀请按钮(二选一取网格分享入口)
- 设置 actionSheet 6 项含切换账号
- 删除死方法 goToTasks/goToAppointments 等 12 个
- 游客登录引导复用 LoginGuideCard 替代内联实现
- 退役 5 列成就网格相关契约测试,新增资产入口契约测试
Agnes Agent 2 hours ago
parent
commit
53f0dfc16e

+ 0 - 114
cfc-frontend/__tests__/pages/profile-main/achievement.fiveCol.test.js

@@ -1,114 +0,0 @@
-/**
- * 契约级单测(TDD-RED)——能力键 achievement.grid.fiveCol
- *
- * 溯源:
- *   requirement: tests/user-scenarios/应用场景总览.md SC-A-27(成就与成长历史·家长端)
- *                + docs/需求分析/2026-11-06-成就成长打卡需求变更.md 变更 D(我的成就固定五列)
- *   design:      cfc-frontend/pages/profile-main/profile.vue「我的成就」区块
- *                模板 L151-187(.achievement-grid.cols-5 + 5 个 .ach-item)+
- *                样式 原 .ach-item{width:25%} 改五列等分 .achievement-grid.cols-5 .ach-item{width:20%}
- *
- * 缺陷本质(本用例守护的规则):
- *   「我的成就」区块固定 5 张成就卡(连续打卡/完成任务/收集勋章/成长记录/参加挑战)。
- *   原 .ach-item{width:25%}(4 列等分)→ 第 5 张卡折行错位。
- *   变更 D 要求该区块独占 5 列等分(width:20%),单行排布不折行;
- *   且必须用独立网格类(.cols-5)隔离,不得全局改 .achievement-grid(其被「我的团队」.team-grid / 「卡券中心」复用)。
- *
- * 断言口径(静态结构契约,读真实 SFC 源码,不依赖渲染引擎):
- *   1) 模板「我的成就」区块根容器使用 .achievement-grid.cols-5
- *   2) 样式存在 .achievement-grid.cols-5 .ach-item 规则,且 width 为 20%(五列等分)
- *   3) 该区块含 ≥5 个成就入口,且跳转方法为 goToStreak/goToTaskHistory/goToBadges/goToGrowth/goToChallenges
- *   4) 隔离性:全局 .achievement-grid 未被改成 20%(保护「我的团队」3 列布局不被波及)
- *
- * 说明(既有 Jest 体系约束):
- *   cfc-frontend jest.config.js 仅 transform .js,未装 vue-jest/jsdom 组件环境——
- *   沿用既有约定:读取真实 SFC 源码做结构契约断言(参考 __tests__/family-join/join-form.required-info.test.js、
- *   __tests__/pages/growth-main/growthGrid.layout.test.js)。本文件不修改 pages/ 任何业务代码。
- */
-
-import fs from 'fs'
-import path from 'path'
-
-const PAGE_PATH = path.join(__dirname, '../../../pages/profile-main/profile.vue')
-const SRC = fs.readFileSync(PAGE_PATH, 'utf8')
-
-/** 截取某个 CSS 选择器的声明块({} 内文本),返回 null 表示不存在 */
-function cssBlock(src, selector) {
-  const idx = src.indexOf('\n' + selector + ' {')
-  const altIdx = src.indexOf(selector + ' {')
-  const start = idx >= 0 ? idx : altIdx
-  if (start < 0) return null
-  const open = src.indexOf('{', start)
-  const close = src.indexOf('}', open)
-  if (open < 0 || close < 0) return null
-  return src.slice(open + 1, close)
-}
-
-/** 截取模板中「我的成就」section 块(class="achievement-section" 且其内含「我的成就」) */
-function achievementSectionTemplate(src) {
-  const tmpl = src.match(/<template>([\s\S]*?)<\/template>/)
-  if (!tmpl) return ''
-  const t = tmpl[1]
-  // 成就区块以 class="achievement-section" 起始,逐段切分找到含「我的成就」的那段
-  const marker = 'achievement-section'
-  let from = 0
-  while (true) {
-    const secStart = t.indexOf(marker, from)
-    if (secStart < 0) return ''
-    const secEnd = t.indexOf(marker, secStart + 1)
-    const chunk = t.slice(secStart, secEnd > 0 ? secEnd : t.length)
-    if (chunk.indexOf('我的成就') >= 0) return chunk
-    from = secStart + 1
-  }
-}
-
-// ---------------------------------------------------------------------------
-// 变更 D · 我的成就固定五列
-// ---------------------------------------------------------------------------
-
-describe('achievement.grid.fiveCol · 我的成就固定五列(变更 D / SC-A-27)', () => {
-  test('TC-A5-01 模板「我的成就」区块使用 .achievement-grid.cols-5 根容器', () => {
-    const section = achievementSectionTemplate(SRC)
-    expect(section).not.toBe('')
-    expect(section).toMatch(/achievement-grid\s+cols-5/)
-  })
-
-  test('TC-A5-02 .achievement-grid.cols-5 .ach-item 宽度为 20%(五列等分)', () => {
-    const block = cssBlock(SRC, '.achievement-grid.cols-5 .ach-item')
-    expect(block).not.toBeNull()
-    const m = /width:\s*([\d.]+)%/.exec(block)
-    expect(m).not.toBeNull()
-    expect(Number(m[1])).toBe(20)
-  })
-
-  test('TC-A5-03 成就区块含 ≥5 个 .ach-item 成就入口,且不折行错位(5 张卡单行)', () => {
-    const section = achievementSectionTemplate(SRC)
-    const items = section.match(/class="ach-item"/g) || []
-    expect(items.length).toBeGreaterThanOrEqual(5)
-  })
-
-  test('TC-A5-04 5 个成就入口跳转方法齐备(goToStreak/TaskHistory/Badges/Growth/Challenges)', () => {
-    const section = achievementSectionTemplate(SRC)
-    const required = ['goToStreak', 'goToTaskHistory', 'goToBadges', 'goToGrowth', 'goToChallenges']
-    required.forEach((fn) => {
-      // 每个成就卡的 @click 绑定到对应方法
-      expect(section).toMatch(new RegExp('@click="' + fn + '"'))
-    })
-  })
-
-  test('TC-A5-05 隔离性:全局 .achievement-grid 未被改成 20%(保护「我的团队」布局)', () => {
-    // 全局 .achievement-grid 仅声明 flex 布局,不含 width:20%;团队网格用 33.33%
-    const globalGrid = cssBlock(SRC, '.achievement-grid')
-    expect(globalGrid).not.toBeNull()
-    expect(globalGrid).not.toMatch(/width:\s*20%/)
-  })
-})
-
-// ---------------------------------------------------------------------------
-// 权限流:本能力为家长端「我的成就」展示布局,无角色分支门禁,
-// 属《编排派发》中「权限(适用时)」的不适用项,显式记录。
-// ---------------------------------------------------------------------------
-
-describe.skip('权限流:成就五列布局无角色门禁,不适用', () => {
-  it('占位:该能力面向家长端个人中心展示,无 role 分支(详见汇报)', () => {})
-})

+ 0 - 152
cfc-frontend/__tests__/pages/profile-main/achievementLayout.contract.test.js

@@ -1,152 +0,0 @@
-/**
- * 契约级单测(TDD-RED)——能力键 ui.profile.achievementLayout
- *
- * 溯源:
- *   requirement: tests/user-scenarios/应用场景总览.md SC-P-96(我的成就固定五列显示)
- *                + docs/需求分析/2026-11-06-成就成长打卡需求变更.md 变更 D
- *   design:      cfc-frontend/pages/profile-main/profile.vue「我的成就」区块
- *                (纯前端布局,无后端端点;docs/superpowers/api/API_REFERENCE.md 无对应接口)
- *
- * 契约要点(本文件守护的破坏):
- *   1) 「我的成就」区块必须使用独立的五列网格类,不能全局改 .achievement-grid
- *      ——否则「我的团队」(3 列)/「卡券中心」(复用网格)会被波及。
- *   2) 区块内恰好 5 张成就卡:连续打卡/完成任务/收集勋章/成长记录/参加挑战,
- *      顺序与跳转方法齐备——少一张或多一张都会破坏单行五列契约。
- *   3) 五列等比排布(width:20% 或等价等分写法),5×20%=100%,无正 gap 撑破换行——
- *      否则第 5 张卡折行错位,正是 SC-P-96 要修的缺陷。
- *   4) 隔离性:全局 .ach-item 仍为 25%、.team-grid .ach-item 仍为 33.33%、
- *      卡券区块不带五列类——被误改即回归。
- *
- * 断言口径(静态结构契约,读真实 SFC 源码,不依赖渲染引擎):
- *   cfc-frontend jest.config.js 仅 transform .js,未装 vue-jest/jsdom 组件环境;
- *   沿用 __tests__/family-join/join-form.required-info.test.js 与
- *   __tests__/pages/growth-main/growthGrid.layout.test.js 的既有约定。
- *   本文件不修改 pages/ 任何业务代码。
- */
-
-import fs from 'fs'
-import path from 'path'
-
-const PAGE_PATH = path.join(__dirname, '../../../pages/profile-main/profile.vue')
-const SRC = fs.readFileSync(PAGE_PATH, 'utf8')
-
-/** 转义正则元字符(选择器含点号) */
-function esc(s) {
-  return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
-}
-
-/** 截取某一 CSS 选择器的声明块;返回 null 表示规则不存在 */
-function cssBlock(src, selector) {
-  const re = new RegExp('(?:^|\\n)[ \\t]*' + esc(selector) + '[ \\t]*\\{')
-  const m = re.exec(src)
-  if (!m) return null
-  const open = src.indexOf('{', m.index)
-  const close = src.indexOf('}', open)
-  if (open < 0 || close < 0) return null
-  return src.slice(open + 1, close)
-}
-
-/** 取模板中「我的成就」section(以 achievement-section 起始,逐段找含标题的那段) */
-function achievementSection(src) {
-  const tmpl = src.match(/<template>([\s\S]*?)<\/template>/)
-  if (!tmpl) return ''
-  const t = tmpl[1]
-  const marker = 'achievement-section'
-  let from = 0
-  while (true) {
-    const start = t.indexOf(marker, from)
-    if (start < 0) return ''
-    const next = t.indexOf(marker, start + 1)
-    const chunk = t.slice(start, next > 0 ? next : t.length)
-    if (chunk.indexOf('我的成就') >= 0) return chunk
-    from = start + 1
-  }
-}
-
-/** 从样式规则中读出 width 百分比 */
-function widthPercent(block) {
-  const m = /width:\s*([\d.]+)%/.exec(block || '')
-  return m ? Number(m[1]) : null
-}
-
-/** 是否满足五列等分:直接 20%,或需求允许的等价等分写法 */
-function isFiveColumnEqualWidth(block) {
-  if (!block) return false
-  if (widthPercent(block) === 20) return true
-  if (/flex:\s*1(?!\d)/.test(block)) return true
-  if (/calc\(\s*20%/.test(block)) return true
-  return false
-}
-
-const SECTION = achievementSection(SRC)
-
-// ---------------------------------------------------------------------------
-// SC-P-96 / 变更 D · 我的成就固定五列
-// ---------------------------------------------------------------------------
-
-describe('ui.profile.achievementLayout · 我的成就固定五列(SC-P-96 / 变更 D)', () => {
-  test('TC-P96-01 成就区块使用独立五列网格类,且该类未泄漏到团队/卡券区块', () => {
-    expect(SECTION).not.toBe('')
-    // 成就区块根容器带独立 cols-5 类
-    expect(SECTION).toMatch(/class="achievement-grid\s+cols-5"/)
-    // 隔离:团队网格走 team-grid,卡券区块不带 cols-5
-    expect(SECTION).not.toMatch(/team-grid/)
-    const fullTemplate = (SRC.match(/<template>([\s\S]*?)<\/template>/) || [])[1] || ''
-    expect((fullTemplate.match(/cols-5/g) || []).length).toBe(1)
-  })
-
-  test('TC-P96-02 成就区块恰好 5 张卡,文案与跳转方法按需求顺序齐备', () => {
-    const items = SECTION.match(/class="ach-item"/g) || []
-    expect(items.length).toBe(5)
-    const labels = ['连续打卡', '完成任务', '收集勋章', '成长记录', '参加挑战']
-    const handlers = ['goToStreak', 'goToTaskHistory', 'goToBadges', 'goToGrowth', 'goToChallenges']
-    labels.forEach((label, i) => {
-      // 第 i 张卡的文案在对应 @click 之后、下一张卡之前
-      const start = SECTION.indexOf('@click="' + handlers[i] + '"')
-      const next = i + 1 < handlers.length
-        ? SECTION.indexOf('@click="' + handlers[i + 1] + '"')
-        : SECTION.length
-      expect(start).toBeGreaterThanOrEqual(0)
-      expect(SECTION.slice(start, next)).toContain(label)
-    })
-  })
-
-  test('TC-P96-03 五列等比排布且单行不换行错位(5×20%=100%,无正 gap 撑破)', () => {
-    const fiveColItem = cssBlock(SRC, '.achievement-grid.cols-5 .ach-item')
-    expect(isFiveColumnEqualWidth(fiveColItem)).toBe(true)
-    // 等分宽度取 20% 时,5 张合计恰好 100%
-    const w = widthPercent(fiveColItem)
-    if (w !== null) {
-      expect(w * 5).toBe(100)
-    }
-    // 容器不得有正 gap:5×20%+gap>100% 会折行,违背"单行不换行错位"
-    const grid = cssBlock(SRC, '.achievement-grid')
-    const gap = /gap:\s*([\d.]+)(rpx|px|%)?/.exec(grid || '')
-    if (gap) {
-      expect(Number(gap[1])).toBe(0)
-    }
-  })
-
-  test('TC-P96-04 隔离性:全局 .ach-item 仍 25%、.team-grid 仍 33.33%,卡券区块不带五列类', () => {
-    // 全局默认仍是 4 列等分,未被改成 20%
-    expect(widthPercent(cssBlock(SRC, '.ach-item'))).toBe(25)
-    // 我的团队保持 3 列
-    expect(widthPercent(cssBlock(SRC, '.achievement-grid.team-grid .ach-item'))).toBe(33.33)
-    // 卡券中心区块仍在,且不使用 cols-5
-    const fullTemplate = (SRC.match(/<template>([\s\S]*?)<\/template>/) || [])[1] || ''
-    const couponStart = fullTemplate.indexOf('卡券中心')
-    if (couponStart >= 0) {
-      const couponChunk = fullTemplate.slice(couponStart, couponStart + 2500)
-      expect(couponChunk).not.toMatch(/cols-5/)
-    }
-  })
-})
-
-// ---------------------------------------------------------------------------
-// 权限流:本能力为家长端「我的成就」展示布局,无角色分支门禁,
-// 属《编排派发》中「权限(适用时)」的不适用项,显式记录。
-// ---------------------------------------------------------------------------
-
-describe.skip('权限流:成就五列布局无角色门禁,不适用', () => {
-  it('占位:该能力面向家长端个人中心展示,无 role 分支(详见汇报)', () => {})
-})

+ 157 - 0
cfc-frontend/__tests__/pages/profile-main/assetsEntry.contract.test.js

@@ -0,0 +1,157 @@
+/**
+ * 契约级单测(静态结构契约)——能力键 ui.profile.assetsEntry
+ *
+ * 溯源 / 变更说明:
+ *   本文件替代已退役的 achievement.fiveCol.test.js 与 achievementLayout.contract.test.js。
+ *   那两个用例守护的是「我的成就」固定五列(需求变更 D / SC-A-27 / SC-P-96)。
+ *   2026-11-28「我的」页收敛重设计(主动健康生活方式 · 极致简单)明确:
+ *     * 我的成就(5 宫格)、我的订单(5+2 宫格)、卡券中心(2 宫格)
+ *       → 收敛为「我的资产」单卡内 3 汇总入口(订单 / 卡券 / 成就),明细进二级页;
+ *     * 因此「成就固定五列」能力被本页目标结构取代,原两个五列用例失效退役,
+ *       由本文件守护新结构。若后续需求侧要求恢复五列,应以新用例另行守护,
+ *       不得直接复活旧用例(旧用例同时断言了已删除的 order/coupon 网格布局)。
+ *
+ * 契约要点(本文件守护的破坏):
+ *   1) 「我的资产」入口存在,且为单卡 + 3 宫格(订单 / 卡券 / 成就),每入口有明确跳转;
+ *   2) 收敛彻底性:模板不得残留五列成就网格、订单五宫格、卡券宫格;
+ *      样式不得残留 .achievement-grid.cols-5 / .order-* 规则;
+ *   3) 双邀请入口治理:浮动邀请按钮(.share-qr-float)已删,团队网格「邀请成员」
+ *      分享项(.ach-item-share + open-type="share")保留,全页仅剩一个邀请入口;
+ *   4) 死方法清理:goToTasks / goToAppointments(模板未引用的历史死方法)已删;
+ *   5) 访客态登录引导复用共享 LoginGuideCard,不再内联 gp-guide 结构;
+ *   6) 订单入口展示四态合计汇总数(computed orderTotal),不再逐态铺 5 个徽标。
+ *
+ * 断言口径(静态结构契约,读真实 SFC 源码,不依赖渲染引擎):
+ *   cfc-frontend jest.config.js 仅 transform .js,未装 vue-jest/jsdom 组件环境——
+ *   沿用既有约定:读取真实 SFC 源码做结构契约断言
+ *   (同目录 bottomMenuOverflow.contract.test.js 的读源法)。本文件不修改 pages/ 业务代码。
+ */
+
+import fs from 'fs'
+import path from 'path'
+
+const PAGE_PATH = path.join(__dirname, '../../../pages/profile-main/profile.vue')
+const SRC = fs.readFileSync(PAGE_PATH, 'utf8')
+
+function templateOf(src) {
+  const m = src.match(/<template>([\s\S]*?)<\/template>/)
+  return m ? m[1] : ''
+}
+
+function scriptOf(src) {
+  const m = src.match(/<script>([\s\S]*?)<\/script>/)
+  return m ? m[1] : ''
+}
+
+function styleOf(src) {
+  const m = src.match(/<style[^>]*>([\s\S]*?)<\/style>/)
+  return m ? m[1] : ''
+}
+
+const TEMPLATE = templateOf(SRC)
+const SCRIPT = scriptOf(SRC)
+const STYLE = styleOf(SRC)
+
+/** 取模板中「我的资产」区块:从 assets-section 到 team 之前的片段 */
+function assetsSection(src) {
+  const t = templateOf(src)
+  const start = t.indexOf('assets-section')
+  if (start < 0) return ''
+  // 资产区之后紧接团队区(achievement-section / team-grid)或无其它
+  const next = t.indexOf('team-grid', start)
+  return t.slice(start, next > 0 ? next : t.length)
+}
+
+const ASSETS = assetsSection(SRC)
+
+describe('ui.profile.assetsEntry · 「我的」页资产入口收敛(订单/卡券/成就 3 宫格)', () => {
+  test('TC-AE-01 资产入口区存在,且以共享 BaseCard 单卡承载', () => {
+    expect(ASSETS).not.toBe('')
+    expect(TEMPLATE).toMatch(/<BaseCard[^>]*class="assets-card"/)
+    expect(TEMPLATE).toMatch(/class="assets-title"[^>]*>我的资产</)
+  })
+
+  test('TC-AE-02 资产卡内恰 3 个宫格入口,文案与跳转方法齐备', () => {
+    const cells = ASSETS.match(/class="asset-cell"/g) || []
+    expect(cells.length).toBe(3)
+    const map = [
+      { handler: 'goToOrders', label: '订单', expr: 'orderTotal' },
+      { handler: 'goToCoupons', label: '卡券', expr: 'couponCount' },
+      { handler: 'goToBadges', label: '成就', expr: 'badgesCollected' }
+    ]
+    map.forEach((item) => {
+      expect(ASSETS).toMatch(new RegExp('@click="' + item.handler + '"'))
+      // 文案与汇总数同属一个 cell
+      expect(ASSETS).toMatch(new RegExp(item.handler + '[\\s\\S]*?' + item.label))
+      expect(ASSETS).toMatch(new RegExp(item.handler + '[\\s\\S]*?\\{\\{\\s*' + item.expr + '\\s*\\}\\}'))
+    })
+  })
+
+  test('TC-AE-03 收敛彻底性:模板不再有五列成就网格 / 订单五宫格 / 卡券宫格', () => {
+    expect(TEMPLATE).not.toMatch(/achievement-grid\s+cols-5/)
+    expect(TEMPLATE).not.toMatch(/class="order-grid"|class="order-grid-item"|class="order-section"|class="order-card"/)
+    expect(TEMPLATE).not.toMatch(/class="order-icon-wrap"|class="order-extra-item"/)
+    // 原「我的成就 / 卡券中心」独立区块标题不应再出现
+    expect(TEMPLATE).not.toMatch(/我的成就/)
+    expect(TEMPLATE).not.toMatch(/卡券中心/)
+  })
+
+  test('TC-AE-04 收敛彻底性:样式不再残留五列 / 订单宫格规则,且有资产卡样式', () => {
+    expect(STYLE).not.toMatch(/\.achievement-grid\.cols-5/)
+    expect(STYLE).not.toMatch(/\.order-grid\b|\.order-card\b|\.order-icon-wrap\b|\.order-extra-item\b/)
+    expect(STYLE).toMatch(/\.assets-grid\b/)
+    expect(STYLE).toMatch(/\.asset-cell\b/)
+    expect(STYLE).toMatch(/\.asset-ic-order\b/)
+    expect(STYLE).toMatch(/\.asset-ic-coupon\b/)
+    expect(STYLE).toMatch(/\.asset-ic-achieve\b/)
+  })
+
+  test('TC-AE-05 订单汇总入口用 computed orderTotal(四态合计),不再逐态徽标', () => {
+    expect(SCRIPT).toMatch(/orderTotal\(\)/)
+    expect(SCRIPT).toMatch(/orderPending \+ this\.orderUnpaid \+ this\.orderShipped \+ this\.orderAfterSale/)
+    // 逐态跳转方法已随订单五宫格一起删除
+    expect(SCRIPT).not.toMatch(/goToOrderStatus/)
+    // 购物车 / 收货地址 入口随订单附加行删除
+    expect(SCRIPT).not.toMatch(/goToCart|goToAddress|loadCartCount/)
+  })
+
+  test('TC-AE-06 双邀请入口治理:浮动邀请已删,团队网格分享项唯一保留', () => {
+    // 浮动二维码邀请按钮整块删除
+    expect(TEMPLATE).not.toMatch(/share-qr-float|qr-glyph|qr-eye/)
+    expect(STYLE).not.toMatch(/\.share-qr-float\b|\.qr-glyph\b/)
+    // 团队「邀请成员」分享项保留,且全页仅剩一个 open-type="share"
+    expect(TEMPLATE).toMatch(/class="ach-item ach-item-share"[\s\S]*?open-type="share"/)
+    const shareButtons = TEMPLATE.match(/open-type="share"/g) || []
+    expect(shareButtons.length).toBe(1)
+    // 团队网格三入口仍在
+    expect(TEMPLATE).toMatch(/team-grid/)
+  })
+
+  test('TC-AE-07 死方法清理:goToTasks / goToAppointments 已删', () => {
+    expect(SCRIPT).not.toMatch(/goToTasks/)
+    expect(SCRIPT).not.toMatch(/goToAppointments/)
+    // 连带失效的五宫格成就 / 卡券二级跳转方法亦应清理
+    expect(SCRIPT).not.toMatch(/goToStreak|goToTaskHistory|goToGrowth|goToChallenges|goToWishes/)
+  })
+
+  test('TC-AE-08 访客态登录引导复用 LoginGuideCard,不再内联实现', () => {
+    expect(TEMPLATE).toMatch(/<LoginGuideCard/)
+    // 内联登录引导的自绘结构(标题/清单/勾选/按钮)必须清除;
+    // .gp-guide 仅保留为外层横向边距容器(与 .gg-guide/.gh-guide 同款),故不在禁用项内
+    expect(TEMPLATE).not.toMatch(/gp-guide-head|gp-guide-title|gp-guide-list|gp-guide-item|gp-guide-check|gp-guide-ic\b|gp-guide-btn|gp-guide-text|gp-guide-desc/)
+    expect(STYLE).not.toMatch(/\.gp-guide-(head|title|list|item|check|ic|btn|text|desc)\b/)
+    // 外层边距容器存在(保持与本页其它访客卡同宽)
+    expect(STYLE).toMatch(/\.gp-guide\s*\{\s*margin:\s*0 32rpx 8rpx/)
+    // 组件已注册
+    expect(SCRIPT).toMatch(/components:\s*\{[^}]*LoginGuideCard/)
+  })
+})
+
+// ---------------------------------------------------------------------------
+// 权限流:资产入口区为已登录态统一展示,无角色门禁分支
+// (规划师服务中心另有 v-if 门禁,不在本契约范围)。显式记录不适用项。
+// ---------------------------------------------------------------------------
+
+describe.skip('权限流:资产入口区无角色门禁,不适用', () => {
+  it('占位:资产入口对所有已登录用户一致展示(详见汇报)', () => {})
+})

+ 79 - 397
cfc-frontend/pages/profile-main/profile.vue

@@ -62,29 +62,17 @@
           </view>
         </view>
 
-        <!-- 登录引导(模板内联:本页未注册 LoginGuideCard,等价结构本地实现) -->
+        <!-- 登录引导:复用共享 LoginGuideCard(与 growth-main / health-main 同款),不再内联实现。
+             外层 gp-guide 仅承载横向边距(与 .gg-guide / .gh-guide 同款),LoginGuideCard 自身 margin:0 -->
         <view class="gp-guide">
-          <view class="gp-guide-head">
-            <view class="gp-guide-ic"></view>
-            <text class="gp-guide-title">登录后,和家庭一起开始</text>
-          </view>
-          <view class="gp-guide-list">
-            <view class="gp-guide-item">
-              <view class="gp-guide-check"></view>
-              <text class="gp-guide-text">查看家庭报告与成员档案</text>
-            </view>
-            <view class="gp-guide-item">
-              <view class="gp-guide-check"></view>
-              <text class="gp-guide-text">管理积分与能量数据</text>
-            </view>
-            <view class="gp-guide-item">
-              <view class="gp-guide-check"></view>
-              <text class="gp-guide-text">参与家庭挑战与里程碑</text>
-            </view>
-          </view>
-          <view class="gp-guide-btn" @click="goLogin">
-            <text class="gp-guide-btn-text">手机号快捷登录</text>
-          </view>
+          <LoginGuideCard
+            title="登录后,和家庭一起开始"
+            :items="[
+              '查看家庭报告与成员档案',
+              '管理积分与能量数据',
+              '参与家庭挑战与里程碑'
+            ]"
+          />
         </view>
       </view>
     </view>
@@ -130,25 +118,6 @@
         </view>
       </view>
 
-      <!-- 团队邀请浮动按钮(纯 CSS 二维码图标):点按直接调起微信转发,不再生成海报。
-           用透明 <button open-type="share"> 覆盖原入口,保留既有视觉与布局,仅由原生按钮接管点击。
-           分享 path 由页面 onShareAppMessage 返回,直达服务角色申请表并携带本人 refCode。 -->
-      <view class="share-qr-float">
-        <view class="qr-glyph">
-          <view class="qr-eye qr-eye-tl"></view>
-          <view class="qr-eye qr-eye-tr"></view>
-          <view class="qr-eye qr-eye-bl"></view>
-          <view class="qr-mid"></view>
-          <view class="qr-cluster">
-            <view class="qr-pip"></view>
-            <view class="qr-pip"></view>
-            <view class="qr-pip"></view>
-            <view class="qr-pip"></view>
-          </view>
-        </view>
-        <button class="share-overlay-btn" open-type="share" @tap="ensureShareCode"></button>
-      </view>
-
       <!-- 家族成员速览 -->
       <view class="family-strip" v-if="familyMembers.length > 0">
         <view class="family-strip-header">
@@ -178,49 +147,30 @@
         </view>
       </view>
 
-      <!-- 我的成就(纯成就指标) -->
-      <view class="achievement-section">
-        <view class="section-header-row">
-          <text class="section-title">🏆 我的成就</text>
-          <text class="section-sub">持续成长,看见改变</text>
-        </view>
-        <view class="achievement-grid cols-5">
-          <view class="ach-item" @click="goToStreak">
-            <view class="ach-icon-wrap" style="background:rgba(255,140,66,0.12)">
-              <text class="ach-icon">🔥</text>
-            </view>
-            <text class="ach-num">{{ streakDays }}</text>
-            <text class="ach-label">连续打卡</text>
-          </view>
-          <view class="ach-item" @click="goToTaskHistory">
-            <view class="ach-icon-wrap" style="background:rgba(99,102,241,0.12)">
-              <text class="ach-icon">✅</text>
-            </view>
-            <text class="ach-num">{{ completedTasks }}</text>
-            <text class="ach-label">完成任务</text>
+      <!-- 资产入口区:订单 / 卡券 / 成就 收敛为单卡 3 宫格(原 5+2+5 宫格 → 3 汇总入口,明细进二级页) -->
+      <view class="assets-section">
+        <BaseCard padding="md" class="assets-card">
+          <view class="assets-header">
+            <text class="assets-title">我的资产</text>
           </view>
-          <view class="ach-item" @click="goToBadges">
-            <view class="ach-icon-wrap" style="background:rgba(236,72,153,0.12)">
-              <text class="ach-icon">🏅</text>
+          <view class="assets-grid">
+            <view class="asset-cell" @click="goToOrders">
+              <view class="asset-ic asset-ic-order"></view>
+              <text class="asset-num">{{ orderTotal }}</text>
+              <text class="asset-label">订单</text>
             </view>
-            <text class="ach-num">{{ badgesCollected }}</text>
-            <text class="ach-label">收集勋章</text>
-          </view>
-          <view class="ach-item" @click="goToGrowth">
-            <view class="ach-icon-wrap" style="background:rgba(16,185,129,0.12)">
-              <text class="ach-icon">📈</text>
+            <view class="asset-cell" @click="goToCoupons">
+              <view class="asset-ic asset-ic-coupon"></view>
+              <text class="asset-num">{{ couponCount }}</text>
+              <text class="asset-label">卡券</text>
             </view>
-            <text class="ach-num">{{ growthRecords }}</text>
-            <text class="ach-label">成长记录</text>
-          </view>
-          <view class="ach-item" @click="goToChallenges">
-            <view class="ach-icon-wrap" style="background:rgba(255,107,157,0.12)">
-              <text class="ach-icon">🎯</text>
+            <view class="asset-cell" @click="goToBadges">
+              <view class="asset-ic asset-ic-achieve"></view>
+              <text class="asset-num">{{ badgesCollected }}</text>
+              <text class="asset-label">成就</text>
             </view>
-            <text class="ach-num">{{ challengesJoined }}</text>
-            <text class="ach-label">参加挑战</text>
           </view>
-        </view>
+        </BaseCard>
       </view>
 
       <!-- 我的团队(团队管理 + 推广收益 + 邀请成员) -->
@@ -256,88 +206,6 @@
         </view>
       </view>
 
-      <!-- 我的订单(电商风格) -->
-      <view class="order-section">
-        <view class="order-section-header">
-          <text class="section-title">🛒 我的订单</text>
-          <text class="order-all-link" @click="goToOrders">全部订单 ›</text>
-        </view>
-        <view class="order-card">
-          <view class="order-grid">
-            <view class="order-grid-item" @click="goToOrderStatus('pending')">
-              <view class="order-icon-wrap">
-                <text class="order-icon">💳</text>
-                <text class="order-badge" v-if="orderPending > 0">{{ orderPending }}</text>
-              </view>
-              <text class="order-grid-text">待付款</text>
-            </view>
-            <view class="order-grid-item" @click="goToOrderStatus('paid')">
-              <view class="order-icon-wrap">
-                <text class="order-icon">📦</text>
-                <text class="order-badge" v-if="orderUnpaid > 0">{{ orderUnpaid }}</text>
-              </view>
-              <text class="order-grid-text">待发货</text>
-            </view>
-            <view class="order-grid-item" @click="goToOrderStatus('shipped')">
-              <view class="order-icon-wrap">
-                <text class="order-icon">🚚</text>
-                <text class="order-badge" v-if="orderShipped > 0">{{ orderShipped }}</text>
-              </view>
-              <text class="order-grid-text">待收货</text>
-            </view>
-            <view class="order-grid-item" @click="goToOrderStatus('refunding')">
-              <view class="order-icon-wrap">
-                <text class="order-icon">🔧</text>
-                <text class="order-badge" v-if="orderAfterSale > 0">{{ orderAfterSale }}</text>
-              </view>
-              <text class="order-grid-text">售后</text>
-            </view>
-            <view class="order-grid-item" @click="goToOrders">
-              <view class="order-icon-wrap">
-                <text class="order-icon">📋</text>
-              </view>
-              <text class="order-grid-text">全部</text>
-            </view>
-          </view>
-          <view class="order-extra-row">
-            <view class="order-extra-item" @click="goToCart">
-              <text class="order-extra-icon">🛒</text>
-              <text class="order-extra-text">购物车</text>
-              <text class="order-extra-badge" v-if="cartCount > 0">{{ cartCount > 99 ? '99+' : cartCount }}</text>
-            </view>
-            <view class="order-extra-divider"></view>
-            <view class="order-extra-item" @click="goToAddress">
-              <text class="order-extra-icon">📍</text>
-              <text class="order-extra-text">收货地址</text>
-            </view>
-          </view>
-        </view>
-      </view>
-
-      <!-- 卡券中心(我的优惠券 + 获得奖励) -->
-      <view class="achievement-section">
-        <view class="section-header-row">
-          <text class="section-title">🎫 卡券中心</text>
-          <text class="section-sub">优惠券与权益</text>
-        </view>
-        <view class="achievement-grid">
-          <view class="ach-item" @click="goToCoupons">
-            <view class="ach-icon-wrap" style="background:rgba(245,158,11,0.12)">
-              <text class="ach-icon">🎟️</text>
-            </view>
-            <text class="ach-num">{{ couponCount }}</text>
-            <text class="ach-label">我的优惠券</text>
-          </view>
-          <view class="ach-item" @click="goToWishes">
-            <view class="ach-icon-wrap" style="background:rgba(245,158,11,0.12)">
-              <text class="ach-icon">🎁</text>
-            </view>
-            <text class="ach-num">{{ rewardsEarned }}</text>
-            <text class="ach-label">获得奖励</text>
-          </view>
-        </view>
-      </view>
-
       <!-- 健康档案(上传报告) -->
       <view class="menu-row" @click="goToHealthReports">
         <text class="menu-row-icon">📋</text>
@@ -405,11 +273,13 @@
 
 <script>
 import ContentSharePoster from '../../components/ContentSharePoster.vue'
+import BaseCard from '../../components/BaseCard.vue'
+import LoginGuideCard from '../../components/LoginGuideCard.vue'
 import {
   getChildren, getFamilyMemberList,
-  getTodayTasksByCategory, getChallengeList, getMyMembership,
+  getTodayTasksByCategory, getMyMembership,
   verifyPassword, getPointsBalance, getUserInfo,
-  cartCount, getOrderCounts, getCfSummary,
+  getOrderCounts, getCfSummary,
   getProfileStats, getMyReferrer, getVendorTeamList, getVendorHierarchyInfo, getMyCoupons,
   getTeacherInfo, getTeacherPendingTasks, getTeacherUnreadCount, getUserRoles,
   getReferralCode, extractReferralCode, getShareQrCode, getEnergySandbox,
@@ -428,7 +298,7 @@ var TEAM_INVITE_SHARE_CODE_KEY = 'myReferralCode'
 
 export default {
   mixins: [fontScaleMixin, shareMixin],
-  components: { ContentSharePoster },
+  components: { ContentSharePoster, BaseCard, LoginGuideCard },
   data() {
     return {
       nickname: '',
@@ -444,22 +314,16 @@ export default {
       totalPoints: 0,
       referralEarnings: 0,
       teamMembers: 0,
-      // 个人成就
-      completedTasks: 0,
-      streakDays: 0,
-      rewardsEarned: 0,
+      // 成就汇总(收敛后仅保留勋章数与健康报告数;连续打卡/任务/成长/挑战明细进二级页)
       badgesCollected: 0,
-      growthRecords: 0,
-      challengesJoined: 0,
       healthReports: 0,
       // 家庭
       familyMembers: [],
-      // 商城
+      // 商城(收敛后保留订单四态计数,用于「我的资产」订单汇总入口)
       orderPending: 0,
       orderUnpaid: 0,
       orderShipped: 0,
       orderAfterSale: 0,
-      cartCount: 0,
       couponCount: 0,
       // 待办
       pendingTasks: 0,
@@ -498,6 +362,10 @@ export default {
     upgradeBtnText() {
       return this.hasUpgradeSpace ? '升级' : '立即开通'
     },
+    // 订单汇总入口:待付款 + 待发货 + 待收货 + 售后 合计(明细进订单列表二级页)
+    orderTotal() {
+      return this.orderPending + this.orderUnpaid + this.orderShipped + this.orderAfterSale
+    },
     // 分享海报标题:XXX邀请你关注家庭健康(昵称过长自动截断)
     shareHeadline() {
       var name = (this.nickname || '').trim()
@@ -632,9 +500,7 @@ export default {
       this.loadPoints()
       this.loadFamily()
       this.loadTasks()
-      this.loadChallenges()
       this.loadOrderCounts()
-      this.loadCartCount()
       this.loadProfileStats()
       this.loadReferralEarnings()
       this.loadTeamInfo()
@@ -684,14 +550,6 @@ export default {
         self.pendingTasks = parseInt(uni.getStorageSync('pendingTaskCount') || 0)
       }
     },
-    loadChallenges() {
-      var self = this
-      getChallengeList({}).then(function(res) {
-        if (res && res.data) {
-          // 不在此处使用,仅确保请求
-        }
-      }).catch(function() {})
-    },
     loadOrderCounts() {
       var self = this
       getOrderCounts().then(function(res) {
@@ -703,26 +561,14 @@ export default {
         }
       }).catch(function() {})
     },
-    loadCartCount() {
-      var self = this
-      cartCount().then(function(res) {
-        if (res && res.data != null) {
-          self.cartCount = res.data || 0
-        }
-      }).catch(function() {})
-    },
     loadProfileStats() {
       var self = this
       getProfileStats().then(function(res) {
         if (res && res.code === 200 && res.data) {
           var d = res.data
+          // 收敛后本页仅展示积分 / 勋章 / 健康报告三个汇总数;其余明细进二级页
           if (d.totalPoints != null) self.totalPoints = d.totalPoints
-          if (d.streakDays != null) self.streakDays = d.streakDays
-          if (d.completedTasks != null) self.completedTasks = d.completedTasks
-          if (d.rewardsEarned != null) self.rewardsEarned = d.rewardsEarned
           if (d.badgesCollected != null) self.badgesCollected = d.badgesCollected
-          if (d.growthRecords != null) self.growthRecords = d.growthRecords
-          if (d.challengesJoined != null) self.challengesJoined = d.challengesJoined
           if (d.healthReports != null) self.healthReports = d.healthReports
         }
       }).catch(function() {})
@@ -927,34 +773,9 @@ export default {
     goToPoints: function() {
       uni.navigateTo({ url: '/pages/points/points' })
     },
-    goToStreak: function() {
-      var memberId = uni.getStorageSync('currentMemberId') || uni.getStorageSync('currentChildId')
-      var url = '/pages/stats/completion-rate'
-      if (memberId) {
-        url += '?memberId=' + memberId
-      } else {
-        url += '?familyView=1'
-      }
-      uni.navigateTo({ url: url })
-    },
-    goToTasks: function() {
-      uni.navigateTo({ url: '/pages/tasks/tasks' })
-    },
-    goToTaskHistory: function() {
-      uni.navigateTo({ url: '/pages/tasks/history' })
-    },
-    goToWishes: function() {
-      uni.navigateTo({ url: '/pages/wishes/index' })
-    },
     goToBadges: function() {
       uni.navigateTo({ url: '/pages/rewards/badge' })
     },
-    goToGrowth: function() {
-      uni.navigateTo({ url: '/pages/growth/history' })
-    },
-    goToChallenges: function() {
-      uni.navigateTo({ url: '/pages/health/challenge-manage' })
-    },
     goToHealthReports: function() {
       uni.navigateTo({ url: '/pages/health/report-list' })
     },
@@ -973,21 +794,9 @@ export default {
     goMemberDetail: function(member) {
       uni.navigateTo({ url: '/pages/home-pages/member-home-detail?memberId=' + member.id })
     },
-    goToAppointments: function() {
-      uni.navigateTo({ url: '/pages/parent/appointments' })
-    },
     goToOrders: function() {
       uni.navigateTo({ url: '/pages/shop/order-list/order-list' })
     },
-    goToOrderStatus: function(status) {
-      uni.navigateTo({ url: '/pages/shop/order-list/order-list?status=' + status })
-    },
-    goToCart: function() {
-      uni.navigateTo({ url: '/pages/shop/cart/cart' })
-    },
-    goToAddress: function() {
-      uni.navigateTo({ url: '/pages/shop/address/address' })
-    },
     goToMessageHistory: function() {
       uni.navigateTo({ url: '/pages/profile/message-history' })
     },
@@ -1057,7 +866,6 @@ export default {
 <style scoped lang="scss">
 // ===== 页面级局部调色板(单页专有色阶;同值才映射全局令牌,约定见 uni.scss §14) =====
 $c-text-gray-400:   $facade-text-gray-400;
-$c-fill-2b:         #F2F2F2;
 
 .container {
   min-height: 100vh;
@@ -1076,7 +884,6 @@ $gp-cta-press-to:   #962D08;
 $gp-logo-from: #FFE9D6;                       // logo 渐变亮端
 $gp-logo-to:   #FFD6AE;                       // logo 渐变暗端
 $gp-tint-soft: $tint-warm-soft;               // 暖白浅底 #FFF1E6
-$gp-guide-bg-from: #FFF8F2;                   // 引导卡顶(暖白偏橙)
 $gp-guide-bg-to:   #FFFDFB;                   // 引导卡底
 $gp-guide-ic-bg:   $dim-body-deep;
 
@@ -1091,12 +898,14 @@ $gp-body-bg:      str-slice('#{$dim-body-deep}', 2);
 $gp-wisdom-bg:    str-slice('#{$dim-wisdom-deep}', 2);
 $gp-wealth-bg:    str-slice('#{$dim-wealth-deep}', 2);
 $gp-guide-ic-b:   str-slice('#{$gp-guide-ic-bg}', 2);
-$gp-success-bg:   str-slice('#{$status-success-strong}', 2);
 $gp-ghost-hex:    '#{$facade-text-ghost}';
 $gp-ghost:        str-slice($gp-ghost-hex, 2);
 
 .gp-page { background: $app-bg; min-height: 100vh; padding: 28rpx 0 40rpx; }
 
+/* 登录引导外层:仅承载横向边距(LoginGuideCard 自身 margin:0,与 .gg-guide/.gh-guide 同款) */
+.gp-guide { margin: 0 32rpx 8rpx; }
+
 /* 登录大卡 */
 .gp-login { margin: 0 32rpx 24rpx; background: linear-gradient(165deg, $gp-guide-bg-to 0%, $app-bg 100%); border: 1rpx solid $app-border-subtle; border-radius: 32rpx; padding: 48rpx 36rpx 40rpx; display: flex; flex-direction: column; }
 .gp-logo { width: 112rpx; height: 112rpx; border-radius: 28rpx; background: linear-gradient(135deg, $gp-logo-from 0%, $gp-logo-to 100%); display: flex; flex-direction: row; align-items: center; justify-content: center; }
@@ -1176,28 +985,6 @@ $gp-ghost:        str-slice($gp-ghost-hex, 2);
 .gp-philosophy-title { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: 700; color: $facade-text-strong; line-height: 1.45; }
 .gp-philosophy-desc { font-size: calc(24rpx * var(--font-scale, 1)); color: $facade-text-body; line-height: 1.7; margin-top: 12rpx; }
 
-/* 登录引导(模板内联:本页未注册 LoginGuideCard) */
-.gp-guide { margin: 0 32rpx 8rpx; display: flex; flex-direction: column; background: linear-gradient(150deg, $gp-guide-bg-from 0%, $gp-guide-bg-to 100%); border-radius: 24rpx; padding: 32rpx 28rpx; border: 1rpx solid $app-border-subtle; }
-.gp-guide-head { display: flex; flex-direction: row; align-items: center; }
-.gp-guide-ic {
-  width: 36rpx; height: 36rpx; flex-shrink: 0;
-  background-repeat: no-repeat; background-position: center; background-size: 36rpx 36rpx;
-  background-image: gp-icon($gp-brand-bg, '%3Crect x=%223%22 y=%2211%22 width=%2218%22 height=%2211%22 rx=%222%22/%3E%3Cpath d=%22M7 11V7a5 5 0 0 1 10 0v4%22/%3E');
-}
-.gp-guide-title { flex: 1; min-width: 0; margin-left: 14rpx; font-size: calc(30rpx * var(--font-scale, 1)); font-weight: 800; color: $facade-text-strong; line-height: 1.4; }
-.gp-guide-list { margin-top: 20rpx; display: flex; flex-direction: column; }
-.gp-guide-item { display: flex; flex-direction: row; align-items: flex-start; margin-top: 14rpx; }
-.gp-guide-item:first-child { margin-top: 0; }
-.gp-guide-check {
-  width: 28rpx; height: 28rpx; flex-shrink: 0; margin-top: 6rpx;
-  background-repeat: no-repeat; background-position: center; background-size: 28rpx 28rpx;
-  background-image: gp-icon($gp-success-bg, '%3Cpolyline points=%2220 6 9 17 4 12%22/%3E');
-}
-.gp-guide-text { flex: 1; min-width: 0; margin-left: 12rpx; font-size: calc(24rpx * var(--font-scale, 1)); color: $facade-text-body; line-height: 1.6; }
-.gp-guide-btn { margin-top: 28rpx; padding: 24rpx 0; border-radius: 999rpx; background: linear-gradient(135deg, $gp-cta-from 0%, $gp-cta-to 100%); display: flex; flex-direction: row; align-items: center; justify-content: center; box-shadow: 0 10rpx 24rpx rgba($brand-primary, 0.18); }
-.gp-guide-btn:active { opacity: 0.9; }
-.gp-guide-btn-text { font-size: calc(28rpx * var(--font-scale, 1)); font-weight: 600; color: $app-surface; }
-
 /* 退出切换 */
 .exit-switch {
   margin: 0 $uni-space-lg 16rpx;
@@ -1492,110 +1279,62 @@ $gp-ghost:        str-slice($gp-ghost-hex, 2);
   width: 33.33%;
 }
 
-/* 我的成就网格:5 列固定等分(连续打卡/完成任务/收集勋章/成长记录/参加挑战) */
-.achievement-grid.cols-5 .ach-item {
-  width: 20%;
-}
-
-/* 我的订单(电商风格) */
-.order-section {
+/* 资产入口区:订单 / 卡券 / 成就 3 宫格(收敛后唯一资产入口,明细进二级页) */
+.assets-section {
   margin: 0 $uni-space-lg 20rpx;
 }
-.order-section-header {
+.assets-header {
   display: flex;
-  align-items: center;
+  flex-direction: row;
+  align-items: baseline;
   justify-content: space-between;
-  margin-bottom: 14rpx;
-}
-.order-all-link {
-  font-size: calc(24rpx * var(--font-scale, 1));
-  color: $facade-text-muted;
+  margin-bottom: 10rpx;
 }
-.order-card {
-  background: $app-surface;
-  border-radius: 24rpx;
-  padding: 24rpx 12rpx;
-  box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
+.assets-title {
+  font-size: calc(28rpx * var(--font-scale, 1));
+  font-weight: bold;
+  color: $facade-text-strong;
 }
-.order-grid {
+.assets-grid {
   display: flex;
-  flex-wrap: wrap;
+  flex-direction: row;
 }
-.order-grid-item {
-  width: 20%;
+.asset-cell {
+  flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
-  gap: 10rpx;
-  padding: 8rpx 0;
+  gap: 8rpx;
+  padding: 10rpx 0;
 }
-.order-icon-wrap {
-  position: relative;
+.asset-ic {
   width: 64rpx;
   height: 64rpx;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-}
-.order-icon {
-  font-size: calc(40rpx * var(--font-scale, 1));
-  line-height: 1;
-}
-.order-badge {
-  position: absolute;
-  top: -8rpx;
-  right: -14rpx;
-  min-width: 30rpx;
-  height: 30rpx;
-  line-height: 30rpx;
-  border-radius: 16rpx;
-  background: $status-danger-2;
-  color: $app-surface;
-  font-size: calc(18rpx * var(--font-scale, 1));
-  text-align: center;
-  padding: 0 6rpx;
+  border-radius: 50%;
+  background-color: $brand-primary-soft;
+  background-repeat: no-repeat;
+  background-position: center;
+  background-size: 34rpx 34rpx;
 }
-.order-grid-text {
-  font-size: calc(22rpx * var(--font-scale, 1));
-  color: $facade-text-body;
-  line-height: 1;
+.asset-ic-order {
+  background-image: gp-icon($gp-brand-bg, '%3Cpath d=%22M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z%22/%3E%3Cpolyline points=%223.27 6.96 12 12.01 20.73 6.96%22/%3E%3Cline x1=%2212%22 y1=%2222.08%22 x2=%2212%22 y2=%2212%22/%3E');
 }
-.order-extra-row {
-  display: flex;
-  align-items: center;
-  margin-top: 20rpx;
-  padding-top: 20rpx;
-  border-top: 1rpx solid $c-fill-2b;
+.asset-ic-coupon {
+  background-image: gp-icon($gp-brand-bg, '%3Cpath d=%22M4 7h16v3a2 2 0 0 0 0 4v3H4v-3a2 2 0 0 0 0-4z%22/%3E%3Cline x1=%2214%22 y1=%227%22 x2=%2214%22 y2=%2217%22 stroke-dasharray=%222 2%22/%3E');
 }
-.order-extra-item {
-  flex: 1;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  gap: 8rpx;
+.asset-ic-achieve {
+  background-image: gp-icon($gp-brand-bg, '%3Ccircle cx=%2212%22 cy=%229%22 r=%226%22/%3E%3Cpath d=%22M8.5 14.5L7 22l5-2 5 2-1.5-7.5%22/%3E');
 }
-.order-extra-icon {
+.asset-num {
   font-size: calc(28rpx * var(--font-scale, 1));
-}
-.order-extra-text {
-  font-size: calc(24rpx * var(--font-scale, 1));
+  font-weight: bold;
   color: $facade-text-strong;
+  line-height: 1;
 }
-.order-extra-badge {
-  min-width: 30rpx;
-  height: 30rpx;
-  line-height: 30rpx;
-  border-radius: 16rpx;
-  background: $brand-primary;
-  color: $app-surface;
-  font-size: calc(18rpx * var(--font-scale, 1));
-  text-align: center;
-  padding: 0 6rpx;
-}
-.order-extra-divider {
-  width: 1rpx;
-  height: 30rpx;
-  background: $c-fill-2b;
+.asset-label {
+  font-size: calc(20rpx * var(--font-scale, 1));
+  color: $facade-text-muted;
+  line-height: 1;
 }
 
 /* 规划师服务中心入口 */
@@ -1717,61 +1456,4 @@ $gp-ghost:        str-slice($gp-ghost-hex, 2);
   position: relative;
   overflow: hidden;
 }
-
-/* 分享推广码浮动按钮 */
-.share-qr-float {
-  position: fixed;
-  top: 180rpx;
-  right: 30rpx;
-  width: 80rpx;
-  height: 80rpx;
-  border-radius: 50%;
-  background: $app-surface;
-  box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.15);
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  z-index: 99;
-}
-/* 二维码图标(纯 CSS 绘制,不依赖 emoji 字体) */
-.qr-glyph {
-  position: relative;
-  width: 46rpx;
-  height: 46rpx;
-}
-.qr-eye {
-  position: absolute;
-  width: 16rpx;
-  height: 16rpx;
-  border: 4rpx solid $uni-text-color;
-  border-radius: 8rpx;
-  box-sizing: border-box;
-}
-.qr-eye-tl { left: 0; top: 0; }
-.qr-eye-tr { right: 0; top: 0; }
-.qr-eye-bl { left: 0; bottom: 0; }
-.qr-mid {
-  position: absolute;
-  left: 20rpx;
-  top: 20rpx;
-  width: 7rpx;
-  height: 7rpx;
-  background: $uni-text-color;
-  border-radius: 8rpx;
-}
-.qr-cluster {
-  position: absolute;
-  right: 0;
-  bottom: 0;
-  width: 18rpx;
-  display: flex;
-  flex-wrap: wrap;
-}
-.qr-pip {
-  width: 7rpx;
-  height: 7rpx;
-  margin: 1rpx;
-  background: $uni-text-color;
-  border-radius: 8rpx;
-}
 </style>