| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425 |
- <template>
- <view class="container">
- <!-- 通用登录浮层 -->
- <login-sheet ref="loginSheet" @success="onSheetLoginSuccess" />
- <!-- TabTransition overlay -->
- <tab-transition v-if="showTabTransition" dimCode="wealth" ref="tabTransition" @close="showTabTransition = false" />
- <!-- 品牌头部 -->
- <PageBanner theme="wealth" tagline="家庭财富能量 · 利他创富" quote="利他创富 · 富足人生" />
- <DimensionPageSkeleton v-if="pageLoading" dim-code="wealth" />
- <!-- 未登录时显示精简内容 -->
- <template v-if="!isLoggedIn">
- <!-- 品牌定位语 -->
- <view class="brand-strap">
- <text class="brand-strap-text">分享价值,收获财富</text>
- </view>
- <!-- 月度引导语 -->
- <view class="monthly-guidance" v-if="!isLoggedIn">
- <text class="guidance-icon">💧</text>
- <text class="guidance-text">{{ monthlyGuidance }}</text>
- </view>
- <!-- 游客价值卡(统一组件:维度色 CTA + 价值预览) -->
- <DimensionVisitorCard
- dimCode="wealth"
- card-title="富维度 · 利他创富"
- :benefits="[
- '家庭财富能量仪表盘与推广收益',
- '邀请返利与会员专属折扣',
- '商城精选好物一键下单'
- ]"
- cta-text="登录解锁财富能量"
- secondary-text="逛逛商城"
- secondary-url="/pages/shop/index/index" />
- <!-- 商城精选预览(无需登录) -->
- <view class="section">
- <view class="section-header">
- <text class="section-title">🛍️ 商城精选</text>
- <text class="section-more" @click="goToShop">查看全部 ›</text>
- </view>
- <scroll-view scroll-x class="product-scroll" show-scrollbar="false">
- <view class="product-list">
- <view class="product-card" v-for="(item, idx) in guestProducts" :key="idx" @click="goProductDetail(item.id)">
- <image class="product-img" :src="getImageUrl(item.coverImage || item.image) || '/static/default-product.png'" mode="aspectFill" />
- <text class="product-name">{{ item.name }}</text>
- <text class="product-price">¥{{ item.price || 0 }}</text>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <template v-else>
- <!-- 家庭成员选择条 -->
- <DimensionMemberTabs
- v-if="currentView === 'self' && isLoggedIn"
- :members="familyMembersVisible"
- :selectedMemberId="selectedMemberId"
- dimension-code="wealth"
- :score-map="memberScoreMap"
- @select="onFamilyMemberSelect"
- @longpress="onMemberLongPress"
- @manage="onMemberManage"
- @removed="loadFamilyMembersVisible" />
- <!-- 五维能量条 -->
- <FamilyEnergyBar
- v-if="isLoggedIn && sandboxData"
- dimensionCode="wealth"
- :sandboxData="sandboxData"
- :dualDimension="dualDimension" />
- <!-- 身克富杠杆警告 -->
- <body-wealth-alert
- :status="bodyWealthStatus"
- :message="bodyWealthMessage"
- :showTip="true" />
- <!-- 财富能量环 -->
- <WealthEnergyRing
- :score="wealthScore"
- :delta="deltaPercent" />
- <!-- 财富成长 -->
- <view class="section stream-section">
- <view class="section-header">
- <text class="section-title">💰 财富成长</text>
- <text class="section-sub">记录家庭财富积累过程,看到每月的成长变化</text>
- </view>
- <view class="stream-stages">
- <view
- class="stage-card"
- :class="{ active: stage.key === currentStage }"
- v-for="stage in streamStages"
- :key="stage.key">
- <text class="stage-icon">{{ stage.icon }}</text>
- <text class="stage-name">{{ stage.name }}</text>
- <text class="stage-desc">{{ stage.desc }}</text>
- <text class="stage-range">{{ stage.range }}</text>
- </view>
- </view>
- <view class="stream-water">
- <view class="stream-water-fill" :style="{ width: wealthScore + '%' }"></view>
- </view>
- <text class="stream-percent">水位 {{ wealthScore }}%</text>
- <text class="stream-tip">{{ streamTip }}</text>
- </view>
- <!-- 子维度水滴 -->
- <wealth-sub-scores
- :role="role"
- :skill="wealthSkill"
- :altruism="wealthAltruism"
- :income="wealthIncome"
- :fx="wealthFx" />
- <!-- 子维度评分表 -->
- <dimension-sub-dims
- v-if="isLoggedIn && wealthSubDims.length > 0"
- title="💧 财富维度构成"
- subtitle="家庭财富能量的各个方面"
- accent-color="#F59E0B"
- :dims="wealthSubDims" />
- <!-- 财富强项与提升 -->
- <view class="section wealth-insight" v-if="isLoggedIn && wealthSubDims.length > 0 && (wealthStrengths.length > 0 || wealthImproves.length > 0)">
- <view class="section-header">
- <text class="section-title">📈 财富强项与提升</text>
- </view>
- <view class="insight-group" v-if="wealthStrengths.length > 0">
- <text class="insight-group-title">💪 财富强项</text>
- <view class="insight-item" v-for="(item, idx) in wealthStrengths" :key="getInsightKey('s', idx)">
- <text class="insight-item-name">{{ item.label }}</text>
- <text class="insight-item-score">{{ item.score }}分</text>
- <text class="insight-item-tag tag-strong">强项</text>
- </view>
- </view>
- <view class="insight-group" v-if="wealthImproves.length > 0">
- <text class="insight-group-title">🌱 提升空间</text>
- <view class="insight-item" v-for="(item, idx) in wealthImproves" :key="getInsightKey('i', idx)">
- <text class="insight-item-name">{{ item.label }}</text>
- <text class="insight-item-score">{{ item.score }}分</text>
- <text class="insight-item-tag tag-improve">待提升</text>
- </view>
- </view>
- <view class="insight-tip" v-if="wealthStrengths.length > 0 && wealthImproves.length > 0">
- <text class="insight-tip-text">保持优势项,薄弱项可通过参与活动与任务逐步积累</text>
- </view>
- </view>
- <!-- 富维度画像 - 总体说明 -->
- <view class="dimension-portrait-section" v-if="isLoggedIn && wealthPortrait">
- <view class="section-header">
- <text class="section-title">🧭 富维度画像</text>
- <text class="portrait-tier">{{ wealthPortrait.tierLabel }}</text>
- </view>
- <view class="portrait-summary">
- <text class="portrait-desc">{{ wealthPortrait.summary }}</text>
- </view>
- <view class="portrait-dimensions">
- <view class="portrait-dim-item" v-for="dim in wealthPortrait.dims" :key="dim.code">
- <view class="portrait-dim-header">
- <view class="portrait-dim-icon" :style="{ background: dim.color }">{{ dim.icon }}</view>
- <text class="portrait-dim-name">{{ dim.name }}</text>
- <text class="portrait-dim-score">{{ dim.score }}</text>
- </view>
- <view class="portrait-dim-bar-track">
- <view class="portrait-dim-bar-fill" :style="{ width: dim.score + '%', background: dim.color }"></view>
- </view>
- <text class="portrait-dim-desc">{{ dim.desc }}</text>
- </view>
- </view>
- <view class="portrait-tip" v-if="wealthPortrait.tip">
- <text class="portrait-tip-text">💡 {{ wealthPortrait.tip }}</text>
- </view>
- </view>
- <!-- 财富数据卡(家长) -->
- <view class="section" v-if="role === 'parent'">
- <view class="disc-card">
- <text class="disc-label">💰 累计收益</text>
- <text class="disc-value">¥{{ wealthData.totalEarnings || 0 }}</text>
- <text class="disc-sub" v-if="deltaPercent > 0">较上月 ↑ {{ deltaPercent }}%</text>
- </view>
- <view class="disc-sub-row">
- <view class="disc-sub-card" @click="goToIncome">
- <text class="disc-sub-label">可提现</text>
- <text class="disc-sub-value">¥{{ wealthData.availableAmount || 0 }}</text>
- <text class="disc-sub-action">提现 →</text>
- </view>
- <view class="disc-sub-card" @click="goToAchievements">
- <text class="disc-sub-label">邀请人数</text>
- <text class="disc-sub-value">{{ wealthData.referralCount || 0 }}人</text>
- <text class="disc-sub-action">邀请 →</text>
- </view>
- </view>
- </view>
- <!-- 财富数据卡(孩子) -->
- <view class="section" v-else>
- <view class="child-wealth-card">
- <view class="child-wealth-item">
- <text class="child-wealth-icon">⭐</text>
- <text class="child-wealth-value">{{ wealthIncome || 0 }}</text>
- <text class="child-wealth-label">累计积分</text>
- </view>
- <view class="child-wealth-item">
- <text class="child-wealth-icon">📝</text>
- <text class="child-wealth-value">{{ taskPercent }}%</text>
- <text class="child-wealth-label">任务完成</text>
- </view>
- <view class="child-wealth-item">
- <text class="child-wealth-icon">🏆</text>
- <text class="child-wealth-value">{{ badgeCount }}</text>
- <text class="child-wealth-label">已获徽章</text>
- </view>
- </view>
- <view class="child-trend">
- <text class="child-trend-title">📊 本周成长趋势</text>
- <view class="child-trend-bars">
- <view class="trend-bar" v-for="(h, i) in weekTrend" :key="i" :style="{ height: h + '%' }"></view>
- </view>
- <view class="child-trend-days">
- <text class="trend-day" v-for="(d, i) in weekDays" :key="i">{{ d }}</text>
- </view>
- </view>
- </view>
- <!-- 保单管理 -->
- <view class="section" v-if="insuranceLoaded">
- <view class="section-header">
- <text class="section-title">🛡️ 保单管理</text>
- <text class="section-more" @click="goToInsuranceList">查看更多 ›</text>
- </view>
- <view class="insurance-card" v-if="insuranceList.length === 0">
- <view class="insurance-empty">
- <text class="insurance-empty-icon">📋</text>
- <text class="insurance-empty-text">暂无保单</text>
- </view>
- </view>
- <view class="insurance-card" v-else>
- <view class="insurance-item" v-for="(item, idx) in insuranceList" :key="idx" @click="goToInsuranceList">
- <view class="insurance-item-header">
- <text class="insurance-item-name">{{ item.policyName }}</text>
- <text class="insurance-item-status" :class="'status-' + item.status">{{ getPolicyStatusLabel(item.status) }}</text>
- </view>
- <view class="insurance-item-row">
- <text class="insurance-item-label">保险公司</text>
- <text class="insurance-item-value">{{ item.insuranceCompany || '未知' }}</text>
- </view>
- <view class="insurance-item-row">
- <text class="insurance-item-label">被保人</text>
- <text class="insurance-item-value">{{ item.insuredPerson }}</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 富维度介绍卡片 -->
- <DimensionIntroCard dimCode="wealth" v-if="isLoggedIn" learn-more-url="/pages/wealth/dimension-intro" />
- </template>
- </view>
- </template>
- <script>
- import TabTransition from '../../components/tab-transition.vue'
- import WealthEnergyRing from '@/pages/wealth/components/WealthEnergyRing.vue'
- import WealthSubScores from '@/pages/wealth/components/WealthSubScores.vue'
- import BodyWealthAlert from '@/pages/wealth/components/BodyWealthAlert.vue'
- import FamilyEnergyBar from '../../components/FamilyEnergyBar.vue'
- import DimensionIntroCard from '../../components/DimensionIntroCard.vue'
- import DimensionVisitorCard from '../../components/DimensionVisitorCard.vue'
- import DimensionSubDims from './components/DimensionSubDims.vue'
- import DimensionPageSkeleton from '../../components/DimensionPageSkeleton.vue'
- import DimensionMemberTabs from '../../components/DimensionMemberTabs.vue'
- import {
- getChildren,
- getWealthDetail,
- getReferralCode,
- getReferralSummary,
- getCommissionSummary,
- getFamilyMemberList,
- getInsuranceList,
- getFamilyEnergySandbox,
- getEnergyOverview,
- productList,
- extractReferralCode,
- getChildBadgeStats,
- getDailyTaskOverview, reportAppEnter,
- kickFamilyMemberById,
- } from '../../utils/api.js'
- import nav from '../../utils/nav.js'
- import config from '../../config.js'
- export default {
- components: { TabTransition, WealthEnergyRing, WealthSubScores, BodyWealthAlert, DimensionMemberTabs, FamilyEnergyBar, DimensionIntroCard, DimensionVisitorCard, DimensionSubDims, DimensionPageSkeleton },
- data() {
- return {
- memberScoreMap: {},
- pageLoading: false,
- showTabTransition: true,
- isLoggedIn: false,
- role: 'parent',
- // 五维评分
- wealthScore: 0,
- // 子维度 - 利他创富四维(家长/孩子共用字段)
- wealthSkill: null,
- wealthAltruism: null,
- wealthIncome: null,
- wealthFx: null,
- // 子维度汇总(DimensionSubDims 用)
- wealthSubDims: [],
- // 身克富杠杆
- bodyWealthStatus: 'normal',
- bodyWealthMessage: '',
- // 财富数据
- wealthData: {
- totalEarnings: 0,
- availableAmount: 0,
- referralCount: 0,
- referralCode: ''
- },
- // 财富成长
- deltaPercent: 0,
- streamStages: [
- { key: 'start', icon: '💧', name: '起步', desc: '新人阶段', range: '0-30%' },
- { key: 'mid', icon: '🌊', name: '汇流', desc: '成长阶段', range: '30-70%' },
- { key: 'surge', icon: '🌊🌊', name: '奔涌', desc: '达人阶段', range: '70-100%' }
- ],
- // 孩子数据
- taskPercent: 0,
- badgeCount: 0,
- weekTrend: [30, 40, 35, 50, 60, 55, 70],
- weekDays: ['一', '二', '三', '四', '五', '六', '日'],
- // 服务列表
- serviceList: [
- { icon: '📝', label: '记账', action: 'goToCheckin' },
- { icon: '🛡️', label: '保单管理', action: 'goToInsurance' },
- { icon: '🎨', label: '创客中心', action: 'goToCreator' },
- { icon: '🏪', label: '商城首页', action: 'goToShop' },
- { icon: '🛒', label: '购物车', action: 'goToCart' },
- { icon: '📋', label: '我的订单', action: 'goToOrders' },
- { icon: '🔄', label: '售后服务', action: 'goToAfterSales' },
- { icon: '📊', label: '收益中心', action: 'goToIncome' },
- { icon: '💎', label: '家庭CF值', action: 'goToFamilyCf' }
- ],
- children: [],
- familyMembersVisible: [],
- selectedMemberId: null,
- guestProducts: [],
- // 五维能量条数据
- sandboxData: null,
- dualDimension: null,
- // 保单列表
- insuranceList: [],
- insuranceLoaded: false,
- }
- },
- computed: {
- activeChildId() {
- if (this.role === 'child') {
- return uni.getStorageSync('currentChildId')
- }
- return ''
- },
- currentStage() {
- var s = this.wealthScore
- if (s >= 70) return 'surge'
- if (s >= 30) return 'mid'
- return 'start'
- },
- streamTip() {
- var s = this.wealthScore
- if (s >= 70) return '🎉 已是富足达人,继续引领全家成长!'
- if (s >= 30) return '💡 坚持分享,下一阶段"奔涌"在望'
- return '🌱 从今天开始,迈出创富第一步'
- },
- /** 财富强项:wealthSubDims 中得分 ≥75 的维度 */
- wealthStrengths() {
- var result = []
- for (var i = 0; i < this.wealthSubDims.length; i++) {
- var d = this.wealthSubDims[i]
- var s = Number(d.score)
- if (s >= 75) result.push({ label: d.label, score: s })
- }
- return result
- },
- /** 财富提升空间:wealthSubDims 中 0<得分<60 的维度 */
- wealthImproves() {
- var result = []
- for (var i = 0; i < this.wealthSubDims.length; i++) {
- var d = this.wealthSubDims[i]
- var s = Number(d.score)
- if (s > 0 && s < 60) result.push({ label: d.label, score: s })
- }
- return result
- },
- wealthPortrait: function() {
- var self = this
- if (!this.isLoggedIn || !this.wealthSubDims || this.wealthSubDims.length === 0) return null
- var dims = this.wealthSubDims
- var colors = ['#F59E0B', '#FF8C42', '#6366F1', '#10B981']
- var result = { overall: 0, tierLabel: '', summary: '', dims: [], tip: '' }
- var total = 0
- var count = 0
- var dimList = []
- for (var i = 0; i < dims.length; i++) {
- var d = dims[i]
- var score = Number(d.score) || 0
- score = Math.max(0, Math.min(100, score))
- total += score
- count++
- dimList.push({
- code: 'wealth' + i,
- name: d.label,
- score: Math.round(score),
- color: colors[i % colors.length],
- desc: d.desc || ''
- })
- }
- if (count === 0) return null
- result.overall = Math.round(total / count)
- result.dims = dimList
- var o = result.overall
- if (o >= 80) {
- result.tierLabel = '财富掌舵者'
- result.summary = '您的财富管理能力突出,能够很好地规划家庭财务,为家人创造稳定的财富基础。'
- result.tip = '保持财富积累节奏,可探索更多元化的投资渠道'
- } else if (o >= 60) {
- result.tierLabel = '财富进取者'
- result.summary = '您的财富管理处于良好水平,具备一定的财务规划能力。'
- result.tip = '坚持记账与储蓄习惯,逐步扩大财富积累'
- } else if (o >= 40) {
- result.tierLabel = '财富探索者'
- result.summary = '您的财富管理正在起步阶段,正在学习如何规划家庭财务。'
- result.tip = '从记账开始,培养财务规划意识,为家庭建立储蓄习惯'
- } else {
- result.tierLabel = '财富启蒙者'
- result.summary = '您的财富管理意识刚刚萌发,需要更多财务知识的积累。'
- result.tip = '建议学习基础理财知识,从家庭收支记录开始'
- }
- return result
- }
- },
- created() {
- // 首屏加载骨架:已登录用户的数据请求期间占位,稳态视觉零变化
- // 未登录走静态内容,不进 loading,故此处不读 isLoggedIn
- var token = uni.getStorageSync('token')
- if (token) {
- this.pageLoading = true
- var self = this
- setTimeout(function() { self.pageLoading = false }, 600)
- }
- },
- onShow() {
- reportAppEnter('wealth');
-
- this.showTabTransition = true
- var token = uni.getStorageSync('token')
- if (!token) {
- this.isLoggedIn = false
- this.loadGuestProducts()
- this._watchPageReady()
- return
- }
- this.isLoggedIn = true
- var currentRole = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || 'parent'
- // 所有人统一以家长身份进入,不再进行角色分流
- this.role = currentRole
- this.loadChildren()
- this.loadWealthDetail()
- this.loadWealthData()
- this.loadChildData()
- this.loadFamilyMembersVisible()
- this.loadInsuranceList()
- this.loadSandboxData()
- this.loadEnergyData()
- this._watchPageReady()
- },
- /** 每月引导语 */
- monthlyGuidance: function() {
- var month = new Date().getMonth()
- var messages = [
- '一月:理财从记账开始,养习惯',
- '二月:新年规划,梳理家庭收支',
- '三月:春耕时节,播种财富种子',
- '四月:清明踏青,规划家庭支出',
- '五月:劳动节后,复盘收支状况',
- '六月:年中复盘,调整财富目标',
- '七月:暑期规划,优化家庭消费',
- '八月:开学季,教育专项规划',
- '九月:金秋收获,检视推广收益',
- '十月:国庆消费,理性理财',
- '十一月:年终冲刺,盘点年度收益',
- '十二月:年度总结,规划来年财富'
- ]
- return messages[month] || messages[0]
- },
- methods: {
- getInsightKey(prefix, idx) { return prefix + idx },
- // 切换成员:wealth 各加载方法内部直接读 currentChildId,故先持久化再重载
- onFamilyMemberSelect: function(member) {
- if (!member || member.id === this.selectedMemberId) return
- this.selectedMemberId = member.id
- uni.setStorageSync('currentChildId', member.id)
- this.reloadForMember()
- },
- // 切换成员后的统一重载入口(富维度全部成员相关数据)
- reloadForMember: function() {
- if (!this.isLoggedIn) return
- this.loadWealthDetail()
- this.loadWealthData()
- this.loadChildData()
- },
- // 成员标签长按:唤出管理动作面板
- onMemberLongPress: function(member) {
- this.showMemberActions(member)
- },
- // 成员标签管理入口
- onMemberManage: function() {
- uni.navigateTo({ url: '/pages/profile-extra/family-members' })
- },
- // 成员管理动作面板(系统 ActionSheet,触摸目标由微信保证)
- showMemberActions: function(member) {
- if (!member) return
- var self = this
- var items = ['切换到该成员视角', '编辑资料', '移除成员']
- uni.showActionSheet({
- itemList: items,
- success: function(res) {
- if (res.tapIndex === 0) {
- uni.navigateTo({ url: '/pages/action-detail/relationship-questionnaire?memberId=' + member.id })
- } else if (res.tapIndex === 1) {
- uni.navigateTo({ url: '/pages/family/add-member?memberId=' + member.id })
- } else if (res.tapIndex === 2) {
- uni.showModal({
- title: '确认移除',
- content: '确定要移除 ' + (member.nickname || '该成员') + ' 吗?',
- success: function(m) {
- if (m.confirm) {
- uni.showLoading({ title: '移除中...' })
- kickFamilyMemberById(member.id).then(function() {
- uni.hideLoading()
- uni.showToast({ title: '已移除', icon: 'success' })
- self.loadFamilyMembersVisible()
- }).catch(function(err) {
- uni.hideLoading()
- uni.showToast({ title: (err && err.message) || '移除失败', icon: 'none' })
- })
- }
- }
- })
- }
- }
- })
- },
- loadFamilyMembersVisible() {
- var self = this
- getFamilyMemberList({}).then(function(res) {
- if (res.code === 200 && res.data) {
- // 保留后端全字段:成员标签需要 relationship/relativeLabel/roleLabel/effectiveRole/isSelf 等
- self.familyMembersVisible = res.data.map(function(m) {
- return {
- id: m.id,
- memberId: m.memberId,
- nickname: m.nickname,
- avatar: m.avatar,
- relationship: m.relationship,
- relativeLabel: m.relativeLabel,
- roleLabel: m.roleLabel,
- effectiveRole: m.effectiveRole,
- generation: m.generation,
- phone: m.phone,
- isSelf: m.isSelf,
- isSwitchable: m.isSwitchable
- }
- })
- }
- }).catch(function(e) {
- console.log('获取家庭成员失败', e)
- self.familyMembersVisible = []
- })
- },
- loadInsuranceList() {
- var self = this
- this.insuranceLoaded = false
- getInsuranceList({}).then(function(res) {
- if (res && res.code === 200) {
- self.insuranceList = (res.data || []).slice(0, 3)
- }
- self.insuranceLoaded = true
- }).catch(function() {
- self.insuranceLoaded = true
- })
- },
- getPolicyStatusLabel: function(status) {
- var map = { active: '有效', expired: '已过期', cancelled: '已取消' }
- return map[status] || status || '未知'
- },
- goLogin() {
- this.openLoginSheet()
- },
- // 登录成功:刷新登录态数据(镜像 onShow 已登录分支)
- onLoginSuccess() {
- this.isLoggedIn = true
- this.loadChildren()
- this.loadWealthDetail()
- this.loadWealthData()
- this.loadChildData()
- this.loadFamilyMembersVisible()
- this.loadInsuranceList()
- this.loadSandboxData()
- this.loadEnergyData()
- },
- _watchPageReady() {
- var self = this
- this.$nextTick(function() {
- if (self.$refs.tabTransition) self.$refs.tabTransition.markReady()
- })
- },
- async loadChildren() {
- try {
- var res = await getChildren()
- this.children = res.data || []
- } catch (e) {
- console.error('获取成员列表失败', e)
- }
- },
- async loadWealthDetail() {
- var memberId = null
- var memberType = this.role
- if (this.role === 'child') {
- memberId = uni.getStorageSync('currentChildId')
- if (!memberId && this.children.length > 0) {
- memberId = this.children[0].id
- }
- } else {
- memberId = uni.getStorageSync('userId')
- }
- if (!memberId) return
- try {
- var res = await getWealthDetail(memberId, memberType)
- if (res && res.data) {
- var d = res.data
- this.wealthScore = d.wealthScore || 0
- // 利他创富四子维度(家长/孩子共用字段)
- this.wealthSkill = d.wealthSkill
- this.wealthAltruism = d.wealthAltruism
- this.wealthIncome = d.wealthIncome
- this.wealthFx = d.wealthFx
- // 身克富杠杆状态
- this.bodyWealthStatus = d.bodyWealthStatus || 'normal'
- this.bodyWealthMessage = d.bodyWealthMessage || ''
- // 子维度汇总(供 DimensionSubDims 使用)
- if (memberType === 'parent') {
- this.wealthSubDims = [
- { label: '个人能力', score: this.wealthSkill || 0, desc: '服务商资质与成长学习' },
- { label: '利他贡献', score: this.wealthAltruism || 0, desc: '邀请分享帮助他人' },
- { label: 'CF值积累', score: this.wealthIncome || 0, desc: '家庭第二收入曲线' },
- { label: '财务素养', score: this.wealthFx || 0, desc: '记账理财储蓄习惯' }
- ]
- } else {
- this.wealthSubDims = [
- { label: '学业能力', score: this.wealthSkill || 0, desc: '测评成绩与进步趋势' },
- { label: '利他贡献', score: this.wealthAltruism || 0, desc: '帮助他人与分享' },
- { label: '积分积累', score: this.wealthIncome || 0, desc: '完成任务获取积分' },
- { label: '财务素养', score: this.wealthFx || 0, desc: '财商学习与储蓄习惯' }
- ]
- }
- }
- } catch (e) {
- console.error('获取富维度详情失败', e)
- }
- },
- loadSandboxData: function() {
- var self = this
- getFamilyEnergySandbox().then(function(res) {
- if (res && res.data) self.sandboxData = res.data
- }).catch(function() {})
- },
- loadEnergyData: function() {
- var self = this
- var memberId = uni.getStorageSync('userId') || null
- if (!memberId) return
- getEnergyOverview(memberId).then(function(res) {
- if (res && res.data) {
- var dims = res.data.dimensions
- if (dims && dims.length > 0) {
- for (var i = 0; i < dims.length; i++) {
- if (dims[i].code === 'wealth') {
- self.dualDimension = dims[i]
- break
- }
- }
- }
- }
- }).catch(function() {})
- },
- goToMemberDetail: function(memberId) {
- uni.navigateTo({ url: '/pages/wealth-detail/member-wealth-detail?memberId=' + memberId })
- },
- async loadWealthData() {
- if (this.role !== 'parent') return
- try {
- var codeRes = await getReferralCode()
- this.wealthData.referralCode = extractReferralCode(codeRes)
- } catch (e) {
- console.error('获取邀请码失败', e)
- }
- try {
- var summaryRes = await getReferralSummary()
- if (summaryRes && summaryRes.code === 200 && summaryRes.data) {
- this.wealthData.referralCount = summaryRes.data.invitedCount || 0
- }
- } catch (e) {
- console.error('获取邀请统计失败', e)
- }
- try {
- var commissionRes = await getCommissionSummary()
- if (commissionRes && commissionRes.code === 200 && commissionRes.data) {
- this.wealthData.totalEarnings = commissionRes.data.totalEarnings || 0
- this.wealthData.availableAmount = commissionRes.data.availableAmount || 0
- }
- } catch (e) {
- console.error('获取佣金统计失败', e)
- }
- },
- async loadChildData() {
- if (this.role !== 'child') return
- var memberId = uni.getStorageSync('currentChildId')
- if (!memberId && this.children.length > 0) {
- memberId = this.children[0].id
- }
- if (!memberId) return
- try {
- var badgeRes = await getChildBadgeStats(memberId)
- if (badgeRes && badgeRes.code === 200 && badgeRes.data) {
- this.badgeCount = badgeRes.data.active || 0
- }
- } catch (e) {
- console.error('获取徽章统计失败', e)
- }
- try {
- var taskRes = await getDailyTaskOverview({ memberId: memberId })
- if (taskRes && taskRes.code === 200 && taskRes.data && taskRes.data.tasks) {
- var done = taskRes.data.tasks.doneToday || 0
- var todo = taskRes.data.tasks.todoToday || 0
- var total = done + todo
- this.taskPercent = total > 0 ? Math.round(done / total * 100) : 0
- }
- } catch (e) {
- console.error('获取任务概览失败', e)
- }
- },
- logout() {
- uni.showModal({
- title: '退出登录',
- content: '确定要退出登录吗?',
- success: function(res) {
- if (res.confirm) {
- uni.clearStorageSync()
- uni.reLaunch({ url: '/pages/login/login' })
- }
- }
- })
- },
- goToCheckin() {
- uni.navigateTo({ url: '/pages/wealth-sub/checkin' })
- },
- goToInsurance() {
- uni.navigateTo({ url: '/pages/wealth-sub/insurance-list' })
- },
- goToInsuranceList: function() {
- uni.navigateTo({ url: '/pages/wealth-sub/insurance-list' })
- },
- goToCreator() {
- uni.navigateTo({ url: '/pages/promotion/index' })
- },
- goToShop() {
- uni.navigateTo({ url: '/pages/shop/index/index' })
- },
- goToOrders() {
- uni.navigateTo({ url: '/pages/shop/order-list/order-list' })
- },
- goToAfterSales() {
- uni.navigateTo({ url: '/pages/shop/after-sales/after-sales' })
- },
- goToIncome() {
- uni.navigateTo({ url: '/pages/promotion/commission' })
- },
- goToFamilyCf() {
- uni.navigateTo({ url: '/pages/wealth-cf/index' })
- },
- goToAchievements() {
- uni.navigateTo({ url: '/pages/rewards/badge' })
- },
- goToNetwork() {
- uni.navigateTo({ url: '/pages/promotion/team' })
- },
- goToCart() {
- uni.navigateTo({ url: '/pages/shop/cart/cart' })
- },
- loadGuestProducts() {
- var self = this
- productList({ page: 1, size: 4, sort: 'sales' }).then(function(res) {
- if (res.code === 200 && res.data && res.data.records) {
- self.guestProducts = res.data.records.slice(0, 4)
- }
- }).catch(function() {})
- },
- goProductDetail(id) {
- uni.navigateTo({ url: '/pages/discover-detail/product-detail/product-detail?id=' + id })
- },
- getImageUrl: function(path) {
- if (!path || path === 'null' || path === 'undefined' || path === '/null') return ''
- var s = String(path).trim()
- if (!s || s === 'null' || s === '/null') return ''
- if (s.indexOf('http://') === 0 || s.indexOf('https://') === 0) return s
- return config.API_BASE_URL + (s.charAt(0) === '/' ? s : '/' + s)
- },
- onServiceClick(action) {
- if (this[action]) {
- this[action]()
- }
- }
- }
- }
- </script>
- .view-toggle {
- display: flex;
- margin: 20rpx 30rpx;
- background: rgba(255,255,255,0.12);
- border-radius: 12rpx;
- padding: 6rpx;
- }
- .toggle-btn {
- flex: 1;
- text-align: center;
- padding: 12rpx 0;
- border-radius: 8rpx;
- font-size: 26rpx;
- color: rgba(255,255,255,0.65);
- }
- .toggle-btn.active {
- background: rgba(255,255,255,0.22);
- color: #fff;
- font-weight: 600;
- }
- /* 页面说明 */
- .section-sub {
- font-size: 22rpx;
- color: rgba(255,255,255,0.55);
- margin-top: 6rpx;
- display: block;
- }
- /* 得分解读卡片 */
- .score-explain-card {
- margin: 20rpx 30rpx;
- padding: 28rpx 24rpx;
- background: rgba(255,255,255,0.1);
- border-radius: 20rpx;
- border: 1rpx solid rgba(255,255,255,0.15);
- }
- .explain-header {
- display: flex;
- align-items: center;
- margin-bottom: 14rpx;
- }
- .explain-icon {
- font-size: 36rpx;
- margin-right: 10rpx;
- }
- .explain-title {
- font-size: 28rpx;
- font-weight: 600;
- color: #fff;
- }
- .explain-text {
- font-size: 26rpx;
- color: rgba(255,255,255,0.8);
- line-height: 1.6;
- }
- <style scoped lang="scss">
- .container {
- min-height: 100vh;
- background: $app-bg;
- padding-bottom: 120rpx;
- }
- .section {
- margin: 20rpx 30rpx;
- }
- .section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20rpx;
- }
- .section-title {
- font-size: 30rpx;
- font-weight: bold;
- color: $app-text;
- }
- .section-more {
- position: relative;
- font-size: 24rpx;
- color: $app-text-muted;
- }
- /* 触摸目标扩展至 88rpx(微信最小可点区域):文字链 ~34rpx -> 88rpx,视觉零变化 */
- .section-more::after {
- content: '';
- position: absolute;
- left: -8rpx;
- right: -16rpx;
- top: -27rpx;
- bottom: -27rpx;
- }
- /* 财富成长 */
- .stream-section {
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
- }
- .stream-stages {
- display: flex;
- justify-content: space-between;
- margin-bottom: 20rpx;
- }
- .stage-card {
- flex: 1;
- margin: 0 8rpx;
- padding: 20rpx;
- border-radius: 16rpx;
- background: $app-bg;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .stage-card.active {
- background: $dim-wealth-tint;
- border: 2rpx solid $status-warning;
- }
- .stage-icon {
- font-size: 44rpx;
- }
- .stage-name {
- font-size: 26rpx;
- font-weight: bold;
- color: $app-text;
- margin-top: 8rpx;
- }
- .stage-desc {
- font-size: 20rpx;
- color: $app-text-muted;
- margin-top: 4rpx;
- }
- .stage-range {
- font-size: 20rpx;
- color: $dim-wealth;
- margin-top: 4rpx;
- }
- .stream-water {
- height: 20rpx;
- border-radius: 10rpx;
- background: $status-warning-soft;
- overflow: hidden;
- }
- .stream-water-fill {
- height: 100%;
- border-radius: 10rpx;
- background: linear-gradient(90deg, $dim-wealth, $status-warning);
- transition: width 0.8s ease;
- }
- .stream-percent {
- display: block;
- text-align: right;
- font-size: 22rpx;
- color: $dim-wealth;
- margin-top: 8rpx;
- }
- .stream-tip {
- display: block;
- text-align: center;
- font-size: 24rpx;
- color: $status-warning-strong;
- margin-top: 12rpx;
- }
- /* 财富数据主卡 */
- .disc-card {
- background: linear-gradient(135deg, $dim-wealth-tint, $status-warning-soft);
- border-radius: 20rpx;
- padding: 30rpx;
- margin-bottom: 16rpx;
- display: flex;
- flex-direction: column;
- }
- .disc-label {
- font-size: 26rpx;
- color: $status-warning-strong;
- }
- .disc-value {
- font-size: 56rpx;
- font-weight: bold;
- color: $dim-wealth;
- margin-top: 8rpx;
- }
- .disc-sub {
- font-size: 24rpx;
- color: $status-warning-strong;
- margin-top: 8rpx;
- }
- .disc-sub-row {
- display: flex;
- margin-bottom: 16rpx;
- }
- .disc-sub-card {
- flex: 1;
- background: $app-surface;
- border-radius: 16rpx;
- padding: 24rpx;
- display: flex;
- flex-direction: column;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
- }
- .disc-sub-card:first-child {
- margin-right: 8rpx;
- }
- .disc-sub-card:last-child {
- margin-left: 8rpx;
- }
- .disc-sub-label {
- font-size: 24rpx;
- color: $app-text-muted;
- }
- .disc-sub-value {
- font-size: 36rpx;
- font-weight: bold;
- color: $app-text;
- margin-top: 8rpx;
- }
- .disc-sub-action {
- font-size: 22rpx;
- color: $dim-wealth;
- margin-top: 8rpx;
- }
- /* 孩子财富卡 */
- .child-wealth-card {
- display: flex;
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx 0;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
- }
- .child-wealth-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .child-wealth-icon {
- font-size: 44rpx;
- }
- .child-wealth-value {
- font-size: 36rpx;
- font-weight: bold;
- color: $dim-wealth;
- margin-top: 8rpx;
- }
- .child-wealth-label {
- font-size: 22rpx;
- color: $app-text-muted;
- margin-top: 4rpx;
- }
- .child-trend {
- margin-top: 16rpx;
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
- }
- .child-trend-title {
- font-size: 26rpx;
- color: $app-text;
- font-weight: bold;
- }
- .child-trend-bars {
- display: flex;
- align-items: flex-end;
- height: 120rpx;
- margin-top: 16rpx;
- }
- .trend-bar {
- flex: 1;
- margin: 0 6rpx;
- background: linear-gradient(180deg, $status-warning, $dim-wealth);
- border-radius: 6rpx 6rpx 0 0;
- }
- .child-trend-days {
- display: flex;
- margin-top: 8rpx;
- }
- .trend-day {
- flex: 1;
- text-align: center;
- font-size: 20rpx;
- color: $app-text-muted;
- }
- /* 服务入口 */
- .service-grid {
- display: flex;
- flex-wrap: wrap;
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx 16rpx;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
- }
- .service-item {
- width: 25%;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 16rpx 0;
- }
- .service-icon-wrap {
- width: 88rpx;
- height: 88rpx;
- border-radius: 24rpx;
- background: $dim-wealth-tint;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-bottom: 8rpx;
- }
- .service-icon {
- font-size: 40rpx;
- }
- .service-label {
- font-size: 22rpx;
- color: $app-text-secondary;
- }
- .logout-item {
- color: $status-danger;
- }
- /* 未登录 */
- .login-prompt .login-btn::after {
- border: none;
- }
- /* 品牌定位语 */
- .brand-strap {
- margin: 16rpx 30rpx 0;
- padding: 20rpx 28rpx;
- background: linear-gradient(135deg, $dim-wealth-tint, rgba(245,158,11,0.12));
- border-radius: 16rpx;
- border-left: 8rpx solid $dim-wealth;
- }
- .brand-strap-text {
- font-size: 26rpx;
- color: $status-warning-strong;
- font-weight: 500;
- }
- /* 商城精选预览 */
- .product-scroll {
- white-space: nowrap;
- padding: 0 30rpx;
- }
- .product-list {
- display: inline-flex;
- gap: 20rpx;
- }
- .product-card {
- width: 220rpx;
- flex-shrink: 0;
- background: $app-surface;
- border-radius: 16rpx;
- overflow: hidden;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
- }
- .product-img {
- width: 220rpx;
- height: 220rpx;
- background: $app-surface-subtle;
- }
- .product-name {
- display: block;
- padding: 12rpx 12rpx 4rpx;
- font-size: 24rpx;
- color: $app-text;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .product-price {
- display: block;
- padding: 4rpx 12rpx 12rpx;
- font-size: 26rpx;
- font-weight: bold;
- color: $dim-wealth;
- }
- /* 保单管理 */
- .insurance-card {
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx;
- box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.08);
- }
- .insurance-empty {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 40rpx 0;
- }
- .insurance-empty-icon { font-size: 60rpx; }
- .insurance-empty-text { font-size: 24rpx; color: $app-text-muted; margin-top: 12rpx; }
- .insurance-item {
- padding: 16rpx 0;
- border-bottom: 1rpx solid $app-surface-subtle;
- }
- .insurance-item:last-child { border-bottom: none; }
- .insurance-item-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8rpx;
- }
- .insurance-item-name {
- font-size: 26rpx;
- font-weight: 600;
- color: $app-text;
- }
- .insurance-item-status {
- font-size: 20rpx;
- padding: 4rpx 12rpx;
- border-radius: 8rpx;
- }
- .insurance-item-status.status-active { background: $status-success-soft; color: $status-success-text; }
- .insurance-item-status.status-expired { background: $status-danger-tint; color: $status-danger-deep; }
- .insurance-item-status.status-cancelled { background: $app-surface-subtle; color: $app-text-muted; }
- .insurance-item-row {
- display: flex;
- justify-content: space-between;
- padding: 4rpx 0;
- }
- .insurance-item-label { font-size: 22rpx; color: $app-text-muted; }
- .insurance-item-value { font-size: 22rpx; color: $app-text-secondary; }
- /* ===== 财富强项与提升卡片 ===== */
- .wealth-insight {
- background: $app-surface;
- border-radius: 20rpx;
- padding: 24rpx;
- }
- .insight-group {
- margin-bottom: 16rpx;
- }
- .insight-group-title {
- font-size: 26rpx;
- font-weight: 600;
- color: $app-text;
- margin-bottom: 10rpx;
- display: block;
- }
- .insight-item {
- display: flex;
- align-items: center;
- padding: 12rpx 16rpx;
- background: $dim-wealth-tint;
- border-radius: 12rpx;
- margin-bottom: 8rpx;
- }
- .insight-item-name {
- flex: 1;
- font-size: 26rpx;
- color: $app-text;
- }
- .insight-item-score {
- font-size: 24rpx;
- color: $app-text-secondary;
- margin-right: 12rpx;
- }
- .insight-item-tag {
- font-size: 20rpx;
- padding: 4rpx 16rpx;
- border-radius: 8rpx;
- font-weight: 500;
- }
- .insight-item-tag.tag-strong {
- background: $status-success-soft;
- color: $status-success-deep;
- }
- .insight-item-tag.tag-improve {
- background: $status-warning-soft;
- color: $status-warning-deep;
- }
- .insight-tip {
- padding: 12rpx 16rpx;
- background: $dim-wealth-tint;
- border-radius: 12rpx;
- }
- .insight-tip-text {
- font-size: 22rpx;
- color: $dim-wealth;
- }
- /* 维度画像样式 */
- .dimension-portrait-section {
- margin: 24rpx 30rpx;
- background: $app-surface;
- border-radius: 24rpx;
- padding: 32rpx 24rpx;
- box-shadow: 0 4rpx 20rpx rgba(245, 158, 11, 0.12);
- border: 2rpx solid rgba(245, 158, 11, 0.1);
- }
- .portrait-tier {
- font-size: 26rpx;
- color: $dim-wealth;
- font-weight: bold;
- margin-left: 16rpx;
- }
- .portrait-summary {
- margin-bottom: 24rpx;
- }
- .portrait-desc {
- font-size: 26rpx;
- color: $app-text-secondary;
- line-height: 1.6;
- display: block;
- }
- .portrait-dimensions {
- margin-bottom: 20rpx;
- }
- .portrait-dim-item {
- margin-bottom: 18rpx;
- }
- .portrait-dim-header {
- display: flex;
- align-items: center;
- margin-bottom: 6rpx;
- }
- .portrait-dim-icon {
- width: 36rpx;
- height: 36rpx;
- border-radius: 18rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 10rpx;
- font-size: 20rpx;
- background: linear-gradient(135deg, $dim-wealth-tint, $dim-body-tint);
- }
- .portrait-dim-name {
- font-size: 24rpx;
- color: $app-text;
- flex: 1;
- }
- .portrait-dim-score {
- font-size: 26rpx;
- font-weight: bold;
- color: $dim-wealth;
- margin-right: 12rpx;
- }
- .portrait-dim-bar-track {
- height: 10rpx;
- background: $dim-wealth-tint;
- border-radius: 5rpx;
- overflow: hidden;
- margin-bottom: 4rpx;
- flex: 1;
- }
- .portrait-dim-bar-fill {
- height: 100%;
- border-radius: 5rpx;
- transition: width 0.3s ease;
- }
- .portrait-dim-desc {
- font-size: 20rpx;
- color: $app-text-secondary;
- display: block;
- }
- .portrait-tip {
- padding: 16rpx 20rpx;
- background: linear-gradient(135deg, $dim-wealth-tint, $dim-body-tint);
- border-radius: 12rpx;
- border-left: 8rpx solid $dim-wealth;
- margin-top: 16rpx;
- }
- .portrait-tip-text {
- font-size: 22rpx;
- color: $brand-primary-deep;
- line-height: 1.5;
- }
- /* 月度引导语 */
- .monthly-guidance {
- margin: 0 30rpx 20rpx;
- background: linear-gradient(135deg, $dim-wealth-tint, rgba(245,158,11,0.1));
- border-radius: 16rpx;
- padding: 20rpx 24rpx;
- display: flex;
- align-items: center;
- gap: 12rpx;
- }
- .guidance-icon { font-size: 32rpx; flex-shrink: 0; }
- .guidance-text { font-size: 26rpx; color: $dim-wealth; font-weight: 500; }
- </style>
|