index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. <template>
  2. <view class="container">
  3. <!-- 未登录 -->
  4. <view v-if="!isLoggedIn" class="login-prompt">
  5. <view class="prompt-icon">👤</view>
  6. <text class="prompt-title">登录浠艾福</text>
  7. <text class="prompt-desc">登录后查看财富能量详情</text>
  8. <button class="login-btn" @click="goLogin">登录 / 注册</button>
  9. </view>
  10. <template v-else>
  11. <!-- 品牌头部 -->
  12. <PageBanner theme="wealth"
  13. tagline="利他创富 · 价值共享"
  14. quote="富足源于利他与坚持" />
  15. <!-- 退出切换按钮 -->
  16. <view class="exit-switch" v-if="isSwitchedChild" @click="exitSwitch">
  17. <text>🔄 退出切换</text>
  18. </view>
  19. <!-- 五行相克状态条(5组) -->
  20. <view class="section">
  21. <view class="section-header">
  22. <text class="section-title">⚖️ 身克富平衡</text>
  23. </view>
  24. <view class="body-wealth-bar" :class="'status-' + bodyWealthStatus">
  25. <view class="bar-row">
  26. <text class="bar-label">身体底盘</text>
  27. <view class="bar-track">
  28. <view class="bar-fill body-bar" :style="'width:' + bodyScore + '%'"></view>
  29. </view>
  30. <text class="bar-value">{{ bodyScore }}分</text>
  31. </view>
  32. <view class="bar-row">
  33. <text class="bar-label">财力素养</text>
  34. <view class="bar-track">
  35. <view class="bar-fill wealth-bar" :style="'width:' + wealthScore + '%'"></view>
  36. </view>
  37. <text class="bar-value">{{ wealthScore }}分</text>
  38. </view>
  39. <view v-if="bodyWealthMessage" class="bw-message">{{ bodyWealthMessage }}</view>
  40. </view>
  41. </view>
  42. <view class="section">
  43. <view class="section-header">
  44. <text class="section-title">⚡ 行克身调节</text>
  45. </view>
  46. <view class="body-wealth-bar" :class="'status-' + actionBodyStatus">
  47. <view class="bar-row">
  48. <text class="bar-label">行动能量</text>
  49. <view class="bar-track">
  50. <view class="bar-fill action-bar" :style="'width:' + actionScore + '%'"></view>
  51. </view>
  52. <text class="bar-value">{{ actionScore }}分</text>
  53. </view>
  54. <view class="bar-row">
  55. <text class="bar-label">身体底盘</text>
  56. <view class="bar-track">
  57. <view class="bar-fill body-bar" :style="'width:' + bodyScore + '%'"></view>
  58. </view>
  59. <text class="bar-value">{{ bodyScore }}分</text>
  60. </view>
  61. <view v-if="actionBodyMessage" class="bw-message">{{ actionBodyMessage }}</view>
  62. </view>
  63. </view>
  64. <view class="section">
  65. <view class="section-header">
  66. <text class="section-title">💧 富克心平衡</text>
  67. </view>
  68. <view class="body-wealth-bar" :class="'status-' + wealthHeartStatus">
  69. <view class="bar-row">
  70. <text class="bar-label">财富能量</text>
  71. <view class="bar-track">
  72. <view class="bar-fill wealth-bar" :style="'width:' + wealthScore + '%'"></view>
  73. </view>
  74. <text class="bar-value">{{ wealthScore }}分</text>
  75. </view>
  76. <view class="bar-row">
  77. <text class="bar-label">心动能量</text>
  78. <view class="bar-track">
  79. <view class="bar-fill mind-bar" :style="'width:' + mindScore + '%'"></view>
  80. </view>
  81. <text class="bar-value">{{ mindScore }}分</text>
  82. </view>
  83. <view v-if="wealthHeartMessage" class="bw-message">{{ wealthHeartMessage }}</view>
  84. </view>
  85. </view>
  86. <view class="section">
  87. <view class="section-header">
  88. <text class="section-title">🔥 心克智沉淀</text>
  89. </view>
  90. <view class="body-wealth-bar" :class="'status-' + mindWisdomStatus">
  91. <view class="bar-row">
  92. <text class="bar-label">心动能量</text>
  93. <view class="bar-track">
  94. <view class="bar-fill mind-bar" :style="'width:' + mindScore + '%'"></view>
  95. </view>
  96. <text class="bar-value">{{ mindScore }}分</text>
  97. </view>
  98. <view class="bar-row">
  99. <text class="bar-label">智慧能量</text>
  100. <view class="bar-track">
  101. <view class="bar-fill wisdom-bar" :style="'width:' + wisdomScore + '%'"></view>
  102. </view>
  103. <text class="bar-value">{{ wisdomScore }}分</text>
  104. </view>
  105. <view v-if="mindWisdomMessage" class="bw-message">{{ mindWisdomMessage }}</view>
  106. </view>
  107. </view>
  108. <view class="section">
  109. <view class="section-header">
  110. <text class="section-title">⚔️ 智克行滤镜</text>
  111. </view>
  112. <view class="body-wealth-bar" :class="'status-' + wisdomActionStatus">
  113. <view class="bar-row">
  114. <text class="bar-label">智慧能量</text>
  115. <view class="bar-track">
  116. <view class="bar-fill wisdom-bar" :style="'width:' + wisdomScore + '%'"></view>
  117. </view>
  118. <text class="bar-value">{{ wisdomScore }}分</text>
  119. </view>
  120. <view class="bar-row">
  121. <text class="bar-label">行动能量</text>
  122. <view class="bar-track">
  123. <view class="bar-fill action-bar" :style="'width:' + actionScore + '%'"></view>
  124. </view>
  125. <text class="bar-value">{{ actionScore }}分</text>
  126. </view>
  127. <view v-if="wisdomActionMessage" class="bw-message">{{ wisdomActionMessage }}</view>
  128. </view>
  129. </view>
  130. <!-- 财富子维度卡片 -->
  131. <view class="section">
  132. <view class="section-header">
  133. <text class="section-title">💎 财富子维度</text>
  134. </view>
  135. <!-- 家长版 -->
  136. <view class="sub-dim-grid" v-if="role === 'parent'">
  137. <view class="sub-dim-card" @click="goToIncome">
  138. <text class="sub-dim-score">{{ wealthIncome || '-' }}</text>
  139. <text class="sub-dim-label">金钱/收入</text>
  140. <text class="sub-dim-desc">累计佣金</text>
  141. </view>
  142. <view class="sub-dim-card" @click="goToAchievements">
  143. <text class="sub-dim-score">{{ wealthAchievement || '-' }}</text>
  144. <text class="sub-dim-label">个人成就</text>
  145. <text class="sub-dim-desc">认证成就</text>
  146. </view>
  147. <view class="sub-dim-card" @click="goToNetwork">
  148. <text class="sub-dim-score">{{ wealthNetwork || '-' }}</text>
  149. <text class="sub-dim-label">资源网络</text>
  150. <text class="sub-dim-desc">推荐关系</text>
  151. </view>
  152. </view>
  153. <!-- 孩子版 -->
  154. <view class="sub-dim-grid" v-else>
  155. <view class="sub-dim-card">
  156. <text class="sub-dim-score">{{ wealthEducation || '-' }}</text>
  157. <text class="sub-dim-label">学业成绩</text>
  158. <text class="sub-dim-desc">测评综合</text>
  159. </view>
  160. <view class="sub-dim-card">
  161. <text class="sub-dim-score">{{ wealthSocial || '-' }}</text>
  162. <text class="sub-dim-label">社交筹码</text>
  163. <text class="sub-dim-desc">活动参与</text>
  164. </view>
  165. <view class="sub-dim-card">
  166. <text class="sub-dim-score">{{ wealthPoints || '-' }}</text>
  167. <text class="sub-dim-label">规则博弈</text>
  168. <text class="sub-dim-desc">积分效率</text>
  169. </view>
  170. </view>
  171. </view>
  172. <!-- 心的子维度(仅孩子) -->
  173. <view class="section" v-if="role !== 'parent'">
  174. <view class="section-header">
  175. <text class="section-title">🔥 心的子维度</text>
  176. </view>
  177. <view class="sub-dim-grid heart-sub-dim">
  178. <view class="sub-dim-card">
  179. <text class="sub-dim-score">{{ heartEmotionStable || '-' }}</text>
  180. <text class="sub-dim-label">情绪稳定</text>
  181. <text class="sub-dim-desc">EMI情绪管理</text>
  182. </view>
  183. <view class="sub-dim-card">
  184. <text class="sub-dim-score">{{ heartUnderstanding || '-' }}</text>
  185. <text class="sub-dim-label">理解包容</text>
  186. <text class="sub-dim-desc">共情+社交适应</text>
  187. </view>
  188. <view class="sub-dim-card">
  189. <text class="sub-dim-score">{{ heartLegacy || '-' }}</text>
  190. <text class="sub-dim-label">传承传递</text>
  191. <text class="sub-dim-desc">未来开放</text>
  192. </view>
  193. </view>
  194. </view>
  195. <!-- 增值服务入口 -->
  196. <view class="section">
  197. <view class="section-header">
  198. <text class="section-title">🚀 增值服务</text>
  199. </view>
  200. <view class="service-grid">
  201. <view class="service-item" @click="goToCheckin">
  202. <text class="service-icon">📝</text>
  203. <text class="service-label">记账打卡</text>
  204. </view>
  205. <view class="service-item" @click="goToInsurance">
  206. <text class="service-icon">🛡️</text>
  207. <text class="service-label">保单管理</text>
  208. </view>
  209. <view class="service-item" @click="goToCreator">
  210. <text class="service-icon">🎨</text>
  211. <text class="service-label">创客中心</text>
  212. </view>
  213. <view class="service-item" @click="goToBadges">
  214. <text class="service-icon">🏅</text>
  215. <text class="service-label">成就系统</text>
  216. </view>
  217. <view class="service-item" @click="goToGrowthReport">
  218. <text class="service-icon">📈</text>
  219. <text class="service-label">成长报告</text>
  220. </view>
  221. </view>
  222. </view>
  223. <!-- 商品推荐 -->
  224. <DimensionProductList
  225. v-if="isLoggedIn"
  226. dimensionCode="wealth"
  227. :familyId="activeChildId"
  228. title="为你推荐" />
  229. <!-- 底部菜单(精简) -->
  230. <view class="menu-list">
  231. <view class="menu-item" v-if="role === 'parent'" @click="goToProfile">
  232. <text>⚙️ 个人设置</text>
  233. <text class="arrow">›</text>
  234. </view>
  235. <view class="menu-item" @click="goToPointsLogs">
  236. <text>📊 积分记录</text>
  237. <text class="arrow">›</text>
  238. </view>
  239. <view class="menu-item" @click="goToPromotion">
  240. <text>📣 推广中心</text>
  241. <text class="arrow">›</text>
  242. </view>
  243. </view>
  244. </template>
  245. </view>
  246. </template>
  247. <script>
  248. import PageBanner from '../../components/PageBanner.vue'
  249. import { getWealthDetail, verifyPassword, getChildren } from '../../utils/api.js'
  250. export default {
  251. components: { PageBanner },
  252. data() {
  253. return {
  254. role: 'parent',
  255. isSwitchedChild: false,
  256. // 五维评分
  257. bodyScore: 0,
  258. mindScore: 0,
  259. wisdomScore: 0,
  260. actionScore: 0,
  261. wealthScore: 0,
  262. // 身克富
  263. bodyWealthStatus: 'normal',
  264. bodyWealthMessage: '',
  265. // 行克身
  266. actionBodyStatus: 'normal',
  267. actionBodyMessage: '',
  268. // 富克心
  269. wealthHeartStatus: 'normal',
  270. wealthHeartMessage: '',
  271. // 心克智
  272. mindWisdomStatus: 'normal',
  273. mindWisdomMessage: '',
  274. // 智克行
  275. wisdomActionStatus: 'normal',
  276. wisdomActionMessage: '',
  277. // 心的子维度(仅孩子有真实数据)
  278. heartEmotionStable: null,
  279. heartUnderstanding: null,
  280. heartLegacy: null,
  281. // 子维度 - parent
  282. wealthIncome: null,
  283. wealthAchievement: null,
  284. wealthNetwork: null,
  285. // 子维度 - child
  286. wealthEducation: null,
  287. wealthSocial: null,
  288. wealthPoints: null,
  289. children: []
  290. }
  291. },
  292. computed: {
  293. isLoggedIn() {
  294. return !!uni.getStorageSync('token')
  295. }
  296. },
  297. onShow() {
  298. if (!uni.getStorageSync('token')) return
  299. var currentRole = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || 'parent'
  300. if (currentRole === 'teacher') {
  301. uni.redirectTo({ url: '/pages/teacher/teacher-profile' })
  302. return
  303. }
  304. this.role = currentRole
  305. this.isSwitchedChild = uni.getStorageSync('isSwitchedChild') || false
  306. this.loadChildren()
  307. this.loadWealthDetail()
  308. },
  309. methods: {
  310. goLogin() {
  311. uni.navigateTo({ url: '/pages/login/login' })
  312. },
  313. async loadChildren() {
  314. try {
  315. var res = await getChildren()
  316. this.children = res.data || []
  317. } catch (e) {
  318. console.error('获取孩子列表失败', e)
  319. }
  320. },
  321. async loadWealthDetail() {
  322. var memberId = null
  323. var memberType = this.role
  324. if (this.role === 'child') {
  325. memberId = uni.getStorageSync('currentChildId')
  326. if (!memberId && this.children.length > 0) {
  327. memberId = this.children[0].id
  328. }
  329. } else {
  330. memberId = uni.getStorageSync('userId')
  331. }
  332. if (!memberId) return
  333. try {
  334. var res = await getWealthDetail(memberId, memberType)
  335. if (res && res.data) {
  336. var d = res.data
  337. this.bodyScore = d.bodyScore || 0
  338. this.mindScore = d.mindScore || 0
  339. this.wisdomScore = d.wisdomScore || 0
  340. this.actionScore = d.actionScore || 0
  341. this.wealthScore = d.wealthScore || 0
  342. this.bodyWealthStatus = d.bodyWealthStatus || 'normal'
  343. this.bodyWealthMessage = d.bodyWealthMessage || ''
  344. this.actionBodyStatus = d.actionBodyStatus || 'normal'
  345. this.actionBodyMessage = d.actionBodyMessage || ''
  346. this.wealthHeartStatus = d.wealthHeartStatus || 'normal'
  347. this.wealthHeartMessage = d.wealthHeartMessage || ''
  348. this.mindWisdomStatus = d.mindWisdomStatus || 'normal'
  349. this.mindWisdomMessage = d.mindWisdomMessage || ''
  350. this.wisdomActionStatus = d.wisdomActionStatus || 'normal'
  351. this.wisdomActionMessage = d.wisdomActionMessage || ''
  352. if (memberType === 'parent') {
  353. this.wealthIncome = d.wealthIncome
  354. this.wealthAchievement = d.wealthAchievement
  355. this.wealthNetwork = d.wealthNetwork
  356. } else {
  357. this.wealthEducation = d.wealthEducation
  358. this.wealthSocial = d.wealthSocial
  359. this.wealthPoints = d.wealthPoints
  360. this.heartEmotionStable = d.heartEmotionStable
  361. this.heartUnderstanding = d.heartUnderstanding
  362. this.heartLegacy = d.heartLegacy
  363. }
  364. }
  365. } catch (e) {
  366. console.error('获取富维度详情失败', e)
  367. }
  368. },
  369. exitSwitch() {
  370. if (!this.isSwitchedChild) return
  371. uni.showModal({
  372. title: '退出切换',
  373. content: '请输入家长密码以确认退出',
  374. editable: true,
  375. success: async (res) => {
  376. if (res.confirm && res.content) {
  377. try {
  378. var verifyResult = await verifyPassword(res.content)
  379. if (verifyResult.code === 200) {
  380. this.$store.commit('switchBackToParent')
  381. this.isSwitchedChild = false
  382. this.role = 'parent'
  383. uni.showToast({ title: '已退出切换', icon: 'success' })
  384. uni.reLaunch({ url: '/pages/index/index' })
  385. } else {
  386. uni.showToast({ title: '密码错误', icon: 'none' })
  387. }
  388. } catch (e) {
  389. uni.showToast({ title: '验证失败', icon: 'none' })
  390. }
  391. }
  392. }
  393. })
  394. },
  395. goToCheckin() {
  396. uni.navigateTo({ url: '/pages/wealth/checkin' })
  397. },
  398. goToInsurance() {
  399. uni.showToast({ title: '即将上线', icon: 'none' })
  400. },
  401. goToCreator() {
  402. uni.showToast({ title: '即将上线', icon: 'none' })
  403. },
  404. goToBadges() {
  405. uni.showToast({ title: '即将上线', icon: 'none' })
  406. },
  407. goToGrowthReport() {
  408. uni.showToast({ title: '即将上线', icon: 'none' })
  409. },
  410. goToPointsLogs() {
  411. uni.navigateTo({ url: '/pages/points/points' })
  412. },
  413. goToPromotion() {
  414. uni.navigateTo({ url: '/pages/promotion/index' })
  415. },
  416. goToProfile() {
  417. uni.navigateTo({ url: '/pages/profile/index' })
  418. },
  419. goToIncome() {
  420. uni.showToast({ title: '即将上线', icon: 'none' })
  421. },
  422. goToAchievements() {
  423. uni.showToast({ title: '即将上线', icon: 'none' })
  424. },
  425. goToNetwork() {
  426. uni.showToast({ title: '即将上线', icon: 'none' })
  427. }
  428. }
  429. }
  430. </script>
  431. <style scoped>
  432. .container {
  433. min-height: 100vh;
  434. background: #f5f7fa;
  435. padding-bottom: 120rpx;
  436. }
  437. .section {
  438. margin: 20rpx 30rpx;
  439. }
  440. .section-header {
  441. display: flex;
  442. justify-content: space-between;
  443. align-items: center;
  444. margin-bottom: 20rpx;
  445. }
  446. .section-title {
  447. font-size: 30rpx;
  448. font-weight: bold;
  449. color: #333;
  450. }
  451. /* 身克富状态条 */
  452. .body-wealth-bar {
  453. background: #fff;
  454. border-radius: 20rpx;
  455. padding: 30rpx;
  456. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  457. }
  458. .body-wealth-bar.status-overdraw {
  459. background: #FFFBEB;
  460. border: 1rpx solid #F59E0B;
  461. }
  462. .body-wealth-bar.status-penalty {
  463. background: #FEF2F2;
  464. border: 1rpx solid #EF4444;
  465. }
  466. .bar-row {
  467. display: flex;
  468. align-items: center;
  469. margin-bottom: 16rpx;
  470. }
  471. .bar-row:last-of-type {
  472. margin-bottom: 0;
  473. }
  474. .bar-label {
  475. font-size: 26rpx;
  476. color: #666;
  477. width: 140rpx;
  478. }
  479. .bar-track {
  480. flex: 1;
  481. height: 16rpx;
  482. background: #f0f0f0;
  483. border-radius: 8rpx;
  484. overflow: hidden;
  485. margin: 0 16rpx;
  486. }
  487. .bar-fill {
  488. height: 100%;
  489. border-radius: 8rpx;
  490. transition: width 0.3s;
  491. }
  492. .bar-fill.body-bar {
  493. background: linear-gradient(90deg, #FF8C42, #F97316);
  494. }
  495. .bar-fill.wealth-bar {
  496. background: linear-gradient(90deg, #F59E0B, #FBBF24);
  497. }
  498. .bar-fill.action-bar {
  499. background: linear-gradient(90deg, #10B981, #34D399);
  500. }
  501. .bar-fill.mind-bar {
  502. background: linear-gradient(90deg, #FF6B9D, #FF8FAE);
  503. }
  504. .bar-fill.wisdom-bar {
  505. background: linear-gradient(90deg, #6366F1, #818CF8);
  506. }
  507. .bar-value {
  508. font-size: 24rpx;
  509. color: #999;
  510. width: 80rpx;
  511. text-align: right;
  512. }
  513. .bw-message {
  514. margin-top: 16rpx;
  515. font-size: 24rpx;
  516. color: #666;
  517. padding: 12rpx 16rpx;
  518. background: rgba(0,0,0,0.03);
  519. border-radius: 8rpx;
  520. }
  521. .status-overdraw .bw-message {
  522. color: #92400E;
  523. background: rgba(245,158,11,0.1);
  524. }
  525. .status-penalty .bw-message {
  526. color: #991B1B;
  527. background: rgba(239,68,68,0.1);
  528. }
  529. .body-wealth-bar.status-cautious {
  530. background: #FFFBEB;
  531. border: 1rpx solid #F59E0B;
  532. }
  533. .body-wealth-bar.status-balanced {
  534. background: #ECFDF5;
  535. border: 1rpx solid #10B981;
  536. }
  537. .body-wealth-bar.status-eruption {
  538. background: #FEF2F2;
  539. border: 1rpx solid #EF4444;
  540. }
  541. .body-wealth-bar.status-judgmental {
  542. background: #FFFBEB;
  543. border: 1rpx solid #F59E0B;
  544. }
  545. .body-wealth-bar.status-materialized {
  546. background: #F0FDF4;
  547. border: 1rpx solid #22C55E;
  548. }
  549. .body-wealth-bar.status-nourished {
  550. background: #ECFDF5;
  551. border: 1rpx solid #10B981;
  552. }
  553. .body-wealth-bar.status-overprotect {
  554. background: #FFF1F2;
  555. border: 1rpx solid #FB7185;
  556. }
  557. .body-wealth-bar.status-cold_wise {
  558. background: #F5F3FF;
  559. border: 1rpx solid #8B5CF6;
  560. }
  561. .body-wealth-bar.status-blind {
  562. background: #F5F3FF;
  563. border: 1rpx solid #7C3AED;
  564. }
  565. .body-wealth-bar.status-paralysis {
  566. background: #F3F4F6;
  567. border: 1rpx solid #9CA3AF;
  568. }
  569. .status-cautious .bw-message {
  570. color: #92400E;
  571. background: rgba(245,158,11,0.06);
  572. }
  573. .status-balanced .bw-message {
  574. color: #065F46;
  575. background: rgba(16,185,129,0.06);
  576. }
  577. .status-eruption .bw-message {
  578. color: #991B1B;
  579. background: rgba(239,68,68,0.06);
  580. }
  581. .status-judgmental .bw-message {
  582. color: #92400E;
  583. background: rgba(245,158,11,0.06);
  584. }
  585. .status-materialized .bw-message {
  586. color: #166534;
  587. background: rgba(34,197,94,0.06);
  588. }
  589. .status-nourished .bw-message {
  590. color: #065F46;
  591. background: rgba(16,185,129,0.06);
  592. }
  593. .status-overprotect .bw-message {
  594. color: #9F1239;
  595. background: rgba(251,113,133,0.06);
  596. }
  597. .status-cold_wise .bw-message {
  598. color: #5B21B6;
  599. background: rgba(139,92,246,0.06);
  600. }
  601. .status-blind .bw-message {
  602. color: #5B21B6;
  603. background: rgba(124,58,237,0.06);
  604. }
  605. .status-paralysis .bw-message {
  606. color: #374151;
  607. background: rgba(156,163,175,0.06);
  608. }
  609. /* 三子维度卡片 */
  610. .sub-dim-grid {
  611. display: flex;
  612. }
  613. .sub-dim-card {
  614. flex: 1;
  615. margin-right: 16rpx;
  616. background: #fff;
  617. border-radius: 16rpx;
  618. padding: 24rpx 16rpx;
  619. display: flex;
  620. flex-direction: column;
  621. align-items: center;
  622. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  623. }
  624. .sub-dim-card:last-child {
  625. margin-right: 0;
  626. }
  627. .sub-dim-score {
  628. font-size: 48rpx;
  629. font-weight: bold;
  630. color: #F59E0B;
  631. }
  632. .heart-sub-dim .sub-dim-score {
  633. color: #FF6B9D;
  634. }
  635. .sub-dim-label {
  636. font-size: 24rpx;
  637. color: #333;
  638. margin-top: 8rpx;
  639. font-weight: 500;
  640. }
  641. .sub-dim-desc {
  642. font-size: 20rpx;
  643. color: #999;
  644. margin-top: 4rpx;
  645. }
  646. /* 增值服务 */
  647. .service-grid {
  648. display: flex;
  649. flex-wrap: wrap;
  650. background: #fff;
  651. border-radius: 20rpx;
  652. padding: 24rpx 16rpx;
  653. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  654. }
  655. .service-item {
  656. width: 20%;
  657. display: flex;
  658. flex-direction: column;
  659. align-items: center;
  660. padding: 16rpx 0;
  661. }
  662. .service-icon {
  663. font-size: 48rpx;
  664. margin-bottom: 8rpx;
  665. }
  666. .service-label {
  667. font-size: 22rpx;
  668. color: #666;
  669. }
  670. /* 底部菜单 */
  671. .menu-list {
  672. margin: 30rpx 30rpx 0;
  673. background: #fff;
  674. border-radius: 16rpx;
  675. }
  676. .menu-item {
  677. padding: 30rpx;
  678. border-bottom: 1rpx solid #f0f0f0;
  679. display: flex;
  680. justify-content: space-between;
  681. font-size: 28rpx;
  682. }
  683. .menu-item:last-child {
  684. border-bottom: none;
  685. }
  686. .arrow {
  687. color: #ccc;
  688. font-size: 32rpx;
  689. }
  690. /* 未登录 */
  691. .login-prompt {
  692. display: flex;
  693. flex-direction: column;
  694. align-items: center;
  695. justify-content: center;
  696. min-height: 80vh;
  697. padding: 60rpx;
  698. }
  699. .prompt-icon {
  700. font-size: 120rpx;
  701. margin-bottom: 30rpx;
  702. width: 160rpx;
  703. height: 160rpx;
  704. line-height: 160rpx;
  705. text-align: center;
  706. background: #f5f5f5;
  707. border-radius: 50%;
  708. }
  709. .prompt-title {
  710. font-size: 36rpx;
  711. font-weight: bold;
  712. color: #333;
  713. margin-bottom: 16rpx;
  714. }
  715. .prompt-desc {
  716. font-size: 26rpx;
  717. color: #999;
  718. text-align: center;
  719. margin-bottom: 40rpx;
  720. }
  721. .login-prompt .login-btn {
  722. width: 60%;
  723. height: 80rpx;
  724. line-height: 80rpx;
  725. background: linear-gradient(135deg, #5B9BD5, #3A7CC4);
  726. color: #fff;
  727. font-size: 30rpx;
  728. font-weight: bold;
  729. border-radius: 40rpx;
  730. text-align: center;
  731. border: none;
  732. }
  733. .login-prompt .login-btn::after {
  734. border: none;
  735. }
  736. /* 退出切换 */
  737. .exit-switch {
  738. margin: 20rpx 30rpx 0;
  739. padding: 16rpx 24rpx;
  740. background: #FEF3C7;
  741. border-radius: 12rpx;
  742. text-align: center;
  743. font-size: 26rpx;
  744. color: #92400E;
  745. }
  746. </style>