index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  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" @click="childSubDimClick('education')">
  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" @click="childSubDimClick('social')">
  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" @click="childSubDimClick('points')">
  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" @click="childSubDimClick('emotion')">
  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" @click="childSubDimClick('understanding')">
  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" @click="childSubDimClick('legacy')">
  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, getChildren, switchBackVerify } 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 switchBackVerify(res.content)
  379. if (verifyResult && verifyResult.code === 200 && verifyResult.data === true) {
  380. uni.removeStorageSync('isSwitchedChild')
  381. uni.removeStorageSync('currentChildId')
  382. this.isSwitchedChild = false
  383. this.role = 'parent'
  384. if (this.$store && this.$store.commit) {
  385. this.$store.commit('switchBackToParent')
  386. }
  387. uni.showToast({ title: '已退出切换', icon: 'success' })
  388. setTimeout(function() {
  389. uni.reLaunch({ url: '/pages/index/index' })
  390. }, 1000)
  391. } else {
  392. uni.showToast({ title: '密码错误', icon: 'none' })
  393. }
  394. } catch (e) {
  395. uni.showToast({ title: '验证失败', icon: 'none' })
  396. }
  397. }
  398. }
  399. })
  400. },
  401. goToCheckin() {
  402. uni.navigateTo({ url: '/pages/wealth-sub/checkin' })
  403. },
  404. goToInsurance() {
  405. uni.navigateTo({ url: '/pages/wealth-sub/insurance-list' })
  406. },
  407. goToCreator() {
  408. uni.navigateTo({ url: '/pages/promotion/index' })
  409. },
  410. goToBadges() {
  411. uni.navigateTo({ url: '/pages/rewards/badge' })
  412. },
  413. goToGrowthReport() {
  414. uni.navigateTo({ url: '/pages/growth/index' })
  415. },
  416. goToPointsLogs() {
  417. uni.navigateTo({ url: '/pages/points/points' })
  418. },
  419. goToPromotion() {
  420. uni.navigateTo({ url: '/pages/promotion/index' })
  421. },
  422. goToProfile() {
  423. uni.navigateTo({ url: '/pages/profile/index' })
  424. },
  425. goToIncome() {
  426. uni.navigateTo({ url: '/pages/promotion/commission' })
  427. },
  428. goToAchievements() {
  429. uni.navigateTo({ url: '/pages/rewards/badge' })
  430. },
  431. goToNetwork() {
  432. uni.navigateTo({ url: '/pages/promotion/team' })
  433. },
  434. childSubDimClick(key) {
  435. var routes = {
  436. education: '/pages/assessment/results',
  437. social: '/pages/activity/index',
  438. points: '/pages/points/mall',
  439. emotion: '/pages/mind-detail/emotion-report',
  440. understanding: '/pages/mind-detail/emotion-trend',
  441. legacy: '/pages/wishes/index'
  442. }
  443. var url = routes[key]
  444. if (url) {
  445. uni.navigateTo({ url: url })
  446. }
  447. }
  448. }
  449. }
  450. </script>
  451. <style scoped>
  452. .container {
  453. min-height: 100vh;
  454. background: #f5f7fa;
  455. padding-bottom: 120rpx;
  456. }
  457. .section {
  458. margin: 20rpx 30rpx;
  459. }
  460. .section-header {
  461. display: flex;
  462. justify-content: space-between;
  463. align-items: center;
  464. margin-bottom: 20rpx;
  465. }
  466. .section-title {
  467. font-size: 30rpx;
  468. font-weight: bold;
  469. color: #333;
  470. }
  471. /* 身克富状态条 */
  472. .body-wealth-bar {
  473. background: #fff;
  474. border-radius: 20rpx;
  475. padding: 30rpx;
  476. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  477. }
  478. .body-wealth-bar.status-overdraw {
  479. background: #FFFBEB;
  480. border: 1rpx solid #F59E0B;
  481. }
  482. .body-wealth-bar.status-penalty {
  483. background: #FEF2F2;
  484. border: 1rpx solid #EF4444;
  485. }
  486. .bar-row {
  487. display: flex;
  488. align-items: center;
  489. margin-bottom: 16rpx;
  490. }
  491. .bar-row:last-of-type {
  492. margin-bottom: 0;
  493. }
  494. .bar-label {
  495. font-size: 26rpx;
  496. color: #666;
  497. width: 140rpx;
  498. }
  499. .bar-track {
  500. flex: 1;
  501. height: 16rpx;
  502. background: #f0f0f0;
  503. border-radius: 8rpx;
  504. overflow: hidden;
  505. margin: 0 16rpx;
  506. }
  507. .bar-fill {
  508. height: 100%;
  509. border-radius: 8rpx;
  510. transition: width 0.3s;
  511. }
  512. .bar-fill.body-bar {
  513. background: linear-gradient(90deg, #FF8C42, #F97316);
  514. }
  515. .bar-fill.wealth-bar {
  516. background: linear-gradient(90deg, #F59E0B, #FBBF24);
  517. }
  518. .bar-fill.action-bar {
  519. background: linear-gradient(90deg, #10B981, #34D399);
  520. }
  521. .bar-fill.mind-bar {
  522. background: linear-gradient(90deg, #FF6B9D, #FF8FAE);
  523. }
  524. .bar-fill.wisdom-bar {
  525. background: linear-gradient(90deg, #6366F1, #818CF8);
  526. }
  527. .bar-value {
  528. font-size: 24rpx;
  529. color: #999;
  530. width: 80rpx;
  531. text-align: right;
  532. }
  533. .bw-message {
  534. margin-top: 16rpx;
  535. font-size: 24rpx;
  536. color: #666;
  537. padding: 12rpx 16rpx;
  538. background: rgba(0,0,0,0.03);
  539. border-radius: 8rpx;
  540. }
  541. .status-overdraw .bw-message {
  542. color: #92400E;
  543. background: rgba(245,158,11,0.1);
  544. }
  545. .status-penalty .bw-message {
  546. color: #991B1B;
  547. background: rgba(239,68,68,0.1);
  548. }
  549. .body-wealth-bar.status-cautious {
  550. background: #FFFBEB;
  551. border: 1rpx solid #F59E0B;
  552. }
  553. .body-wealth-bar.status-balanced {
  554. background: #ECFDF5;
  555. border: 1rpx solid #10B981;
  556. }
  557. .body-wealth-bar.status-eruption {
  558. background: #FEF2F2;
  559. border: 1rpx solid #EF4444;
  560. }
  561. .body-wealth-bar.status-judgmental {
  562. background: #FFFBEB;
  563. border: 1rpx solid #F59E0B;
  564. }
  565. .body-wealth-bar.status-materialized {
  566. background: #F0FDF4;
  567. border: 1rpx solid #22C55E;
  568. }
  569. .body-wealth-bar.status-nourished {
  570. background: #ECFDF5;
  571. border: 1rpx solid #10B981;
  572. }
  573. .body-wealth-bar.status-overprotect {
  574. background: #FFF1F2;
  575. border: 1rpx solid #FB7185;
  576. }
  577. .body-wealth-bar.status-cold_wise {
  578. background: #F5F3FF;
  579. border: 1rpx solid #8B5CF6;
  580. }
  581. .body-wealth-bar.status-blind {
  582. background: #F5F3FF;
  583. border: 1rpx solid #7C3AED;
  584. }
  585. .body-wealth-bar.status-paralysis {
  586. background: #F3F4F6;
  587. border: 1rpx solid #9CA3AF;
  588. }
  589. .status-cautious .bw-message {
  590. color: #92400E;
  591. background: rgba(245,158,11,0.06);
  592. }
  593. .status-balanced .bw-message {
  594. color: #065F46;
  595. background: rgba(16,185,129,0.06);
  596. }
  597. .status-eruption .bw-message {
  598. color: #991B1B;
  599. background: rgba(239,68,68,0.06);
  600. }
  601. .status-judgmental .bw-message {
  602. color: #92400E;
  603. background: rgba(245,158,11,0.06);
  604. }
  605. .status-materialized .bw-message {
  606. color: #166534;
  607. background: rgba(34,197,94,0.06);
  608. }
  609. .status-nourished .bw-message {
  610. color: #065F46;
  611. background: rgba(16,185,129,0.06);
  612. }
  613. .status-overprotect .bw-message {
  614. color: #9F1239;
  615. background: rgba(251,113,133,0.06);
  616. }
  617. .status-cold_wise .bw-message {
  618. color: #5B21B6;
  619. background: rgba(139,92,246,0.06);
  620. }
  621. .status-blind .bw-message {
  622. color: #5B21B6;
  623. background: rgba(124,58,237,0.06);
  624. }
  625. .status-paralysis .bw-message {
  626. color: #374151;
  627. background: rgba(156,163,175,0.06);
  628. }
  629. /* 三子维度卡片 */
  630. .sub-dim-grid {
  631. display: flex;
  632. }
  633. .sub-dim-card {
  634. flex: 1;
  635. margin-right: 16rpx;
  636. background: #fff;
  637. border-radius: 16rpx;
  638. padding: 24rpx 16rpx;
  639. display: flex;
  640. flex-direction: column;
  641. align-items: center;
  642. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  643. }
  644. .sub-dim-card:last-child {
  645. margin-right: 0;
  646. }
  647. .sub-dim-score {
  648. font-size: 48rpx;
  649. font-weight: bold;
  650. color: #F59E0B;
  651. }
  652. .heart-sub-dim .sub-dim-score {
  653. color: #FF6B9D;
  654. }
  655. .sub-dim-label {
  656. font-size: 24rpx;
  657. color: #333;
  658. margin-top: 8rpx;
  659. font-weight: 500;
  660. }
  661. .sub-dim-desc {
  662. font-size: 20rpx;
  663. color: #999;
  664. margin-top: 4rpx;
  665. }
  666. /* 增值服务 */
  667. .service-grid {
  668. display: flex;
  669. flex-wrap: wrap;
  670. background: #fff;
  671. border-radius: 20rpx;
  672. padding: 24rpx 16rpx;
  673. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  674. }
  675. .service-item {
  676. width: 20%;
  677. display: flex;
  678. flex-direction: column;
  679. align-items: center;
  680. padding: 16rpx 0;
  681. }
  682. .service-icon {
  683. font-size: 48rpx;
  684. margin-bottom: 8rpx;
  685. }
  686. .service-label {
  687. font-size: 22rpx;
  688. color: #666;
  689. }
  690. /* 底部菜单 */
  691. .menu-list {
  692. margin: 30rpx 30rpx 0;
  693. background: #fff;
  694. border-radius: 16rpx;
  695. }
  696. .menu-item {
  697. padding: 30rpx;
  698. border-bottom: 1rpx solid #f0f0f0;
  699. display: flex;
  700. justify-content: space-between;
  701. font-size: 28rpx;
  702. }
  703. .menu-item:last-child {
  704. border-bottom: none;
  705. }
  706. .arrow {
  707. color: #ccc;
  708. font-size: 32rpx;
  709. }
  710. /* 未登录 */
  711. .login-prompt {
  712. display: flex;
  713. flex-direction: column;
  714. align-items: center;
  715. justify-content: center;
  716. min-height: 80vh;
  717. padding: 60rpx;
  718. }
  719. .prompt-icon {
  720. font-size: 120rpx;
  721. margin-bottom: 30rpx;
  722. width: 160rpx;
  723. height: 160rpx;
  724. line-height: 160rpx;
  725. text-align: center;
  726. background: #f5f5f5;
  727. border-radius: 50%;
  728. }
  729. .prompt-title {
  730. font-size: 36rpx;
  731. font-weight: bold;
  732. color: #333;
  733. margin-bottom: 16rpx;
  734. }
  735. .prompt-desc {
  736. font-size: 26rpx;
  737. color: #999;
  738. text-align: center;
  739. margin-bottom: 40rpx;
  740. }
  741. .login-prompt .login-btn {
  742. width: 60%;
  743. height: 80rpx;
  744. line-height: 80rpx;
  745. background: linear-gradient(135deg, #5B9BD5, #3A7CC4);
  746. color: #fff;
  747. font-size: 30rpx;
  748. font-weight: bold;
  749. border-radius: 40rpx;
  750. text-align: center;
  751. border: none;
  752. }
  753. .login-prompt .login-btn::after {
  754. border: none;
  755. }
  756. /* 退出切换 */
  757. .exit-switch {
  758. margin: 20rpx 30rpx 0;
  759. padding: 16rpx 24rpx;
  760. background: #FEF3C7;
  761. border-radius: 12rpx;
  762. text-align: center;
  763. font-size: 26rpx;
  764. color: #92400E;
  765. }
  766. </style>