index.vue 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466
  1. <template>
  2. <view class="container">
  3. <!-- 通用登录浮层 -->
  4. <login-sheet ref="loginSheet" @success="onSheetLoginSuccess" />
  5. <!-- Tabbar 切换过渡页 -->
  6. <tab-transition v-if="showTabTransition" dimCode="mind" ref="tabTransition" @close="showTabTransition = false" />
  7. <!-- 品牌头部 -->
  8. <PageBanner theme="mind-wisdom"
  9. tagline="心智成长 · 智慧人生"
  10. quote="知己知彼,百战不殆" />
  11. <!-- 品牌定位语(登录前显示) -->
  12. <view class="brand-strap" v-if="!isLoggedIn">
  13. <text class="brand-strap-text">关注全家心理健康与情绪成长</text>
  14. </view>
  15. <!-- ===== 家庭天盘模块(今日运势 / 今日心情 / 吉位) ===== -->
  16. <FamilyTianpanCard
  17. v-if="isLoggedIn"
  18. :visible="isLoggedIn"
  19. :fortune="dailyFortuneSafe"
  20. :mood="todayMood"
  21. :dominantElement="dominantElementSafe"
  22. :weeklyTip="familyWeeklyInsight"
  23. :traditionalData="traditionalData" />
  24. <!-- 家庭成员选择条 -->
  25. <FamilyMemberStrip
  26. v-if="currentView === 'self' && isLoggedIn"
  27. :members="familyMembersVisible"
  28. :selectedMemberId="selectedMemberId"
  29. @select="onFamilyMemberSelect"
  30. @removed="loadFamilyMembersVisible" />
  31. <!-- 游客引导语 -->
  32. <view class="monthly-guidance" v-if="!isLoggedIn">
  33. <text class="guidance-icon">🔥</text>
  34. <text class="guidance-text">{{ monthlyGuidance }}</text>
  35. </view>
  36. <!-- 游客价值卡(统一组件:维度色 CTA + 价值预览) -->
  37. <DimensionVisitorCard
  38. v-if="!isLoggedIn"
  39. dimCode="mind"
  40. card-title="心维度 · 心理成长"
  41. :benefits="[
  42. '心理测评 EQ 报告与情绪画像',
  43. '情绪与肠胃关联解读',
  44. '家庭关系质量分析'
  45. ]"
  46. cta-text="登录查看心理画像"
  47. secondary-text="了解心理维度"
  48. secondary-url="/pages/mind-detail/dimension-intro" />
  49. <!-- 登录后:五维能量条 -->
  50. <FamilyEnergyBar
  51. v-if="isLoggedIn"
  52. dimensionCode="mind"
  53. :sandboxData="sandboxData" />
  54. <!-- 心理指标卡片 -->
  55. <view class="indicator-cards-section" v-if="isLoggedIn && mindIndicators.length > 0">
  56. <view class="section-header">
  57. <text class="section-title">🔥 心理指标</text>
  58. <text class="section-more" @click="goMindDetail">更多 ›</text>
  59. </view>
  60. <view class="indicator-cards">
  61. <view
  62. v-for="(ind, i) in mindIndicators"
  63. :key="ind.code"
  64. class="indicator-card"
  65. :class="{ 'no-data': !ind.value }"
  66. @click="goMindDetail()"
  67. >
  68. <view class="indicator-header">
  69. <text class="indicator-name">{{ ind.name }}</text>
  70. <text class="indicator-unit" v-if="ind.unit">{{ ind.unit }}</text>
  71. </view>
  72. <view class="indicator-body">
  73. <text class="indicator-value" v-if="ind.value || ind.numericValue !== null">{{ ind.value || formatNumeric(ind.numericValue) }}</text>
  74. <text class="indicator-placeholder" v-else>暂无数据</text>
  75. </view>
  76. <view class="indicator-footer">
  77. <text class="indicator-range" v-if="ind.refRange">参考: {{ ind.refRange }}</text>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 心理报告卡片(登录后可见) -->
  83. <view class="emi-card" v-if="isLoggedIn && emiData">
  84. <view class="emi-header">
  85. <text class="emi-title">心理测评报告</text>
  86. <view class="emi-overall-wrap">
  87. <text class="emi-overall-label">综合EQ分</text>
  88. <text class="emi-overall-value">{{ emiData.overallScore || 0 }}</text>
  89. <text :class="['emi-overall-level', 'level-' + getScoreLevel(emiData.overallScore || 0)]">
  90. {{ getScoreLevelText(emiData.overallScore || 0) }}
  91. </text>
  92. </view>
  93. </view>
  94. <view class="emi-dimensions">
  95. <view class="emi-dimension" v-for="dim in emiDimensions" :key="dim.key">
  96. <view class="emi-dim-header">
  97. <text class="emi-dim-label">{{ dim.label }}</text>
  98. <view class="emi-dim-values">
  99. <text class="emi-dim-score">{{ emiData[dim.key] || 0 }}</text>
  100. <text :class="['emi-dim-level', 'level-' + getScoreLevel(emiData[dim.key] || 0)]">
  101. {{ getScoreLevelText(emiData[dim.key] || 0) }}
  102. </text>
  103. </view>
  104. </view>
  105. <view class="emi-dim-bar">
  106. <view class="emi-dim-bar-fill" :style="{ width: (emiData[dim.key] || 0) + '%', background: dim.color }"></view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="emi-footer" @click="goEmotionReport">
  111. <text class="emi-footer-text">查看详情</text>
  112. <text class="emi-footer-icon">&#x2192;</text>
  113. </view>
  114. </view>
  115. <!-- 心维度画像 - 总体说明 -->
  116. <view class="dimension-portrait-section" v-if="isLoggedIn && mindPortrait">
  117. <view class="section-header">
  118. <text class="section-title">🧭 心维度画像</text>
  119. <text class="portrait-tier">{{ mindPortrait.tierLabel }}</text>
  120. </view>
  121. <view class="portrait-summary">
  122. <text class="portrait-desc">{{ mindPortrait.summary }}</text>
  123. </view>
  124. <view class="portrait-dimensions">
  125. <view class="portrait-dim-item" v-for="dim in mindPortrait.dims" :key="dim.code">
  126. <view class="portrait-dim-header">
  127. <view class="portrait-dim-icon" :style="{ background: dim.color }">{{ dim.icon }}</view>
  128. <text class="portrait-dim-name">{{ dim.name }}</text>
  129. <text class="portrait-dim-score">{{ dim.score }}</text>
  130. </view>
  131. <view class="portrait-dim-bar-track">
  132. <view class="portrait-dim-bar-fill" :style="{ width: dim.score + '%', background: dim.color }"></view>
  133. </view>
  134. <text class="portrait-dim-desc">{{ dim.desc }}</text>
  135. </view>
  136. </view>
  137. <view class="portrait-tip" v-if="mindPortrait.tip">
  138. <text class="portrait-tip-text">💡 {{ mindPortrait.tip }}</text>
  139. </view>
  140. </view>
  141. <!-- 肠脑轴情绪卡片 -->
  142. <view class="section" v-if="gutIndicators && gutIndicators.length > 0">
  143. <view class="section-header">
  144. <text class="section-title">🌱 情绪与肠胃</text>
  145. </view>
  146. <view class="gut-insight-text" v-if="gutInsight">
  147. <text>{{ gutInsight }}</text>
  148. </view>
  149. <view class="gut-indicator-list">
  150. <view class="gut-indicator-item" v-for="ind in gutIndicators" :key="ind.id">
  151. <view class="gut-indicator-left">
  152. <text class="gut-indicator-name">{{ ind.indicatorName || ind.name }}</text>
  153. <text class="gut-indicator-impact" v-if="emotionImpactLabel(ind.indicatorName || ind.name)">影响{{ emotionImpactLabel(ind.indicatorName || ind.name) }}</text>
  154. </view>
  155. <view class="gut-indicator-bar-track">
  156. <view class="gut-indicator-bar-fill" :style="{ width: indicatorBarWidth(ind), background: indicatorColor(ind.status) }"></view>
  157. </view>
  158. <text class="gut-indicator-value">{{ formatIndicatorValue(ind) }}{{ ind.unit || '%' }}</text>
  159. <text :class="['gut-indicator-status', 'status-' + (ind.status || 'normal')]">{{ statusLabel(ind.status) }}</text>
  160. </view>
  161. </view>
  162. </view>
  163. <!-- ===== Phase 1.2: 心理告警横幅 ===== -->
  164. <PsychCrisisBanner v-if="isLoggedIn" :memberId="currentChildId" source="screening" />
  165. <!-- ===== 底部:功能入口 Grid(通用,两行) ===== -->
  166. <view class="func-section" v-if="sectionVisible('func_entries')">
  167. <view class="func-grid">
  168. <view class="func-row">
  169. <view class="func-item" v-for="item in funcListRow1" :key="item.label" @click="onFuncClick(item)">
  170. <view class="func-icon-wrap">
  171. <text class="func-icon">{{ item.icon }}</text>
  172. </view>
  173. <text class="func-label">{{ item.label }}</text>
  174. </view>
  175. </view>
  176. <view class="func-row">
  177. <view class="func-item" v-for="item in funcListRow2" :key="item.label" @click="onFuncClick(item)">
  178. <view class="func-icon-wrap">
  179. <text class="func-icon">{{ item.icon }}</text>
  180. </view>
  181. <text class="func-label">{{ item.label }}</text>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. <!-- 心13维雷达图(分组展示,登录后且选中成员时) -->
  187. <view class="section" v-if="isLoggedIn && currentMemberEnergies">
  188. <view class="section-header">
  189. <text class="section-title">🧠 情绪与性格</text>
  190. </view>
  191. <view class="radar-group" v-for="(group, gIdx) in mindRadarGroups" :key="gIdx">
  192. <text class="radar-group-label">{{ group.label }}</text>
  193. <RadarChart
  194. :dimensions="group.dimensions"
  195. :scores="getMindGroupScores(group)"
  196. :avg-scores="getMindGroupFamilyScores(group)"
  197. :population-scores="getGroupPopulationScores(group)"
  198. fillColor="#FF6B9D"
  199. gridColor="#FCE7F3"
  200. labelColor="#9D174D"
  201. :width="540"
  202. :height="540" />
  203. </view>
  204. </view>
  205. <!-- 心维度介绍卡片(登录后显示) -->
  206. <DimensionIntroCard dimCode="mind" v-if="isLoggedIn" learn-more-url="/pages/mind-detail/dimension-intro" />
  207. <!-- 底部占位 -->
  208. <view class="bottom-spacer"></view>
  209. <FloatingAvatar />
  210. </view>
  211. </template>
  212. <script>
  213. import TabTransition from '../../components/tab-transition.vue'
  214. import PageBanner from '../../components/PageBanner.vue'
  215. import DimensionIntroCard from '../../components/DimensionIntroCard.vue'
  216. import DimensionVisitorCard from '../../components/DimensionVisitorCard.vue'
  217. import RadarChart from '../../components/RadarChart.vue'
  218. import FamilyEnergyBar from '../../components/FamilyEnergyBar.vue'
  219. import PsychCrisisBanner from '@/pages/mind-detail/components/PsychCrisisBanner.vue'
  220. import FloatingAvatar from '../../components/AIFloatingAvatar.vue'
  221. import FamilyTianpanCard from '@/pages/mind-detail/components/FamilyTianpanCard.vue'
  222. import FamilyMemberStrip from '../../components/FamilyMemberStrip.vue'
  223. import { getVisibleSections, getEmiReport, getFamilyEnergySandbox, getEnergySandbox, getChildren, getFamilyMemberList, getEnergyOverview, getContactList, getHealthAlerts, getMilestones, getDanReportByChild, getFamilyFortune, getLatestIndicators, getRadarData } from '../../utils/api.js'
  224. import nav from '../../utils/nav.js'
  225. import config from '../../config.js'
  226. import { parseDate } from '../../utils/format.js'
  227. export default {
  228. components: { TabTransition, PageBanner, RadarChart, FamilyEnergyBar, PsychCrisisBanner, FloatingAvatar, FamilyTianpanCard, FamilyMemberStrip, DimensionIntroCard, DimensionVisitorCard },
  229. data() {
  230. return {
  231. isLoggedIn: false,
  232. role: null,
  233. showTabTransition: true,
  234. currentChildId: null,
  235. selectedMemberId: null,
  236. visibleSections: [],
  237. familyMembersVisible: [],
  238. // 心理 Tab 数据
  239. emiData: null,
  240. emiLoading: true,
  241. emiDimensions: [
  242. { key: 'emotionStability', label: '情绪稳定性', color: '#FF6B35' }
  243. ],
  244. // 大五维度(用于雷达图)
  245. personalityDimensions: [
  246. { key: 'opennessScore', label: '开放性' },
  247. { key: 'conscientiousnessScore', label: '尽责性' },
  248. { key: 'extraversionScore', label: '外向性' },
  249. { key: 'agreeablenessScore', label: '宜人性' },
  250. { key: 'neuroticismScore', label: '神经质' }
  251. ],
  252. // 功能入口
  253. funcList: [
  254. { icon: '\u{1F4D6}', label: '阅读', needLogin: false, page: '/pages/article-center/index?dimension=mind' },
  255. { icon: '\u{1F4CA}', label: '测评报告', needLogin: true, page: '/pages/mind-detail/emotion-report' },
  256. { icon: '\u{1F4DD}', label: '成长记录', needLogin: true, page: '/pages/growth-main/index' },
  257. { icon: '\u{2728}', label: '情绪打卡', needLogin: true, page: '/pages/mind-detail/emotion-checkin' },
  258. { icon: '\u{1F4C8}', label: '情绪趋势', needLogin: true, page: '/pages/mind-detail/emotion-trend' },
  259. { icon: '\u{1F9E9}', label: '心理自评', needLogin: true, page: '/pages/mind-detail/screening' },
  260. { icon: '\u{1F3E0}', label: '家庭天盘', needLogin: true, page: '/pages/mind-detail/family-dashboard' },
  261. { icon: '\u{1F9D8}', label: '疏导工具', needLogin: true, page: '/pages/mind-detail/soothe-toolbox' },
  262. { icon: '\u{1F31F}', label: '先天画像', needLogin: true, page: '/pages/mind-detail/innate-portrait' }
  263. ],
  264. articles: [],
  265. // 肠脑轴数据
  266. gutIndicators: null,
  267. gutInsight: '',
  268. // 传统文化数据
  269. traditionalData: null,
  270. traditionalLoading: true,
  271. compatibilityData: null,
  272. wuxingConfig: {
  273. wood: { label: '木', color: '#10B981' },
  274. fire: { label: '火', color: '#FF6B9D' },
  275. earth: { label: '土', color: '#FF8C42' },
  276. metal: { label: '金', color: '#6366F1' },
  277. water: { label: '水', color: '#3B82F6' }
  278. },
  279. pillarLabels: { year: '年柱', month: '月柱', day: '日柱', hour: '时柱' },
  280. familyScore: 0,
  281. // 五维组件数据
  282. userName: '',
  283. children: [],
  284. mindSubDims: [],
  285. mindIndicators: [],
  286. sandboxData: null,
  287. currentView: 'self', // 'self' | 'family'
  288. contactList: [],
  289. healthAlerts: [],
  290. milestones: [],
  291. danReports: [],
  292. // 心13维雷达图分组配置
  293. mindRadarGroups: [
  294. {
  295. label: '大五人格',
  296. dimensions: [
  297. { key: 'bigFiveOpenness', label: '开放性' },
  298. { key: 'bigFiveConscientiousness', label: '尽责性' },
  299. { key: 'bigFiveExtraversion', label: '外向性' },
  300. { key: 'bigFiveAgreeableness', label: '宜人性' },
  301. { key: 'bigFiveNeuroticism', label: '神经质' }
  302. ]
  303. },
  304. {
  305. label: '情绪稳定性',
  306. dimensions: [
  307. { key: 'emotionStability', label: '情绪稳定性' }
  308. ]
  309. },
  310. {
  311. label: '自驱力',
  312. dimensions: [
  313. { key: 'driveAutonomy', label: '自主性' },
  314. { key: 'driveCompetence', label: '胜任感' },
  315. { key: 'driveRelatedness', label: '归属感' }
  316. ]
  317. },
  318. {
  319. label: '自我概念',
  320. dimensions: [
  321. { key: 'selfConceptOverall', label: '综合自我概念' }
  322. ]
  323. }
  324. ],
  325. // 家庭天盘 - 今日心情(占位数据)
  326. todayMood: {
  327. emoji: '\u{1F60A}',
  328. text: '平静',
  329. score: 65
  330. },
  331. // 家庭天盘 - 每日运势数据
  332. dailyFortuneData: null,
  333. // 心维度雷达图人群位置分数 (dimensionKey -> score)
  334. mindPopulationScores: {}
  335. }
  336. },
  337. computed: {
  338. /** 每月引导语 */
  339. monthlyGuidance: function() {
  340. var month = new Date().getMonth()
  341. var messages = [
  342. '一月:新年新起点,从情绪觉察开始',
  343. '二月:春节团聚,关注家人心理联结',
  344. '三月:春意盎然,适合情绪释放',
  345. '四月:清明时节,整理内心情绪',
  346. '五月:劳动之余,关注心理健康',
  347. '六月:中考高考季,减压情绪管理',
  348. '七月:暑期到来,培养情绪调节能力',
  349. '八月:夏末秋初,回顾情绪成长',
  350. '九月:开学季,关注家庭成员心理适应',
  351. '十月:国庆假期,增进亲子沟通',
  352. '十一月:秋冬交替,预防情绪低落',
  353. '十二月:年终总结,规划心理成长'
  354. ]
  355. return messages[month] || messages[0]
  356. },
  357. personalityScores: function() {
  358. if (!this.emiData) return []
  359. return [
  360. this.emiData.opennessScore || 0,
  361. this.emiData.conscientiousnessScore || 0,
  362. this.emiData.extraversionScore || 0,
  363. this.emiData.agreeablenessScore || 0,
  364. this.emiData.neuroticismScore || 0
  365. ]
  366. },
  367. emotionArticles: function() {
  368. if (!this.articles || this.articles.length === 0) return []
  369. var result = []
  370. for (var i = 0; i < this.articles.length; i++) {
  371. var a = this.articles[i]
  372. if (a.relatedDimensions && a.relatedDimensions.indexOf('mind') !== -1) {
  373. result.push(a)
  374. }
  375. }
  376. if (result.length === 0) return this.articles.slice(0, 5)
  377. return result.slice(0, 5)
  378. },
  379. wuxingData: function() {
  380. if (!this.traditionalData || !this.traditionalData.wuxingElements) return []
  381. var elements = this.traditionalData.wuxingElements
  382. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  383. var result = []
  384. for (var i = 0; i < keys.length; i++) {
  385. var k = keys[i]
  386. if (elements[k] !== undefined) {
  387. result.push({
  388. key: k,
  389. label: this.wuxingConfig[k].label,
  390. color: this.wuxingConfig[k].color,
  391. value: elements[k]
  392. })
  393. }
  394. }
  395. return result.sort(function(a, b) { return b.value - a.value })
  396. },
  397. currentDimensionCode: function() {
  398. return 'mind'
  399. },
  400. funcListRow1: function() {
  401. return this.funcList.slice(0, 4)
  402. },
  403. funcListRow2: function() {
  404. return this.funcList.slice(4)
  405. },
  406. // ===== 关键信息 - 家庭 =====
  407. familyWuxingLabel: function() {
  408. if (!this.compatibilityData || !this.compatibilityData.familyWuxing || !this.compatibilityData.familyWuxing.aggregatePercentages) return null
  409. var pcts = this.compatibilityData.familyWuxing.aggregatePercentages
  410. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  411. var maxKey = null
  412. var maxVal = -1
  413. for (var i = 0; i < keys.length; i++) {
  414. if (pcts[keys[i]] !== undefined && pcts[keys[i]] > maxVal) {
  415. maxVal = pcts[keys[i]]
  416. maxKey = keys[i]
  417. }
  418. }
  419. if (!maxKey) return null
  420. return { key: maxKey, label: this.wuxingConfig[maxKey].label, color: this.wuxingConfig[maxKey].color, value: maxVal }
  421. },
  422. familyMemberCount: function() {
  423. if (!this.compatibilityData || !this.compatibilityData.members) return 0
  424. return this.compatibilityData.members.length
  425. },
  426. familyWeeklyInsight: function() {
  427. if (!this.compatibilityData || !this.compatibilityData.weeklyInsight) return ''
  428. return this.compatibilityData.weeklyInsight
  429. },
  430. // ===== 关键信息 - 个人 =====
  431. dominantElement: function() {
  432. if (!this.traditionalData || !this.traditionalData.wuxingElements) return null
  433. var elements = this.traditionalData.wuxingElements
  434. var keys = ['wood', 'fire', 'earth', 'metal', 'water']
  435. var maxKey = null
  436. var maxVal = -1
  437. for (var i = 0; i < keys.length; i++) {
  438. if (elements[keys[i]] !== undefined && elements[keys[i]] > maxVal) {
  439. maxVal = elements[keys[i]]
  440. maxKey = keys[i]
  441. }
  442. }
  443. return maxKey
  444. },
  445. luckyColorInfo: function() {
  446. var colorMap = {
  447. wood: { name: '绿', hex: '#10B981' },
  448. fire: { name: '红', hex: '#FF6B9D' },
  449. earth: { name: '黄', hex: '#FF8C42' },
  450. metal: { name: '白', hex: '#6366F1' },
  451. water: { name: '蓝', hex: '#3B82F6' }
  452. }
  453. var elem = this.dominantElement
  454. if (!elem) return null
  455. return colorMap[elem] || null
  456. },
  457. luckyNumber: function() {
  458. if (this.traditionalData && this.traditionalData.lifeNumber) {
  459. return this.traditionalData.lifeNumber
  460. }
  461. var numMap = { wood: 3, fire: 9, earth: 5, metal: 7, water: 1 }
  462. var elem = this.dominantElement
  463. return elem ? numMap[elem] : null
  464. },
  465. fortuneSeed: function() {
  466. if (this.traditionalData && this.traditionalData.lifeNumber) {
  467. return String(this.traditionalData.lifeNumber)
  468. }
  469. return '0'
  470. },
  471. // WXML 不支持模板内 || {} 字面量,需在 computed 中预先做 fallback
  472. dailyFortuneSafe: function() {
  473. return this.dailyFortune || {}
  474. },
  475. // WXML 不支持模板内 || '' 字面量,需在 computed 中预先做 fallback
  476. dominantElementSafe: function() {
  477. return this.dominantElement || ''
  478. },
  479. dailyFortune: function() {
  480. // 优先使用后端接口数据
  481. if (this.dailyFortuneData) {
  482. var levels = ['大吉', '吉', '平', '凶', '大凶']
  483. return {
  484. level: this.dailyFortuneData.level,
  485. text: levels[this.dailyFortuneData.level],
  486. description: this.dailyFortuneData.description
  487. }
  488. }
  489. // 兼容模式:没有接口数据时使用原算法
  490. if (!this.dominantElement) return null
  491. var today = new Date()
  492. var dateStr = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate()
  493. var seedStr = dateStr + (this.fortuneSeed || '')
  494. var hash = 0
  495. for (var i = 0; i < seedStr.length; i++) {
  496. hash = ((hash << 5) - hash) + seedStr.charCodeAt(i)
  497. hash = hash & hash
  498. }
  499. var level = Math.abs(hash) % 5
  500. var levels = ['大吉', '吉', '平', '凶', '大凶']
  501. var descMap = {
  502. wood: ['大吉:木气旺盛,宜规划', '吉:行动力强', '平:静心养性', '凶:谨言慎行', '大凶:忌冲动'],
  503. fire: ['大吉:热情高涨', '吉:精力充沛', '平:适当休息', '凶:注意情绪', '大凶:静心冥想'],
  504. earth: ['大吉:稳重踏实', '吉:贵人运佳', '平:按部就班', '凶:注意肠胃', '大凶:不宜投资'],
  505. metal: ['大吉:决策力强', '吉:思维清晰', '平:保持专注', '凶:注意言辞', '大凶:不宜强求'],
  506. water: ['大吉:灵感丰富', '吉:人际和谐', '平:安静内省', '凶:情绪波动', '大凶:宜藏不宜放']
  507. }
  508. var descList = descMap[this.dominantElement] || descMap.wood
  509. return { level: level, text: levels[level], description: descList[level] }
  510. },
  511. /** 当前选中成员的能量数据(从 sandboxData.members 中按 selectedMemberId 查找) */
  512. currentMemberEnergies: function() {
  513. if (!this.sandboxData || !this.sandboxData.members) return null
  514. var members = this.sandboxData.members
  515. var targetId = this.selectedMemberId || this.currentChildId
  516. for (var i = 0; i < members.length; i++) {
  517. var m = members[i]
  518. if (m && (m.memberId === targetId)) return m
  519. }
  520. return members[0] || null
  521. },
  522. mindPortrait: function() {
  523. var self = this
  524. if (!this.isLoggedIn || !this.emiData) return null
  525. var e = this.emiData
  526. var dims = [
  527. { key: 'emotionStability', label: '情绪稳定性', color: '#FF6B9D', desc: '情绪识别与调控能力' },
  528. { key: 'opennessScore', label: '开放性', color: '#6366F1', desc: '对新事物的接受程度' },
  529. { key: 'conscientiousnessScore', label: '尽责性', color: '#F59E0B', desc: '做事有条理、自律程度' },
  530. { key: 'extraversionScore', label: '外向性', color: '#10B981', desc: '社交活跃与外向程度' },
  531. { key: 'agreeablenessScore', label: '宜人性', color: '#FF8C42', desc: '与人相处的和谐程度' },
  532. { key: 'neuroticismScore', label: '神经质', color: '#F97316', desc: '情绪波动程度(反向)' }
  533. ]
  534. var result = { overall: 0, tierLabel: '', summary: '', dims: [], tip: '' }
  535. var total = 0
  536. var count = 0
  537. var dimList = []
  538. for (var i = 0; i < dims.length; i++) {
  539. var key = dims[i].key
  540. var score = e[key] || 0
  541. if (isNaN(score)) score = 0
  542. score = Math.max(0, Math.min(100, Number(score)))
  543. total += score
  544. count++
  545. var matched = dims.find(function(d) { return d.key === key })
  546. dimList.push({
  547. code: key,
  548. name: matched ? matched.label : key,
  549. score: Math.round(score),
  550. color: matched ? matched.color : '#FF6B9D',
  551. desc: matched ? matched.desc : ''
  552. })
  553. }
  554. if (count === 0) return null
  555. result.overall = Math.round(total / count)
  556. result.dims = dimList
  557. var o = result.overall
  558. if (o >= 80) {
  559. result.tierLabel = '心灵智者'
  560. result.summary = '您的心理状态非常健康,情绪稳定、人格成熟且内心强大。'
  561. result.tip = '保持内心平衡,可分享经验帮助家人共同成长'
  562. } else if (o >= 60) {
  563. result.tierLabel = '心灵进取者'
  564. result.summary = '您的心理状态良好,具备较强的情绪调节能力和自我认知。'
  565. result.tip = '关注情绪波动,练习正念冥想,持续提升心理韧性'
  566. } else if (o >= 40) {
  567. result.tierLabel = '心灵探索者'
  568. result.summary = '您的心理状态正在建立基础,情绪管理有待加强。'
  569. result.tip = '从每日情绪打卡开始,逐步建立情绪觉察习惯'
  570. } else {
  571. result.tierLabel = '心灵关怀者'
  572. result.summary = '您可能正处于情绪波动期,需要更多关注与支持。'
  573. result.tip = '建议寻求专业心理帮助,或向家人朋友倾诉'
  574. }
  575. return result
  576. }
  577. },
  578. onShow() {
  579. this.showTabTransition = true
  580. var token = uni.getStorageSync('token')
  581. this.isLoggedIn = !!token
  582. if (this.isLoggedIn) {
  583. this.role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  584. // FIX: 从 Vuex store 读取 currentChildId,而非仅从 localStorage
  585. this.currentChildId = (this.$store.state && this.$store.state.currentChildId) || uni.getStorageSync('currentChildId') || null
  586. this.userName = uni.getStorageSync('nickname') || uni.getStorageSync('userName') || '家长'
  587. }
  588. this.loadSectionConfig()
  589. if (this.isLoggedIn) {
  590. this.loadChildren()
  591. this.loadFamilyMembersVisible()
  592. this.loadSandboxData()
  593. this.loadMindRadarPopulationData()
  594. this.loadEmiData()
  595. this.loadGutData()
  596. this.loadEnergyData()
  597. this.loadTraditionalCultureData()
  598. this.loadContacts()
  599. this.loadHealthAlerts()
  600. this.loadMilestones()
  601. this.loadDanReports()
  602. }
  603. // 游客也能浏览活动和商品
  604. this.loadFamilyFortune()
  605. this._watchPageReady()
  606. },
  607. methods: {
  608. /** 获取心维度分组雷达图的分值数组 */
  609. getMindGroupScores: function(group) {
  610. var member = this.currentMemberEnergies
  611. if (!member) return []
  612. var scores = []
  613. var dims = group.dimensions
  614. for (var i = 0; i < dims.length; i++) {
  615. scores.push(member[dims[i].key] || 0)
  616. }
  617. return scores
  618. },
  619. /** 获取心维度分组雷达图的家庭平均分(sandboxData.members 各维度均值) */
  620. getMindGroupFamilyScores: function(group) {
  621. if (!this.sandboxData || !this.sandboxData.members) return []
  622. var members = this.sandboxData.members
  623. var dims = group.dimensions
  624. var scores = []
  625. for (var i = 0; i < dims.length; i++) {
  626. var key = dims[i].key
  627. var sum = 0, count = 0
  628. for (var j = 0; j < members.length; j++) {
  629. var val = members[j][key]
  630. if (val !== undefined && val !== null && val > 0) { sum += val; count++ }
  631. }
  632. scores.push(count > 0 ? Math.round(sum / count) : 0)
  633. }
  634. return scores
  635. },
  636. /** 获取分组对应的人群位置分数 */
  637. getGroupPopulationScores: function(group) {
  638. if (!this.mindPopulationScores) return []
  639. var scores = []
  640. var dims = group.dimensions
  641. for (var i = 0; i < dims.length; i++) {
  642. scores.push(this.mindPopulationScores[dims[i].key] || 0)
  643. }
  644. return scores
  645. },
  646. // ===== 区块可见性 =====
  647. loadSectionConfig: function() {
  648. var self = this
  649. var baseSections = ['func_entries', 'daily_tip', 'recommended_reading']
  650. if (!uni.getStorageSync('token')) {
  651. self.visibleSections = baseSections
  652. return
  653. }
  654. var role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  655. getVisibleSections({ pageKey: 'mind', role: role }).then(function(res) {
  656. if (res.code === 200 && res.data) {
  657. var keys = res.data.map(function(s) { return s.sectionKey })
  658. var merged = baseSections.slice()
  659. keys.forEach(function(k) { if (merged.indexOf(k) === -1) merged.push(k) })
  660. self.visibleSections = merged
  661. }
  662. }).catch(function() {
  663. self.visibleSections = ['func_entries', 'daily_tip', 'recommended_reading', 'mind_tasks', 'related_activities', 'purchased_courses']
  664. })
  665. },
  666. // 加载家庭天盘数据
  667. loadFamilyFortune: function() {
  668. var self = this
  669. if (!self.isLoggedIn) return
  670. getFamilyFortune().then(function(res) {
  671. if (res.code === 200 && res.data) {
  672. // 更新 todayMood 占位数据为真实接口数据
  673. self.todayMood = {
  674. emoji: res.data.moodEmoji || '\u{1F60A}',
  675. text: res.data.moodText || '平静',
  676. score: res.data.moodScore || 65
  677. }
  678. // 更新 dailyFortune computed 函数依赖的数据
  679. self.dailyFortuneData = {
  680. level: res.data.fortuneLevel,
  681. text: res.data.fortuneLevelText,
  682. description: res.data.fortuneDescription
  683. }
  684. // 更新主导五行
  685. self.traditionalData = self.traditionalData || {}
  686. self.traditionalData.wuxingElements = {}
  687. if (res.data.dominantElement) {
  688. self.traditionalData.wuxingElements[res.data.dominantElement] = 100
  689. }
  690. // 更新周报提示
  691. self.compatibilityData = self.compatibilityData || {}
  692. self.compatibilityData.weeklyInsight = res.data.weeklyTip || self.compatibilityData.weeklyInsight
  693. }
  694. }).catch(function(err) {
  695. console.error('Failed to load family fortune:', err)
  696. })
  697. },
  698. viewReport: function(report) {
  699. if (report && report.fileUrl) {
  700. uni.downloadFile({
  701. url: report.fileUrl,
  702. success: function(res) {
  703. if (res.statusCode === 200) {
  704. uni.openDocument({
  705. filePath: res.tempFilePath,
  706. success: function() {
  707. console.log('打开报告成功')
  708. }
  709. })
  710. }
  711. }
  712. })
  713. }
  714. },
  715. formatDate: function(dateStr) {
  716. if (!dateStr) return ''
  717. var d = parseDate(dateStr)
  718. if (!d) return ''
  719. var month = d.getMonth() + 1
  720. var day = d.getDate()
  721. return month + '月' + day + '日'
  722. },
  723. sectionVisible: function(key) {
  724. return this.visibleSections.length === 0 || this.visibleSections.indexOf(key) !== -1
  725. },
  726. // ===== 心理 Tab:EMI 数据 =====
  727. loadEmiData: function() {
  728. var self = this
  729. var memberId = self.currentChildId
  730. if (!memberId) {
  731. self.emiLoading = false
  732. return
  733. }
  734. self.emiLoading = true
  735. getEmiReport(memberId).then(function(res) {
  736. if (res.code === 200 && res.data) {
  737. self.emiData = res.data
  738. self.mindSubDims = (function() { var e = self.emiData || {}; return [{label:'情绪稳定性', score:e.emotionStability||0, desc:'识别、理解和管理情绪的综合能力'}, {label:'开放性', score:e.opennessScore||0, desc:'对新事物的接受程度'}, {label:'尽责性', score:e.conscientiousnessScore||0, desc:'做事有条理的程度'}, {label:'外向性', score:e.extraversionScore||0, desc:'社交活跃度'}, {label:'宜人性', score:e.agreeablenessScore||0, desc:'与人相处的和谐度'}, {label:'神经质', score:e.neuroticismScore||0, desc:'情绪波动程度(反向)'}, {label:'自主性', score:e.driveAutonomy||0, desc:'内在驱动力'}, {label:'胜任感', score:e.driveCompetence||0, desc:'对自己能力的信心'}, {label:'归属感', score:e.driveRelatedness||0, desc:'感受被接纳'}]; })();
  739. self.loadMindIndicators(memberId)
  740. }
  741. self.emiLoading = false
  742. }).catch(function() {
  743. self.emiLoading = false
  744. })
  745. },
  746. // ===== 肠脑轴情绪指标 =====
  747. loadGutData: function() {
  748. var self = this
  749. var memberId = self.currentChildId
  750. if (!memberId) return
  751. var token = uni.getStorageSync('token')
  752. // 获取神经递质指标
  753. uni.request({
  754. url: config.API_BASE_URL + '/api/mind/neurotransmitters',
  755. method: 'POST',
  756. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  757. data: { memberId: memberId },
  758. success: function(r) {
  759. if (r.statusCode === 200 && r.data && r.data.code === 200) {
  760. var list = r.data.data
  761. if (Array.isArray(list) && list.length > 0) {
  762. self.gutIndicators = list.slice(0, 4)
  763. }
  764. }
  765. }
  766. })
  767. // 获取情绪洞察摘要
  768. uni.request({
  769. url: config.API_BASE_URL + '/api/mind/gut-emotion-insight',
  770. method: 'POST',
  771. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  772. data: { memberId: memberId },
  773. success: function(r) {
  774. if (r.statusCode === 200 && r.data && r.data.code === 200 && r.data.data) {
  775. self.gutInsight = r.data.data.summary || ''
  776. }
  777. }
  778. })
  779. },
  780. indicatorColor: function(status) {
  781. if (status === 'abnormal' || status === '偏高' || status === '偏低') return '#EF4444'
  782. if (status === 'warning' || status === '偏高' || status === '偏低') return '#F59E0B'
  783. return '#10B981'
  784. },
  785. statusLabel: function(status) {
  786. if (status === 'normal') return '正常'
  787. if (status === 'abnormal') return '异常'
  788. if (status === 'warning') return '警讯'
  789. return status || '正常'
  790. },
  791. // 情绪影响映射:指标名 → 影响的情绪功能
  792. emotionImpactLabel: function(name) {
  793. if (!name) return ''
  794. if (name.indexOf('血清素') !== -1 || name.indexOf('5-HT') !== -1) return '情绪稳定'
  795. if (name.indexOf('多巴胺') !== -1 || name.indexOf('Dopamine') !== -1) return '愉悦·动力'
  796. if (name.indexOf('GABA') !== -1 || name.indexOf('氨基丁酸') !== -1) return '放松·减压'
  797. if (name.indexOf('色氨酸') !== -1 || name.indexOf('Tryptophan') !== -1) return '睡眠·情绪'
  798. if (name.indexOf('褪黑素') !== -1 || name.indexOf('Melatonin') !== -1) return '睡眠调节'
  799. if (name.indexOf('皮质醇') !== -1 || name.indexOf('Cortisol') !== -1) return '压力水平'
  800. return ''
  801. },
  802. // 指标值展示:后端字段为 indicatorValue,兼容数值型
  803. formatIndicatorValue: function(ind) {
  804. if (!ind) return ''
  805. var v = ind.value !== undefined && ind.value !== null ? ind.value : ind.indicatorValue
  806. if (v === undefined || v === null || v === '') return ''
  807. return String(v)
  808. },
  809. // 指标条宽度:将指标值归一化为 0-100% 百分比
  810. indicatorBarWidth: function(ind) {
  811. var raw = ind.value !== undefined && ind.value !== null ? ind.value : ind.indicatorValue
  812. var n = parseFloat(raw)
  813. if (!isNaN(n) && n >= 0 && n <= 100) return n + '%'
  814. if (!isNaN(n) && n > 100) return '100%'
  815. var st = ind.status || ''
  816. if (st === '偏低' || st === '缺乏' || st === 'abnormal') return '30%'
  817. if (st === '偏高' || st === '过高') return '75%'
  818. return '55%'
  819. },
  820. // ===== EMI 分数评级 =====
  821. getScoreLevel: function(score) {
  822. if (score >= 85) return 'excellent'
  823. if (score >= 70) return 'good'
  824. if (score >= 55) return 'average'
  825. return 'low'
  826. },
  827. getScoreLevelText: function(score) {
  828. if (score >= 85) return '优秀'
  829. if (score >= 70) return '良好'
  830. if (score >= 55) return '一般'
  831. return '需提升'
  832. },
  833. // ===== 导航 =====
  834. goEmotionReport: function() {
  835. var memberId = this.currentChildId || ''
  836. uni.navigateTo({ url: '/pages/mind-detail/emotion-report?memberId=' + memberId })
  837. },
  838. goArticles: function() {
  839. uni.navigateTo({ url: '/pages/article-center/index?dimension=mind' })
  840. },
  841. onFuncClick: function(item) {
  842. if (item.needLogin && !this.isLoggedIn) {
  843. uni.showModal({
  844. title: '提示',
  845. content: '请先登录后使用此功能',
  846. success: (res) => { if (res.confirm) this.openLoginSheet() }
  847. })
  848. return
  849. }
  850. if (item.page) {
  851. var url = item.page
  852. if (item.page.indexOf('innate-portrait') !== -1 || item.page.indexOf('innate-trajectory') !== -1) {
  853. var memberId = this.currentChildId
  854. if (!memberId) {
  855. uni.showToast({ title: '请先选择家庭成员', icon: 'none' })
  856. return
  857. }
  858. var familyId = (this.$store.state && this.$store.state.familyId) || uni.getStorageSync('familyId') || ''
  859. url += '?memberId=' + memberId + '&memberType=child&familyId=' + familyId
  860. }
  861. nav.goPage(url)
  862. }
  863. },
  864. // ===== 孩子列表与维度数据 =====
  865. loadChildren: function() {
  866. var self = this
  867. getChildren().then(function(res) {
  868. if (res.code === 200 && res.data) {
  869. self.children = res.data
  870. var savedChildId = uni.getStorageSync('currentChildId')
  871. var found = false
  872. for (var i = 0; i < self.children.length; i++) {
  873. if (self.children[i].memberId === savedChildId) {
  874. self.currentChildId = savedChildId
  875. found = true
  876. break
  877. }
  878. }
  879. // FIX: 不再自动选择第一个孩子。仅在用户通过 UserQuickEntry 切换时设置 currentChildId
  880. if (found) {
  881. self.loadDimensionData()
  882. self.loadEmiData()
  883. }
  884. }
  885. }).catch(function(e) {
  886. console.log('获取成员列表失败', e)
  887. })
  888. },
  889. loadDimensionData: function() {
  890. if (this.familyMembersVisible.length > 0) {
  891. this.loadCompatibilityData()
  892. }
  893. },
  894. loadSandboxData: function() {
  895. var self = this
  896. getFamilyEnergySandbox().then(function(res) {
  897. if (res && res.data) {
  898. self.sandboxData = res.data
  899. }
  900. }).catch(function() {})
  901. },
  902. loadMindRadarPopulationData: function() {
  903. var self = this
  904. if (!this.currentChildId && !this.selectedMemberId) return
  905. var memberId = this.selectedMemberId || this.currentChildId
  906. if (!memberId) return
  907. getRadarData({
  908. memberId: memberId,
  909. dimensions: ['bigFiveOpenness','bigFiveConscientiousness','bigFiveExtraversion','bigFiveAgreeableness','bigFiveNeuroticism','emotionStability','driveAutonomy','driveCompetence','driveRelatedness','selfConceptOverall']
  910. }).then(function(res) {
  911. if (res && res.data && res.data.populationScores) {
  912. var dims = res.data.dimensions || []
  913. var scores = res.data.populationScores
  914. var map = {}
  915. for (var i = 0; i < dims.length && i < scores.length; i++) {
  916. map[dims[i]] = scores[i]
  917. }
  918. self.mindPopulationScores = map
  919. }
  920. }).catch(function(e) { console.warn('[mind] radar-data failed', e) })
  921. },
  922. switchView: function(view) {
  923. this.currentView = view
  924. if (view === 'family') {
  925. this.selectedMemberId = null
  926. var self = this
  927. getEnergySandbox('family').then(function(res) {
  928. if (res && res.data && !res.data.locked) {
  929. self.sandboxData = res.data.familyData || res.data
  930. }
  931. }).catch(function(e) { console.log('获取家庭数据失败', e) })
  932. } else {
  933. this.loadSandboxData()
  934. }
  935. },
  936. },
  937. loadEnergyData: function() {
  938. var self = this
  939. if (!this.currentChildId) return
  940. getEnergyOverview(this.currentChildId).then(function(res) {
  941. if (res && res.data) {
  942. var dims = res.data.dimensions
  943. if (dims && dims.length > 0) {
  944. for (var i = 0; i < dims.length; i++) {
  945. if (dims[i] && dims[i].code === 'mind' && res.data.energyScores) {
  946. self.familyScore = res.data.energyScores.mindScore || 0
  947. }
  948. }
  949. }
  950. }
  951. }).catch(function(e) {
  952. console.log('获取能量概览失败', e)
  953. })
  954. },
  955. onFamilyMemberSelect: function(member) {
  956. this.selectedMemberId = member.id
  957. },
  958. onChildChanged: function(child) {
  959. this.currentChildId = child.memberId
  960. // FIX: 同步提交到 Vuex store
  961. this.$store.commit('switchToChild', child.memberId)
  962. this.loadDimensionData()
  963. this.loadEmiData()
  964. this.loadTraditionalCultureData()
  965. },
  966. loadMindIndicators: function(memberId) {
  967. var self = this
  968. getLatestIndicators({ memberId: memberId, domain: 'mind' }).then(function(res) {
  969. if (res.code === 200) self.mindIndicators = res.data || []
  970. }).catch(function(e) { console.log('[mind] loadMindIndicators failed', e) })
  971. },
  972. goMindDetail: function() {
  973. var id = this.activeChildId || uni.getStorageSync('currentChildId')
  974. if (!id) return
  975. uni.navigateTo({ url: '/pages/mind-detail/member-mind-detail?memberId=' + id })
  976. },
  977. formatNumeric: function(v) {
  978. if (v === null || v === undefined) return ''
  979. var n = parseFloat(v)
  980. if (isNaN(n)) return String(v)
  981. return n % 1 === 0 ? String(n) : n.toFixed(1)
  982. },
  983. loadFamilyMembersVisible: function() {
  984. var self = this
  985. getFamilyMemberList({ visibleOnly: true }).then(function(res) {
  986. self.familyMembersVisible = res.data || []
  987. }).catch(function(e) {
  988. console.log('获取可见家庭成员失败', e)
  989. self.familyMembersVisible = []
  990. })
  991. },
  992. loadCompatibilityData: function() {
  993. var self = this
  994. var token = uni.getStorageSync('token')
  995. uni.request({
  996. url: config.API_BASE_URL + '/api/mind/traditional/family-dashboard',
  997. method: 'POST',
  998. header: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + token },
  999. data: {},
  1000. success: function(res) {
  1001. if (res.data && res.data.code === 200 && res.data.data) {
  1002. self.compatibilityData = res.data.data
  1003. }
  1004. },
  1005. fail: function() {}
  1006. })
  1007. },
  1008. scrollToSection: function(section) {
  1009. uni.pageScrollTo({ selector: '#' + section, duration: 300 })
  1010. },
  1011. goAssessment: function() { uni.navigateTo({ url: '/pages/assessment/apply' }) },
  1012. goLogin: function() { this.openLoginSheet() },
  1013. // 登录成功:刷新登录态数据(镜像 onShow 已登录分支)
  1014. onLoginSuccess: function() {
  1015. this.isLoggedIn = true
  1016. this.role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  1017. this.currentChildId = (this.$store.state && this.$store.state.currentChildId) || uni.getStorageSync('currentChildId') || null
  1018. this.userName = uni.getStorageSync('nickname') || uni.getStorageSync('userName') || '家长'
  1019. this.loadSectionConfig()
  1020. this.loadChildren()
  1021. this.loadFamilyMembersVisible()
  1022. this.loadSandboxData()
  1023. this.loadMindRadarPopulationData()
  1024. this.loadEmiData()
  1025. this.loadGutData()
  1026. this.loadEnergyData()
  1027. this.loadTraditionalCultureData()
  1028. this.loadContacts()
  1029. this.loadHealthAlerts()
  1030. this.loadMilestones()
  1031. this.loadDanReports()
  1032. this._watchPageReady()
  1033. },
  1034. // ===== 传统文化数据 =====
  1035. // ===== 联系人 / 关系健康 =====
  1036. loadContacts: function() {
  1037. var self = this
  1038. getContactList({}).then(function(res) {
  1039. if (res.code === 200) {
  1040. self.contactList = Array.isArray(res.data) ? res.data : []
  1041. } else {
  1042. self.contactList = []
  1043. }
  1044. }).catch(function() {
  1045. self.contactList = []
  1046. })
  1047. },
  1048. loadHealthAlerts: function() {
  1049. var self = this
  1050. getHealthAlerts().then(function(res) {
  1051. if (res.code === 200) {
  1052. self.healthAlerts = Array.isArray(res.data) ? res.data : []
  1053. } else {
  1054. self.healthAlerts = []
  1055. }
  1056. }).catch(function() {
  1057. self.healthAlerts = []
  1058. })
  1059. },
  1060. loadMilestones: function() {
  1061. var self = this
  1062. getMilestones(30).then(function(res) {
  1063. if (res.code === 200) {
  1064. self.milestones = Array.isArray(res.data) ? res.data : []
  1065. } else {
  1066. self.milestones = []
  1067. }
  1068. }).catch(function() {
  1069. self.milestones = []
  1070. })
  1071. },
  1072. loadTraditionalCultureData: function() {
  1073. var self = this
  1074. var memberId = this.currentChildId
  1075. if (!memberId) {
  1076. self.traditionalLoading = false
  1077. return
  1078. }
  1079. self.traditionalLoading = true
  1080. uni.request({
  1081. url: config.API_BASE_URL + '/api/mind/traditional/mirror',
  1082. method: 'POST',
  1083. data: { memberId: memberId, memberType: 'child' },
  1084. success: function(res) {
  1085. self.traditionalLoading = false
  1086. if (res.data && res.data.code === 200 && res.data.data) {
  1087. var d = res.data.data
  1088. if (d.eightCharacters || d.wuxingElements || d.zodiac || d.numSoul) {
  1089. self.traditionalData = d
  1090. } else {
  1091. self.traditionalData = null
  1092. }
  1093. } else {
  1094. self.traditionalData = null
  1095. }
  1096. },
  1097. fail: function() {
  1098. self.traditionalLoading = false
  1099. self.traditionalData = null
  1100. }
  1101. })
  1102. },
  1103. _watchPageReady() {
  1104. var self = this
  1105. var unwatch = this.$watch(function() {
  1106. if (self.isLoggedIn) {
  1107. return !!(self.emiData || self.energyOverview)
  1108. } }, function(val) {
  1109. if (val) {
  1110. if (unwatch) unwatch()
  1111. if (self.$refs.tabTransition) self.$refs.tabTransition.markReady()
  1112. }
  1113. })
  1114. },
  1115. // ===== DAN 报告 =====
  1116. loadDanReports: function() {
  1117. var self = this
  1118. var memberId = self.currentChildId
  1119. if (!memberId) return
  1120. getDanReportByChild(memberId, 'mind').then(function(res) {
  1121. if (res.code === 200 && res.data) {
  1122. self.danReports = res.data
  1123. }
  1124. }).catch(function() {})
  1125. },
  1126. goDanUpload: function(dimension) {
  1127. var memberId = this.selectedMemberId || this.currentChildId
  1128. var url = '/pages/health/report-upload?type=a2'
  1129. if (memberId) {
  1130. url += '&memberId=' + memberId
  1131. }
  1132. uni.navigateTo({ url: url })
  1133. },
  1134. viewDanReport: function(report) {
  1135. var reportId = report.sourceReportId || report.id
  1136. uni.navigateTo({ url: '/pages/health/report-detail?reportType=dan&reportId=' + reportId })
  1137. },
  1138. formatDate: function(dateStr) {
  1139. if (!dateStr) return ''
  1140. var d = parseDate(dateStr)
  1141. if (!d) return ''
  1142. return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate()
  1143. }
  1144. }
  1145. </script>
  1146. <style scoped>
  1147. .container {
  1148. min-height: 100vh;
  1149. background: #f5f7fa;
  1150. padding-bottom: 120rpx;
  1151. }
  1152. /* ===== 心·心理 标题栏 ===== */
  1153. .section-title-bar {
  1154. display: flex;
  1155. flex-direction: row;
  1156. align-items: center;
  1157. margin: 20rpx 30rpx 10rpx;
  1158. padding: 16rpx 24rpx;
  1159. background: linear-gradient(135deg, #F97316, #FB923C);
  1160. border-radius: 20rpx;
  1161. box-shadow: 0 4rpx 16rpx rgba(139,92,246,0.25);
  1162. }
  1163. .section-title-icon {
  1164. font-size: 32rpx;
  1165. color: #fff;
  1166. margin-right: 12rpx;
  1167. }
  1168. .section-title-text {
  1169. font-size: 32rpx;
  1170. font-weight: bold;
  1171. color: #fff;
  1172. }
  1173. /* ===== 心理报告上传卡片 ===== */
  1174. .mind-report-section {
  1175. margin: 20rpx 30rpx;
  1176. }
  1177. .mind-report-card {
  1178. display: flex;
  1179. flex-direction: row;
  1180. align-items: center;
  1181. background: linear-gradient(135deg, #F3E8FF, #FCE4EC);
  1182. border-radius: 20rpx;
  1183. padding: 28rpx 24rpx;
  1184. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1185. }
  1186. .mind-report-left {
  1187. width: 100rpx;
  1188. height: 100rpx;
  1189. background: rgba(255,255,255,0.7);
  1190. border-radius: 20rpx;
  1191. display: flex;
  1192. align-items: center;
  1193. justify-content: center;
  1194. margin-right: 20rpx;
  1195. flex-shrink: 0;
  1196. }
  1197. .mind-report-icon {
  1198. font-size: 52rpx;
  1199. }
  1200. .mind-report-right {
  1201. flex: 1;
  1202. }
  1203. .mind-report-title {
  1204. font-size: 30rpx;
  1205. font-weight: bold;
  1206. color: #7C3AED;
  1207. display: block;
  1208. margin-bottom: 6rpx;
  1209. }
  1210. .mind-report-desc {
  1211. font-size: 22rpx;
  1212. color: #A855F7;
  1213. line-height: 1.5;
  1214. display: block;
  1215. margin-bottom: 10rpx;
  1216. }
  1217. .mind-report-tags {
  1218. display: flex;
  1219. flex-direction: row;
  1220. gap: 10rpx;
  1221. }
  1222. .mind-tag {
  1223. font-size: 20rpx;
  1224. color: #7C3AED;
  1225. background: rgba(255,255,255,0.6);
  1226. padding: 4rpx 14rpx;
  1227. border-radius: 20rpx;
  1228. }
  1229. .mind-report-arrow {
  1230. font-size: 36rpx;
  1231. color: #FB923C;
  1232. margin-left: 10rpx;
  1233. flex-shrink: 0;
  1234. }
  1235. .mind-report-card:active {
  1236. opacity: 0.7;
  1237. }
  1238. .mind-report-list {
  1239. margin-top: 12rpx;
  1240. }
  1241. .mind-report-item {
  1242. display: flex;
  1243. flex-direction: row;
  1244. align-items: center;
  1245. background: #fff;
  1246. border-radius: 14rpx;
  1247. padding: 20rpx 20rpx;
  1248. margin-bottom: 8rpx;
  1249. box-shadow: 0 1rpx 6rpx rgba(0,0,0,0.05);
  1250. }
  1251. .mind-report-item:active {
  1252. opacity: 0.7;
  1253. }
  1254. .mind-report-item-icon {
  1255. font-size: 28rpx;
  1256. margin-right: 14rpx;
  1257. }
  1258. .mind-report-item-name {
  1259. font-size: 26rpx;
  1260. color: #333;
  1261. flex: 1;
  1262. }
  1263. .mind-report-item-date {
  1264. font-size: 22rpx;
  1265. color: #999;
  1266. margin-right: 14rpx;
  1267. }
  1268. .mind-report-item-status {
  1269. font-size: 22rpx;
  1270. padding: 2rpx 12rpx;
  1271. border-radius: 20rpx;
  1272. }
  1273. .mind-report-item-status.parsed {
  1274. color: #7C3AED;
  1275. background: #F3E8FF;
  1276. }
  1277. .mind-report-item-status.pending {
  1278. color: #999;
  1279. background: #F5F5F5;
  1280. }
  1281. .mind-report-empty {
  1282. display: flex;
  1283. flex-direction: row;
  1284. align-items: center;
  1285. justify-content: center;
  1286. padding: 24rpx;
  1287. margin-top: 8rpx;
  1288. }
  1289. .mind-report-empty-icon {
  1290. font-size: 32rpx;
  1291. margin-right: 10rpx;
  1292. }
  1293. .mind-report-empty-text {
  1294. font-size: 24rpx;
  1295. color: #bbb;
  1296. }
  1297. /* ===== 心理能量概况 ===== */
  1298. .energy-overview {
  1299. display: flex;
  1300. flex-direction: row;
  1301. margin: 20rpx 30rpx;
  1302. background: #fff;
  1303. border-radius: 20rpx;
  1304. padding: 24rpx 16rpx;
  1305. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1306. justify-content: space-around;
  1307. }
  1308. .energy-badge {
  1309. display: flex;
  1310. flex-direction: column;
  1311. align-items: center;
  1312. flex: 1;
  1313. }
  1314. .badge-icon {
  1315. font-size: 36rpx;
  1316. margin-bottom: 8rpx;
  1317. }
  1318. .badge-value {
  1319. font-size: 36rpx;
  1320. font-weight: bold;
  1321. color: #333;
  1322. }
  1323. .badge-label {
  1324. font-size: 20rpx;
  1325. color: #999;
  1326. margin-top: 4rpx;
  1327. }
  1328. /* ===== EMI 四维条形图 ===== */
  1329. .emi-section {
  1330. margin: 20rpx 30rpx;
  1331. }
  1332. .emi-card {
  1333. background: #fff;
  1334. border-radius: 24rpx;
  1335. padding: 30rpx;
  1336. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1337. }
  1338. .emi-card-title {
  1339. font-size: 30rpx;
  1340. font-weight: bold;
  1341. color: #333;
  1342. display: block;
  1343. }
  1344. .personality-header {
  1345. display: flex;
  1346. flex-direction: row;
  1347. align-items: center;
  1348. justify-content: space-between;
  1349. margin-bottom: 24rpx;
  1350. }
  1351. .test-btn {
  1352. background: #F97316;
  1353. padding: 8rpx 28rpx;
  1354. border-radius: 30rpx;
  1355. }
  1356. .test-btn-text {
  1357. font-size: 24rpx;
  1358. color: #fff;
  1359. font-weight: 500;
  1360. }
  1361. .emi-bar-item {
  1362. display: flex;
  1363. flex-direction: row;
  1364. align-items: center;
  1365. margin-bottom: 20rpx;
  1366. }
  1367. .emi-bar-label {
  1368. font-size: 24rpx;
  1369. color: #666;
  1370. width: 120rpx;
  1371. flex-shrink: 0;
  1372. }
  1373. .emi-bar-track {
  1374. flex: 1;
  1375. height: 20rpx;
  1376. background: #f0f0f0;
  1377. border-radius: 10rpx;
  1378. overflow: hidden;
  1379. margin: 0 16rpx;
  1380. }
  1381. .emi-bar-fill {
  1382. height: 100%;
  1383. border-radius: 10rpx;
  1384. transition: width 0.5s;
  1385. }
  1386. .emi-bar-score {
  1387. font-size: 26rpx;
  1388. font-weight: bold;
  1389. color: #333;
  1390. width: 60rpx;
  1391. text-align: right;
  1392. flex-shrink: 0;
  1393. }
  1394. .emi-bar-level {
  1395. font-size: 20rpx;
  1396. width: 80rpx;
  1397. text-align: right;
  1398. flex-shrink: 0;
  1399. }
  1400. .level-excellent { color: #10B981; }
  1401. .level-good { color: #3B82F6; }
  1402. .level-average { color: #F97316; }
  1403. .level-low { color: #EF4444; }
  1404. .emi-footer {
  1405. display: flex;
  1406. flex-direction: row;
  1407. justify-content: space-between;
  1408. align-items: center;
  1409. margin-top: 20rpx;
  1410. padding-top: 20rpx;
  1411. border-top: 1rpx solid #f0f0f0;
  1412. }
  1413. .emi-overall {
  1414. font-size: 28rpx;
  1415. font-weight: bold;
  1416. color: #FF6B35;
  1417. }
  1418. .emi-link {
  1419. display: flex;
  1420. flex-direction: row;
  1421. align-items: center;
  1422. }
  1423. .emi-link-text {
  1424. font-size: 26rpx;
  1425. color: #FF6B35;
  1426. font-weight: 500;
  1427. }
  1428. .emi-link-arrow {
  1429. font-size: 26rpx;
  1430. color: #FF6B35;
  1431. margin-left: 8rpx;
  1432. }
  1433. /* ===== EMI 心理报告卡片 ===== */
  1434. .emi-card {
  1435. margin: 30rpx;
  1436. background: #fff;
  1437. border-radius: 24rpx;
  1438. padding: 30rpx;
  1439. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1440. }
  1441. .emi-header {
  1442. margin-bottom: 24rpx;
  1443. }
  1444. .emi-title {
  1445. font-size: 30rpx;
  1446. font-weight: bold;
  1447. color: #333;
  1448. display: block;
  1449. }
  1450. .emi-overall-wrap {
  1451. display: flex;
  1452. flex-direction: column;
  1453. align-items: center;
  1454. padding: 32rpx 0;
  1455. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1456. border-radius: 16rpx;
  1457. margin: 20rpx 0;
  1458. color: #fff;
  1459. }
  1460. .emi-overall-label {
  1461. font-size: 26rpx;
  1462. margin-bottom: 6rpx;
  1463. }
  1464. .emi-overall-value {
  1465. font-size: 64rpx;
  1466. font-weight: bold;
  1467. margin-bottom: 6rpx;
  1468. }
  1469. .emi-overall-level {
  1470. font-size: 24rpx;
  1471. padding: 4rpx 16rpx;
  1472. border-radius: 12rpx;
  1473. background: rgba(255,255,255,0.2);
  1474. }
  1475. .emi-dimensions {
  1476. display: flex;
  1477. flex-direction: column;
  1478. gap: 20rpx;
  1479. }
  1480. .emi-dimension {
  1481. display: flex;
  1482. flex-direction: column;
  1483. }
  1484. .emi-dim-header {
  1485. display: flex;
  1486. flex-direction: row;
  1487. justify-content: space-between;
  1488. align-items: center;
  1489. margin-bottom: 8rpx;
  1490. }
  1491. .emi-dim-label {
  1492. font-size: 26rpx;
  1493. color: #666;
  1494. }
  1495. .emi-dim-values {
  1496. display: flex;
  1497. flex-direction: row;
  1498. align-items: center;
  1499. }
  1500. .emi-dim-score {
  1501. font-size: 28rpx;
  1502. font-weight: bold;
  1503. color: #FF6B35;
  1504. margin-right: 12rpx;
  1505. }
  1506. .emi-dim-level {
  1507. font-size: 20rpx;
  1508. padding: 2rpx 12rpx;
  1509. border-radius: 8rpx;
  1510. }
  1511. .emi-dim-bar {
  1512. height: 14rpx;
  1513. background: #f0f0f0;
  1514. border-radius: 7rpx;
  1515. overflow: hidden;
  1516. }
  1517. .emi-dim-bar-fill {
  1518. height: 100%;
  1519. border-radius: 7rpx;
  1520. transition: width 0.5s;
  1521. }
  1522. .emi-footer {
  1523. display: flex;
  1524. justify-content: flex-end;
  1525. align-items: center;
  1526. padding-top: 20rpx;
  1527. border-top: 1rpx solid #f0f0f0;
  1528. margin-top: 20rpx;
  1529. }
  1530. .emi-footer-text {
  1531. font-size: 24rpx;
  1532. color: #F97316;
  1533. font-weight: 500;
  1534. }
  1535. .emi-footer-icon {
  1536. font-size: 24rpx;
  1537. margin-left: 8rpx;
  1538. }
  1539. .level-excellent { color: #10B981; background: #ECFDF5; }
  1540. .level-good { color: #3B82F6; background: #EFF6FF; }
  1541. .level-average { color: #F97316; background: #FFF7ED; }
  1542. .level-low { color: #EF4444; background: #FEF2F2; }
  1543. /* 雷达图内的空状态 */
  1544. .placeholder-content {
  1545. display: flex;
  1546. flex-direction: column;
  1547. align-items: center;
  1548. padding: 40rpx 20rpx;
  1549. }
  1550. /* ===== 占位卡 ===== */
  1551. .placeholder-card {
  1552. margin: 30rpx;
  1553. background: #fff;
  1554. border-radius: 24rpx;
  1555. padding: 60rpx 40rpx;
  1556. display: flex;
  1557. flex-direction: column;
  1558. align-items: center;
  1559. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  1560. }
  1561. .placeholder-icon {
  1562. font-size: 80rpx;
  1563. margin-bottom: 20rpx;
  1564. }
  1565. .placeholder-title {
  1566. font-size: 32rpx;
  1567. font-weight: bold;
  1568. color: #333;
  1569. margin-bottom: 16rpx;
  1570. }
  1571. .placeholder-desc {
  1572. font-size: 26rpx;
  1573. color: #999;
  1574. text-align: center;
  1575. line-height: 1.6;
  1576. margin-bottom: 30rpx;
  1577. }
  1578. .placeholder-btn {
  1579. background: linear-gradient(135deg, #FF6B35, #FFD700);
  1580. color: #fff;
  1581. font-size: 28rpx;
  1582. font-weight: bold;
  1583. padding: 16rpx 64rpx;
  1584. border-radius: 40rpx;
  1585. box-shadow: 0 4rpx 16rpx rgba(255,107,53,0.3);
  1586. }
  1587. /* ===== 传统文化卡片 ===== */
  1588. .culture-section {
  1589. margin: 20rpx 30rpx;
  1590. }
  1591. .culture-card {
  1592. background: #fff;
  1593. border-radius: 20rpx;
  1594. padding: 24rpx;
  1595. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1596. margin-bottom: 16rpx;
  1597. }
  1598. .culture-card-header {
  1599. display: flex;
  1600. align-items: center;
  1601. margin-bottom: 16rpx;
  1602. }
  1603. .culture-card-icon {
  1604. font-size: 32rpx;
  1605. margin-right: 10rpx;
  1606. }
  1607. .culture-card-title {
  1608. font-size: 28rpx;
  1609. font-weight: 600;
  1610. color: #333;
  1611. }
  1612. .culture-card-body {
  1613. font-size: 24rpx;
  1614. color: #666;
  1615. line-height: 1.6;
  1616. }
  1617. /* 八字四柱 */
  1618. .bazi-grid {
  1619. display: flex;
  1620. justify-content: space-around;
  1621. padding: 8rpx 0;
  1622. }
  1623. .bazi-column {
  1624. display: flex;
  1625. flex-direction: column;
  1626. align-items: center;
  1627. }
  1628. .bazi-pillar-label {
  1629. font-size: 22rpx;
  1630. color: #999;
  1631. margin-bottom: 6rpx;
  1632. }
  1633. .bazi-pillar-value {
  1634. font-size: 32rpx;
  1635. font-weight: 700;
  1636. color: #F97316;
  1637. background: #F5F0FF;
  1638. padding: 10rpx 14rpx;
  1639. border-radius: 10rpx;
  1640. }
  1641. /* 五行能量 */
  1642. .wuxing-list {
  1643. display: flex;
  1644. flex-direction: column;
  1645. gap: 12rpx;
  1646. }
  1647. .wuxing-item {
  1648. display: flex;
  1649. align-items: center;
  1650. gap: 12rpx;
  1651. }
  1652. .wuxing-label {
  1653. font-size: 26rpx;
  1654. font-weight: 600;
  1655. width: 44rpx;
  1656. text-align: center;
  1657. }
  1658. .wuxing-bar-track {
  1659. flex: 1;
  1660. height: 20rpx;
  1661. background: #F0F0F0;
  1662. border-radius: 10rpx;
  1663. overflow: hidden;
  1664. }
  1665. .wuxing-bar-fill {
  1666. height: 100%;
  1667. border-radius: 10rpx;
  1668. }
  1669. .wuxing-value {
  1670. font-size: 22rpx;
  1671. color: #666;
  1672. width: 56rpx;
  1673. text-align: right;
  1674. }
  1675. .energy-card {
  1676. margin-top: 20rpx;
  1677. padding: 24rpx 20rpx;
  1678. background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  1679. border-radius: 20rpx;
  1680. position: relative;
  1681. overflow: hidden;
  1682. }
  1683. .energy-card::before {
  1684. content: '';
  1685. position: absolute;
  1686. top: -60rpx;
  1687. right: -60rpx;
  1688. width: 200rpx;
  1689. height: 200rpx;
  1690. background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  1691. border-radius: 50%;
  1692. }
  1693. .energy-card::after {
  1694. content: '';
  1695. position: absolute;
  1696. bottom: -40rpx;
  1697. left: -40rpx;
  1698. width: 160rpx;
  1699. height: 160rpx;
  1700. background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  1701. border-radius: 50%;
  1702. }
  1703. .energy-header {
  1704. display: flex;
  1705. align-items: center;
  1706. margin-bottom: 14rpx;
  1707. position: relative;
  1708. z-index: 1;
  1709. }
  1710. .energy-icon {
  1711. font-size: 32rpx;
  1712. margin-right: 10rpx;
  1713. }
  1714. .energy-label {
  1715. font-size: 28rpx;
  1716. font-weight: 700;
  1717. background: linear-gradient(135deg, #F59E0B, #FF6B9D);
  1718. -webkit-background-clip: text;
  1719. -webkit-text-fill-color: transparent;
  1720. background-clip: text;
  1721. }
  1722. .energy-divider {
  1723. height: 2rpx;
  1724. background: linear-gradient(90deg, rgba(255,215,0,0.5), rgba(255,107,157,0.3), transparent);
  1725. margin-bottom: 18rpx;
  1726. position: relative;
  1727. z-index: 1;
  1728. }
  1729. .energy-quote {
  1730. font-size: 26rpx;
  1731. color: #E2E8F0;
  1732. line-height: 1.8;
  1733. display: block;
  1734. margin-bottom: 14rpx;
  1735. position: relative;
  1736. z-index: 1;
  1737. padding-left: 20rpx;
  1738. letter-spacing: 1rpx;
  1739. }
  1740. .energy-quote::before {
  1741. content: '';
  1742. position: absolute;
  1743. left: 0;
  1744. top: 4rpx;
  1745. bottom: 4rpx;
  1746. width: 4rpx;
  1747. background: linear-gradient(180deg, #F59E0B, #FF6B9D);
  1748. border-radius: 2rpx;
  1749. }
  1750. .energy-advice {
  1751. font-size: 24rpx;
  1752. color: #94A3B8;
  1753. line-height: 1.7;
  1754. display: block;
  1755. position: relative;
  1756. z-index: 1;
  1757. padding: 14rpx 18rpx;
  1758. background: rgba(255,255,255,0.05);
  1759. border-radius: 12rpx;
  1760. border: 1rpx solid rgba(255,255,255,0.08);
  1761. }
  1762. .energy-footer {
  1763. display: flex;
  1764. justify-content: center;
  1765. gap: 12rpx;
  1766. margin-top: 18rpx;
  1767. position: relative;
  1768. z-index: 1;
  1769. }
  1770. .energy-footer-dot {
  1771. width: 8rpx;
  1772. height: 8rpx;
  1773. border-radius: 50%;
  1774. background: rgba(255,255,255,0.3);
  1775. }
  1776. .energy-footer-dot:nth-child(2) {
  1777. background: rgba(255,215,0,0.6);
  1778. width: 10rpx;
  1779. height: 10rpx;
  1780. }
  1781. /* 星座+灵数双栏 */
  1782. .culture-dual {
  1783. display: flex;
  1784. gap: 16rpx;
  1785. }
  1786. .culture-dual-item {
  1787. flex: 1;
  1788. background: #fff;
  1789. border-radius: 20rpx;
  1790. padding: 20rpx;
  1791. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
  1792. display: flex;
  1793. flex-direction: column;
  1794. align-items: center;
  1795. }
  1796. .culture-dual-icon {
  1797. font-size: 36rpx;
  1798. margin-bottom: 8rpx;
  1799. }
  1800. .culture-dual-label {
  1801. font-size: 22rpx;
  1802. color: #999;
  1803. margin-bottom: 6rpx;
  1804. }
  1805. .culture-dual-value {
  1806. font-size: 28rpx;
  1807. font-weight: 700;
  1808. color: #F97316;
  1809. }
  1810. .culture-empty {
  1811. text-align: center;
  1812. padding: 30rpx 0;
  1813. color: #bbb;
  1814. font-size: 24rpx;
  1815. }
  1816. /* ===== 每日心理 ===== */
  1817. .tip-card {
  1818. background: #fff;
  1819. border-radius: 20rpx;
  1820. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1821. display: flex;
  1822. flex-direction: row;
  1823. overflow: hidden;
  1824. }
  1825. .tip-left-bar {
  1826. width: 6rpx;
  1827. background: linear-gradient(180deg, #5B9BD5, #8FC5E8);
  1828. flex-shrink: 0;
  1829. }
  1830. .tip-body {
  1831. flex: 1;
  1832. padding: 28rpx 24rpx;
  1833. }
  1834. .tip-title {
  1835. font-size: 28rpx;
  1836. font-weight: bold;
  1837. color: #5B9BD5;
  1838. display: block;
  1839. margin-bottom: 12rpx;
  1840. }
  1841. .tip-content {
  1842. font-size: 24rpx;
  1843. color: #666;
  1844. line-height: 1.6;
  1845. display: block;
  1846. margin-bottom: 16rpx;
  1847. }
  1848. .tip-footer {
  1849. display: flex;
  1850. flex-direction: row;
  1851. justify-content: flex-end;
  1852. }
  1853. .tip-source {
  1854. font-size: 22rpx;
  1855. color: #bbb;
  1856. }
  1857. /* ===== 通用区块 ===== */
  1858. .section {
  1859. margin: 20rpx 30rpx;
  1860. }
  1861. .section-header {
  1862. margin-bottom: 20rpx;
  1863. }
  1864. .section-title {
  1865. font-size: 30rpx;
  1866. font-weight: bold;
  1867. color: #333;
  1868. }
  1869. /* ===== 推荐阅读 ===== */
  1870. .article-list {
  1871. display: flex;
  1872. flex-direction: column;
  1873. }
  1874. .article-card {
  1875. background: #fff;
  1876. border-radius: 20rpx;
  1877. padding: 28rpx 24rpx;
  1878. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1879. margin-bottom: 20rpx;
  1880. }
  1881. .article-category {
  1882. display: inline-block;
  1883. padding: 4rpx 18rpx;
  1884. border-radius: 20rpx;
  1885. margin-bottom: 14rpx;
  1886. }
  1887. .article-category-text {
  1888. font-size: 20rpx;
  1889. color: #fff;
  1890. font-weight: 500;
  1891. }
  1892. .article-title {
  1893. font-size: 28rpx;
  1894. font-weight: bold;
  1895. color: #333;
  1896. display: block;
  1897. margin-bottom: 10rpx;
  1898. }
  1899. .article-summary {
  1900. font-size: 24rpx;
  1901. color: #888;
  1902. line-height: 1.5;
  1903. display: block;
  1904. margin-bottom: 20rpx;
  1905. }
  1906. .article-meta {
  1907. display: flex;
  1908. flex-direction: row;
  1909. align-items: center;
  1910. justify-content: space-between;
  1911. }
  1912. .meta-item {
  1913. display: flex;
  1914. flex-direction: row;
  1915. align-items: center;
  1916. margin-right: 20rpx;
  1917. }
  1918. .meta-icon {
  1919. font-size: 22rpx;
  1920. margin-right: 4rpx;
  1921. }
  1922. .meta-text {
  1923. font-size: 22rpx;
  1924. color: #bbb;
  1925. }
  1926. .article-date {
  1927. font-size: 22rpx;
  1928. color: #bbb;
  1929. margin-left: auto;
  1930. }
  1931. /* ===== 功能区入口 ===== */
  1932. .func-section {
  1933. margin: 20rpx 30rpx;
  1934. }
  1935. .func-grid {
  1936. display: flex;
  1937. flex-direction: column;
  1938. gap: 16rpx;
  1939. background: #fff;
  1940. border-radius: 20rpx;
  1941. padding: 24rpx 16rpx;
  1942. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  1943. }
  1944. .func-row {
  1945. display: flex;
  1946. flex-direction: row;
  1947. justify-content: space-between;
  1948. }
  1949. .func-item {
  1950. display: flex;
  1951. flex-direction: column;
  1952. align-items: center;
  1953. flex: 1;
  1954. }
  1955. .func-icon-wrap {
  1956. width: 80rpx;
  1957. height: 80rpx;
  1958. border-radius: 40rpx;
  1959. background: linear-gradient(135deg, #D6EAF8, #EBF2FA);
  1960. display: flex;
  1961. align-items: center;
  1962. justify-content: center;
  1963. margin-bottom: 10rpx;
  1964. }
  1965. .func-icon {
  1966. font-size: 40rpx;
  1967. }
  1968. .func-label {
  1969. font-size: 22rpx;
  1970. color: #666;
  1971. font-weight: 500;
  1972. }
  1973. .func-item:active {
  1974. opacity: 0.7;
  1975. }
  1976. /* ===== 底部 ===== */
  1977. .indicator-cards-section { margin: 20rpx 30rpx; }
  1978. .indicator-cards { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16rpx; }
  1979. .indicator-card { width: calc(50% - 8rpx); background: #fff; border-radius: 20rpx; padding: 24rpx 20rpx; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
  1980. .indicator-card.no-data { opacity: 0.5; }
  1981. .indicator-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12rpx; }
  1982. .indicator-name { font-size: 26rpx; color: #666; font-weight: 500; }
  1983. .indicator-unit { font-size: 22rpx; color: #999; }
  1984. .indicator-body { margin-bottom: 8rpx; }
  1985. .indicator-value { font-size: 40rpx; font-weight: bold; color: #FF6B9D; }
  1986. .indicator-placeholder { font-size: 26rpx; color: #ccc; }
  1987. .indicator-range { font-size: 20rpx; color: #bbb; }
  1988. .bottom-spacer { height: 120rpx; }
  1989. /* ===== 肠脑轴 ===== */
  1990. .gut-insight-text {
  1991. font-size: 24rpx;
  1992. color: #666;
  1993. margin-bottom: 16rpx;
  1994. padding: 12rpx 16rpx;
  1995. background: #F0FFF4;
  1996. border-radius: 12rpx;
  1997. line-height: 1.6;
  1998. }
  1999. .gut-indicator-list {
  2000. display: flex;
  2001. flex-direction: column;
  2002. gap: 12rpx;
  2003. }
  2004. .gut-indicator-item {
  2005. display: flex;
  2006. align-items: center;
  2007. gap: 12rpx;
  2008. }
  2009. .gut-indicator-left {
  2010. width: 110rpx;
  2011. flex-shrink: 0;
  2012. }
  2013. .gut-indicator-name {
  2014. font-size: 22rpx;
  2015. color: #666;
  2016. font-weight: 500;
  2017. display: block;
  2018. }
  2019. .gut-indicator-impact {
  2020. font-size: 18rpx;
  2021. color: #FF6B9D;
  2022. display: block;
  2023. margin-top: 2rpx;
  2024. }
  2025. .gut-indicator-bar-track {
  2026. flex: 1;
  2027. height: 16rpx;
  2028. background: #F0F0F0;
  2029. border-radius: 8rpx;
  2030. overflow: hidden;
  2031. }
  2032. .gut-indicator-bar-fill {
  2033. height: 100%;
  2034. border-radius: 8rpx;
  2035. transition: width 0.3s;
  2036. }
  2037. .gut-indicator-value {
  2038. font-size: 22rpx;
  2039. color: #666;
  2040. width: 60rpx;
  2041. text-align: right;
  2042. }
  2043. .gut-indicator-status {
  2044. font-size: 20rpx;
  2045. padding: 2rpx 12rpx;
  2046. border-radius: 10rpx;
  2047. width: 60rpx;
  2048. text-align: center;
  2049. }
  2050. .status-normal {
  2051. background: #D1FAE5;
  2052. color: #059669;
  2053. }
  2054. .status-abnormal {
  2055. background: #FEE2E2;
  2056. color: #DC2626;
  2057. }
  2058. .status-warning {
  2059. background: #FEF3C7;
  2060. color: #D97706;
  2061. }
  2062. /* ===== 关键信息(家庭+个人) ===== */
  2063. .key-info-card {
  2064. background: #fff;
  2065. border-radius: 20rpx;
  2066. padding: 24rpx;
  2067. margin-top: 20rpx;
  2068. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  2069. }
  2070. .key-info-header {
  2071. display: flex;
  2072. align-items: center;
  2073. margin-bottom: 20rpx;
  2074. }
  2075. .key-info-icon {
  2076. font-size: 28rpx;
  2077. margin-right: 8rpx;
  2078. }
  2079. .key-info-title {
  2080. font-size: 28rpx;
  2081. font-weight: 600;
  2082. color: #333;
  2083. }
  2084. .key-info-body {
  2085. display: flex;
  2086. flex-direction: row;
  2087. gap: 20rpx;
  2088. }
  2089. .key-info-col {
  2090. flex: 1;
  2091. background: #F8F9FA;
  2092. border-radius: 14rpx;
  2093. padding: 16rpx;
  2094. min-width: 0;
  2095. }
  2096. .ki-subtitle {
  2097. font-size: 22rpx;
  2098. color: #999;
  2099. margin-bottom: 12rpx;
  2100. font-weight: 500;
  2101. }
  2102. .ki-row {
  2103. display: flex;
  2104. align-items: center;
  2105. margin-bottom: 10rpx;
  2106. flex-wrap: nowrap;
  2107. }
  2108. .ki-row:last-child {
  2109. margin-bottom: 0;
  2110. }
  2111. .ki-label {
  2112. font-size: 22rpx;
  2113. color: #888;
  2114. margin-right: 8rpx;
  2115. white-space: nowrap;
  2116. }
  2117. .ki-dot {
  2118. width: 16rpx;
  2119. height: 16rpx;
  2120. border-radius: 50%;
  2121. margin-right: 6rpx;
  2122. flex-shrink: 0;
  2123. }
  2124. .ki-valuel {
  2125. font-size: 24rpx;
  2126. color: #333;
  2127. font-weight: 500;
  2128. white-space: nowrap;
  2129. }
  2130. .ki-valued {
  2131. font-size: 24rpx;
  2132. color: #333;
  2133. font-weight: 500;
  2134. }
  2135. .ki-swatch {
  2136. width: 28rpx;
  2137. height: 28rpx;
  2138. border-radius: 50%;
  2139. margin-right: 6rpx;
  2140. border: 2rpx solid rgba(0,0,0,0.06);
  2141. flex-shrink: 0;
  2142. }
  2143. .ki-num {
  2144. font-size: 30rpx;
  2145. font-weight: 700;
  2146. color: #FF6B9D;
  2147. }
  2148. .ki-fortune {
  2149. font-size: 24rpx;
  2150. font-weight: 700;
  2151. padding: 2rpx 12rpx;
  2152. border-radius: 10rpx;
  2153. }
  2154. .ki-fortune-0 {
  2155. color: #D32F2F;
  2156. background: #FFEBEE;
  2157. }
  2158. .ki-fortune-1 {
  2159. color: #E65100;
  2160. background: #FFF3E0;
  2161. }
  2162. .ki-fortune-2 {
  2163. color: #F9A825;
  2164. background: #FFFDE7;
  2165. }
  2166. .ki-fortune-3 {
  2167. color: #7B1FA2;
  2168. background: #F3E5F5;
  2169. }
  2170. .ki-fortune-4 {
  2171. color: #B71C1C;
  2172. background: #FFCDD2;
  2173. }
  2174. .ki-insight {
  2175. display: flex;
  2176. align-items: flex-start;
  2177. margin-top: 16rpx;
  2178. padding: 16rpx;
  2179. background: #FFF8F0;
  2180. border-radius: 12rpx;
  2181. }
  2182. .ki-insight-icon {
  2183. font-size: 24rpx;
  2184. margin-right: 8rpx;
  2185. flex-shrink: 0;
  2186. }
  2187. .ki-insight-text {
  2188. font-size: 22rpx;
  2189. color: #8B6914;
  2190. line-height: 1.5;
  2191. }
  2192. .ki-footer {
  2193. margin-top: 16rpx;
  2194. text-align: center;
  2195. padding: 12rpx;
  2196. font-size: 24rpx;
  2197. color: #F97316;
  2198. font-weight: 500;
  2199. background: #F5F3FF;
  2200. border-radius: 12rpx;
  2201. }
  2202. .ki-footer:active {
  2203. opacity: 0.7;
  2204. }
  2205. /* DAN 报告卡片 */
  2206. .dan-card {
  2207. background: #fff;
  2208. border-radius: 16rpx;
  2209. padding: 24rpx;
  2210. margin-bottom: 16rpx;
  2211. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
  2212. }
  2213. .dan-card-header {
  2214. display: flex;
  2215. justify-content: space-between;
  2216. align-items: center;
  2217. margin-bottom: 12rpx;
  2218. }
  2219. .dan-report-date {
  2220. font-size: 26rpx;
  2221. color: #666;
  2222. }
  2223. .dan-status {
  2224. font-size: 22rpx;
  2225. padding: 4rpx 16rpx;
  2226. border-radius: 8rpx;
  2227. }
  2228. .dan-status.confirmed {
  2229. background: #D1FAE5;
  2230. color: #065F46;
  2231. }
  2232. .dan-status.pending {
  2233. background: #FEF3C7;
  2234. color: #92400E;
  2235. }
  2236. .dan-report-desc {
  2237. font-size: 28rpx;
  2238. color: #333;
  2239. font-weight: 500;
  2240. margin-bottom: 12rpx;
  2241. display: block;
  2242. }
  2243. .dan-card-footer {
  2244. text-align: right;
  2245. }
  2246. .dan-view-link {
  2247. font-size: 26rpx;
  2248. color: #6366F1;
  2249. }
  2250. .section-header {
  2251. display: flex;
  2252. justify-content: space-between;
  2253. align-items: center;
  2254. margin-bottom: 20rpx;
  2255. }
  2256. .section-title {
  2257. font-size: 32rpx;
  2258. font-weight: 700;
  2259. color: #333;
  2260. }
  2261. .section-more {
  2262. font-size: 26rpx;
  2263. color: #6366F1;
  2264. padding: 8rpx 16rpx;
  2265. }
  2266. /* 品牌定位语 */
  2267. .brand-strap {
  2268. margin: 16rpx 30rpx 0;
  2269. padding: 20rpx 28rpx;
  2270. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.12));
  2271. border-radius: 16rpx;
  2272. border-left: 8rpx solid #FF6B9D;
  2273. }
  2274. .brand-strap-text {
  2275. font-size: 26rpx;
  2276. color: #9D174D;
  2277. font-weight: 500;
  2278. }
  2279. /* 每月引导语 */
  2280. .monthly-guidance {
  2281. margin: 16rpx 30rpx 0;
  2282. padding: 20rpx 28rpx;
  2283. background: linear-gradient(135deg, #FFF0F5, rgba(255,107,157,0.08));
  2284. border-radius: 16rpx;
  2285. border-left: 8rpx solid #FF6B9D;
  2286. display: flex;
  2287. align-items: center;
  2288. gap: 12rpx;
  2289. }
  2290. .guidance-icon { font-size: 32rpx; }
  2291. .guidance-text {
  2292. font-size: 26rpx;
  2293. color: #9D174D;
  2294. font-weight: 500;
  2295. }
  2296. /* 雷达图分组 */
  2297. .radar-group { margin-bottom: 30rpx; }
  2298. .radar-group-label {
  2299. font-size: 28rpx;
  2300. font-weight: bold;
  2301. color: #9D174D;
  2302. margin-bottom: 16rpx;
  2303. padding-left: 10rpx;
  2304. }
  2305. /* 维度画像样式 */
  2306. .dimension-portrait-section {
  2307. margin: 24rpx 30rpx;
  2308. background: #fff;
  2309. border-radius: 24rpx;
  2310. padding: 32rpx 24rpx;
  2311. box-shadow: 0 4rpx 20rpx rgba(255, 107, 157, 0.12);
  2312. border: 2rpx solid rgba(255, 107, 157, 0.1);
  2313. }
  2314. .portrait-tier {
  2315. font-size: 26rpx;
  2316. color: #FF6B9D;
  2317. font-weight: bold;
  2318. margin-left: 16rpx;
  2319. }
  2320. .portrait-summary {
  2321. margin-bottom: 24rpx;
  2322. }
  2323. .portrait-desc {
  2324. font-size: 26rpx;
  2325. color: #666;
  2326. line-height: 1.6;
  2327. display: block;
  2328. }
  2329. .portrait-dimensions {
  2330. margin-bottom: 20rpx;
  2331. }
  2332. .portrait-dim-item {
  2333. margin-bottom: 18rpx;
  2334. }
  2335. .portrait-dim-header {
  2336. display: flex;
  2337. align-items: center;
  2338. margin-bottom: 6rpx;
  2339. }
  2340. .portrait-dim-icon {
  2341. width: 36rpx;
  2342. height: 36rpx;
  2343. border-radius: 18rpx;
  2344. display: flex;
  2345. align-items: center;
  2346. justify-content: center;
  2347. margin-right: 10rpx;
  2348. font-size: 20rpx;
  2349. }
  2350. .portrait-dim-name {
  2351. font-size: 24rpx;
  2352. color: #333;
  2353. flex: 1;
  2354. }
  2355. .portrait-dim-score {
  2356. font-size: 26rpx;
  2357. font-weight: bold;
  2358. color: #FF6B9D;
  2359. margin-right: 12rpx;
  2360. }
  2361. .portrait-dim-bar-track {
  2362. height: 10rpx;
  2363. background: #F0F6F7;
  2364. border-radius: 5rpx;
  2365. overflow: hidden;
  2366. margin-bottom: 4rpx;
  2367. flex: 1;
  2368. }
  2369. .portrait-dim-bar-fill {
  2370. height: 100%;
  2371. border-radius: 5rpx;
  2372. transition: width 0.3s ease;
  2373. }
  2374. .portrait-dim-desc {
  2375. font-size: 20rpx;
  2376. color: #999;
  2377. display: block;
  2378. }
  2379. .portrait-tip {
  2380. padding: 16rpx 20rpx;
  2381. background: linear-gradient(135deg, #FFF0F5, #FDF2F7);
  2382. border-radius: 12rpx;
  2383. border-left: 8rpx solid #FF6B9D;
  2384. margin-top: 16rpx;
  2385. }
  2386. .portrait-tip-text {
  2387. font-size: 22rpx;
  2388. color: #C2410C;
  2389. line-height: 1.5;
  2390. }
  2391. </style>