index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. <template>
  2. <view class="wisdom-container">
  3. <!-- Tabbar 切换过渡页 -->
  4. <tab-transition v-if="showTabTransition" dimCode="wisdom" />
  5. <!-- 1. 品牌头部 -->
  6. <PageBanner theme="wisdom"
  7. tagline="学以启智 · 慧及未来"
  8. quote="知者不惑,仁者不忧" />
  9. <!-- 2. 游客专属区块 -->
  10. <template v-if="!isLoggedIn">
  11. <LoginGuideCard
  12. title="登录后查看全家智慧成长数据"
  13. :items="[
  14. '查看全家认知能量数据和测评报告',
  15. '记录每日成长,获取智慧能量',
  16. '参与认知训练,提升综合能力'
  17. ]" />
  18. </template>
  19. <!-- 3. 五维能量条(登录后) -->
  20. <FamilyEnergyBar
  21. v-if="isLoggedIn"
  22. dimensionCode="wisdom"
  23. :sandboxData="sandboxData"
  24. :dualDimension="dualDimension" />
  25. <!-- ===== 重要关系维护 ===== -->
  26. <FamilyRelationshipSection
  27. :contactList="contactList"
  28. :healthAlerts="healthAlerts"
  29. :milestones="milestones"
  30. :isLoggedIn="isLoggedIn"
  31. @contactClick="onContactClick"
  32. @refresh="loadContacts"
  33. @import="onShowImport"
  34. @interactionLog="goInteractionLog"
  35. @questionnaire="goRelationshipQuestionnaire" />
  36. <!-- 4. 认知雷达图(登录后) -->
  37. <view class="section" v-if="isLoggedIn && cognitiveReport">
  38. <view class="section-header">
  39. <text class="section-title">认知雷达</text>
  40. <text class="section-more" @click="goCognitiveReport">查看详情 ›</text>
  41. </view>
  42. <RadarChart
  43. :dimensions="cognitiveDimensions"
  44. :scores="cognitiveScores"
  45. :childName="activeChildName"
  46. fillColor="#6366F1"
  47. gridColor="#E0E7FF"
  48. labelColor="#3730A3" />
  49. </view>
  50. <!-- 5. 家庭成员关系图谱(登录后) -->
  51. <FamilyRelationGraph
  52. v-if="isLoggedIn && familyMembersVisible.length > 0"
  53. dimensionCode="wisdom"
  54. :selfId="activeChildId"
  55. :members="familyMembersVisible"
  56. :energyMap="energyMapForGraph"
  57. :intimacyMap="intimacyMapForGraph"
  58. @memberTap="goMemberDetail" />
  59. <!-- 6. 用户快捷入口 -->
  60. <UserQuickEntry
  61. v-if="isLoggedIn"
  62. :userName="userName"
  63. roleName="家长"
  64. :currentChildName="activeChildName"
  65. :children="children"
  66. @childChanged="onChildChanged"
  67. @scrollTo="scrollToSection" />
  68. <!-- 7. 功能入口 -->
  69. <view class="func-section" v-if="sectionVisible('func_entries')">
  70. <view class="func-grid">
  71. <view class="func-item" v-for="item in funcList" :key="item.label" @click="onFuncClick(item)">
  72. <view class="func-icon-wrap">
  73. <text class="func-icon">{{ item.icon }}</text>
  74. </view>
  75. <text class="func-label">{{ item.label }}</text>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 8. 维度任务 -->
  80. <DimensionTasks
  81. v-if="isLoggedIn"
  82. dimensionCode="wisdom"
  83. :tasks="dimensionTasks"
  84. @taskClick="onTaskClick"
  85. @moreTasks="goTasks" />
  86. <!-- 9. 维度活动 -->
  87. <DimensionActivities
  88. dimensionCode="wisdom"
  89. :activities="dimensionActivities"
  90. :isLoggedIn="isLoggedIn"
  91. @activityClick="goActivityDetail"
  92. @moreActivities="goMoreActivities" />
  93. <!-- 10. 维度商品 -->
  94. <DimensionProducts
  95. dimensionCode="wisdom"
  96. :products="dimensionProducts"
  97. @productClick="goProductDetail"
  98. @moreProducts="goMoreProducts" />
  99. <!-- 11. 推荐阅读 -->
  100. <DimensionArticles
  101. v-if="sectionVisible('recommended_reading')"
  102. dimensionCode="wisdom"
  103. :articles="wisdomArticles"
  104. :isLoggedIn="isLoggedIn"
  105. @articleClick="goArticleDetail"
  106. @moreArticles="goMoreArticles" />
  107. <!-- 12. 智慧小贴士 -->
  108. <view class="section" v-if="sectionVisible('wisdom_tips')">
  109. <view class="section-header">
  110. <text class="section-title">智慧小贴士</text>
  111. </view>
  112. <view class="tips-list">
  113. <view class="tip-card" v-for="item in wisdomTips" :key="item.id">
  114. <text class="tip-title">{{ item.title }}</text>
  115. <text class="tip-summary">{{ item.summary }}</text>
  116. </view>
  117. </view>
  118. </view>
  119. <!-- 13. 快捷操作按钮 -->
  120. <view class="section quick-actions" v-if="isLoggedIn">
  121. <view class="action-btn" @click="goCognitiveReport">
  122. <text class="action-icon">📊</text>
  123. <text class="action-text">认知报告</text>
  124. </view>
  125. <view class="action-btn" @click="goTrainingHub">
  126. <text class="action-icon">🧠</text>
  127. <text class="action-text">认知训练</text>
  128. </view>
  129. <view class="action-btn" @click="goAssessment">
  130. <text class="action-icon">📋</text>
  131. <text class="action-text">测评预约</text>
  132. </view>
  133. <view class="action-btn" @click="goHome">
  134. <text class="action-icon">🏠</text>
  135. <text class="action-text">返回首页</text>
  136. </view>
  137. </view>
  138. <!-- 底部占位 -->
  139. <view class="bottom-spacer"></view>
  140. <AIFloatingAvatar />
  141. </view>
  142. </template>
  143. <script>
  144. import TabTransition from '../../components/tab-transition.vue'
  145. import PageBanner from '../../components/PageBanner.vue'
  146. import LoginGuideCard from '../../components/LoginGuideCard.vue'
  147. import RadarChart from '../../components/RadarChart.vue'
  148. import FamilyEnergyBar from '../../components/FamilyEnergyBar.vue'
  149. import UserQuickEntry from '../../components/UserQuickEntry.vue'
  150. import DimensionTasks from '../../components/DimensionTasks.vue'
  151. import DimensionActivities from '../../components/DimensionActivities.vue'
  152. import DimensionProducts from '../../components/DimensionProducts.vue'
  153. import DimensionArticles from '../../components/DimensionArticles.vue'
  154. import FamilyRelationGraph from '../../components/FamilyRelationGraph.vue'
  155. import AIFloatingAvatar from '../../components/AIFloatingAvatar.vue'
  156. import FamilyRelationshipSection from '../../components/FamilyRelationshipSection.vue'
  157. import { getVisibleSections, getChildren, getTodayTasksByCategory, getActivityList, getProductsByDomain, getFamilyEnergySandbox, getAssessmentLatestResult, getFeaturedArticles, getContactList, getHealthAlerts, getMilestones } from '../../utils/api.js'
  158. export default {
  159. components: { TabTransition, PageBanner, LoginGuideCard, RadarChart, FamilyEnergyBar, UserQuickEntry, DimensionTasks, DimensionActivities, DimensionProducts, DimensionArticles, FamilyRelationGraph, AIFloatingAvatar, FamilyRelationshipSection },
  160. data() {
  161. return {
  162. isLoggedIn: false,
  163. role: null,
  164. showTabTransition: true,
  165. activeChildId: null,
  166. activeChildName: '',
  167. userName: '',
  168. children: [],
  169. familyMembersVisible: [],
  170. sandboxData: null,
  171. dualDimension: null,
  172. visibleSections: [],
  173. cognitiveReport: null,
  174. dimensionTasks: [],
  175. dimensionActivities: [],
  176. dimensionProducts: [],
  177. articles: [],
  178. wisdomTips: [],
  179. contactList: [],
  180. healthAlerts: [],
  181. milestones: [],
  182. funcList: [
  183. { icon: '\u{1F4CA}', label: '认知报告', needLogin: true, page: '/pages/wisdom-detail/cognitive-report' },
  184. { icon: '\u{270F}\uFE0F', label: '自己出题', needLogin: true, page: '/pages/wisdom-detail/self-quiz' },
  185. { icon: '\u{1F9E0}', label: '训练中心', needLogin: true, page: '/pages/wisdom-detail/training-hub' },
  186. { icon: '\u{1F3AF}', label: '测评预约', needLogin: false, page: '/pages/assessment/apply' },
  187. { icon: '\u{1F4D6}', label: '阅读天地', needLogin: false, page: '/pages/mind/articles' }
  188. ]
  189. }
  190. },
  191. computed: {
  192. energyMapForGraph: function() {
  193. var map = {}
  194. if (this.sandboxData && this.sandboxData.members) {
  195. for (var i = 0; i < this.sandboxData.members.length; i++) {
  196. var m = this.sandboxData.members[i]
  197. map[m.memberId || m.id] = {
  198. bodyScore: m.bodyScore || 0,
  199. mindScore: m.mindScore || 0,
  200. actionScore: m.actionScore || 0,
  201. wisdomScore: m.wisdomScore || 0
  202. }
  203. }
  204. }
  205. return map
  206. },
  207. intimacyMapForGraph: function() {
  208. return {}
  209. },
  210. wisdomArticles: function() {
  211. if (!this.articles || this.articles.length === 0) return []
  212. var result = []
  213. for (var i = 0; i < this.articles.length; i++) {
  214. var a = this.articles[i]
  215. if (a.relatedDimensions && a.relatedDimensions.indexOf('wisdom') !== -1) {
  216. result.push(a)
  217. }
  218. }
  219. if (result.length === 0) return this.articles.slice(0, 5)
  220. return result.slice(0, 5)
  221. },
  222. cognitiveDimensions: function() {
  223. return [
  224. { label: '感知能力', key: 'perceptionScore' },
  225. { label: '专注力', key: 'focusScore' },
  226. { label: '记忆力', key: 'memoryScore' },
  227. { label: '逻辑思维', key: 'logicScore' },
  228. { label: '空间思维', key: 'spatialScore' },
  229. { label: '加工速度', key: 'processingSpeedScore' }
  230. ]
  231. },
  232. cognitiveScores: function() {
  233. if (!this.cognitiveReport) return []
  234. var dims = this.cognitiveDimensions
  235. var scores = []
  236. for (var i = 0; i < dims.length; i++) {
  237. scores.push(this.cognitiveReport[dims[i].key] || 0)
  238. }
  239. return scores
  240. }
  241. },
  242. onShow() {
  243. // Tabbar 切换过渡动画(最少停留 1 秒)
  244. this.showTabTransition = true
  245. var self = this
  246. setTimeout(function() {
  247. self.showTabTransition = false
  248. }, 1800)
  249. var token = uni.getStorageSync('token')
  250. this.isLoggedIn = !!token
  251. if (this.isLoggedIn) {
  252. this.role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  253. this.userName = uni.getStorageSync('nickname') || uni.getStorageSync('userName') || '家长'
  254. }
  255. this.loadSectionConfig()
  256. if (this.isLoggedIn) {
  257. this.loadChildren()
  258. this.loadFamilyMembersVisible()
  259. this.loadCognitiveReport()
  260. this.loadRelationshipHealth()
  261. }
  262. this.loadDimensionActivities()
  263. this.loadDimensionProducts()
  264. // 游客也能浏览文章
  265. this.loadFeaturedArticles()
  266. },
  267. methods: {
  268. loadSectionConfig: function() {
  269. var baseSections = ['func_entries', 'wisdom_tips']
  270. if (!uni.getStorageSync('token')) {
  271. this.visibleSections = baseSections
  272. return
  273. }
  274. var role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  275. var self = this
  276. getVisibleSections({ pageKey: 'wisdom', role: role }).then(function(res) {
  277. if (res.code === 200 && res.data) {
  278. var keys = res.data.map(function(s) { return s.sectionKey })
  279. var merged = baseSections.slice()
  280. keys.forEach(function(k) { if (merged.indexOf(k) === -1) merged.push(k) })
  281. self.visibleSections = merged
  282. }
  283. }).catch(function(e) {
  284. self.visibleSections = ['func_entries', 'wisdom_tips']
  285. })
  286. },
  287. loadChildren: function() {
  288. var self = this
  289. getChildren().then(function(res) {
  290. if (res.code === 200 && res.data) {
  291. self.children = res.data
  292. if (self.children.length > 0) {
  293. var activeId = uni.getStorageSync('currentChildId')
  294. if (activeId) {
  295. for (var i = 0; i < self.children.length; i++) {
  296. if (self.children[i].id == activeId) {
  297. self.activeChildId = activeId
  298. self.activeChildName = self.children[i].nickname || self.children[i].name || ''
  299. break
  300. }
  301. }
  302. }
  303. if (!self.activeChildId) {
  304. self.activeChildId = self.children[0].id
  305. self.activeChildName = self.children[0].nickname || self.children[0].name || ''
  306. uni.setStorageSync('currentChildId', self.activeChildId)
  307. }
  308. }
  309. // Load cognitive report AFTER activeChildId is confirmed set
  310. self.loadCognitiveReport()
  311. }
  312. self.loadContacts()
  313. }).catch(function(e) {})
  314. },
  315. loadFamilyMembersVisible: function() {
  316. var self = this
  317. getFamilyEnergySandbox().then(function(res) {
  318. if (res && res.data) {
  319. self.sandboxData = res.data.sandboxData || null
  320. self.dualDimension = res.data.dualDimension || null
  321. if (res.data.members) {
  322. self.familyMembersVisible = res.data.members
  323. }
  324. }
  325. }).catch(function(e) {})
  326. },
  327. loadCognitiveReport: function() {
  328. var self = this
  329. var childId = this.activeChildId
  330. if (!childId) return
  331. getAssessmentLatestResult(childId).then(function(res) {
  332. if (res.code === 200 && res.data) {
  333. self.cognitiveReport = res.data
  334. }
  335. }).catch(function(e) {})
  336. },
  337. onChildChanged: function(childId) {
  338. this.activeChildId = childId
  339. uni.setStorageSync('currentChildId', childId)
  340. for (var i = 0; i < this.children.length; i++) {
  341. if (this.children[i].id == childId) {
  342. this.activeChildName = this.children[i].nickname || this.children[i].name || ''
  343. break
  344. }
  345. }
  346. this.loadFamilyMembersVisible()
  347. this.loadCognitiveReport()
  348. },
  349. loadDimensionTasks: function() {
  350. var self = this
  351. var childId = this.activeChildId
  352. if (!childId) return
  353. getTodayTasksByCategory(childId, 'wisdom').then(function(res) {
  354. if (res && res.data) {
  355. self.dimensionTasks = res.data.slice(0, 5)
  356. }
  357. }).catch(function(e) {})
  358. },
  359. loadDimensionActivities: function() {
  360. var self = this
  361. getActivityList({ dimensionCode: 'wisdom', page: 1, size: 5 }).then(function(res) {
  362. if (res && res.data) {
  363. self.dimensionActivities = res.data.records || res.data
  364. }
  365. }).catch(function(e) {})
  366. },
  367. loadDimensionProducts: function() {
  368. var self = this
  369. getProductsByDomain('wisdom', 1, 4).then(function(res) {
  370. if (res && res.data) {
  371. self.dimensionProducts = res.data.records || res.data
  372. }
  373. }).catch(function(e) {})
  374. },
  375. sectionVisible: function(key) {
  376. return this.visibleSections.length === 0 || this.visibleSections.indexOf(key) !== -1
  377. },
  378. onFuncClick: function(item) {
  379. if (item.needLogin && !this.isLoggedIn) {
  380. uni.showModal({
  381. title: '提示',
  382. content: '请先登录后使用此功能',
  383. success: function(res) { if (res.confirm) uni.navigateTo({ url: '/pages/login/login' }) }
  384. })
  385. return
  386. }
  387. if (item.page) {
  388. var nativeTabs = ['/pages/tasks/tasks', '/pages/index/index', '/pages/body/index', '/pages/mind/index', '/pages/action/index', '/pages/wisdom/index', '/pages/profile/profile']
  389. if (nativeTabs.indexOf(item.page) !== -1) {
  390. uni.switchTab({ url: item.page })
  391. } else {
  392. uni.navigateTo({ url: item.page })
  393. }
  394. }
  395. },
  396. scrollToSection: function(section) {},
  397. goMemberDetail: function(memberId) {
  398. uni.navigateTo({ url: '/pages/wisdom-detail/member-wisdom-detail?memberId=' + memberId })
  399. },
  400. goCognitiveReport: function() {
  401. uni.navigateTo({ url: '/pages/wisdom-detail/cognitive-report' })
  402. },
  403. goSelfQuiz: function() {
  404. uni.navigateTo({ url: '/pages/wisdom-detail/self-quiz' })
  405. },
  406. goTrainingHub: function() {
  407. uni.navigateTo({ url: '/pages/wisdom-detail/training-hub' })
  408. },
  409. goAssessment: function() {
  410. uni.navigateTo({ url: '/pages/assessment/apply' })
  411. },
  412. goHome: function() {
  413. uni.switchTab({ url: '/pages/index/index' })
  414. },
  415. onTaskClick: function(task) {},
  416. goTasks: function() { uni.switchTab({ url: '/pages/tasks/tasks' }) },
  417. goActivityDetail: function(id) {},
  418. goMoreActivities: function() {
  419. uni.navigateTo({ url: '/pages/activity/index' })
  420. },
  421. goActivityDetail: function(act) {
  422. if (act && act.id) uni.navigateTo({ url: '/pages/discover-detail/activity-detail/activity-detail?id=' + act.id })
  423. },
  424. goProductDetail: function(prod) {
  425. if (prod && prod.id) {
  426. var token = uni.getStorageSync('token')
  427. if (token) {
  428. uni.navigateTo({ url: '/pages/discover-detail/product-detail/product-detail?id=' + prod.id })
  429. } else {
  430. uni.navigateTo({ url: '/pages/login/login?redirect=' + encodeURIComponent('/pages/wisdom/index') })
  431. }
  432. }
  433. },
  434. goMoreProducts: function() {
  435. uni.navigateTo({ url: '/pages/shop/index' })
  436. },
  437. loadFeaturedArticles: function() {
  438. var self = this
  439. getFeaturedArticles({ size: 5, dimensionCode: 'wisdom' }).then(function(res) {
  440. if (res.code === 200 && res.data) {
  441. var gradientColors = [
  442. 'linear-gradient(135deg, #6366F1, #818CF8)',
  443. 'linear-gradient(135deg, #8B5CF6, #A78BFA)',
  444. 'linear-gradient(135deg, #5B9BD5, #8FC5E8)',
  445. 'linear-gradient(135deg, #10B981, #34D399)',
  446. 'linear-gradient(135deg, #F97316, #FB923C)'
  447. ]
  448. var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
  449. self.articles = list.map(function(item, index) {
  450. return {
  451. id: item.id,
  452. category: item.categoryName || '智慧文章',
  453. categoryColor: gradientColors[index % gradientColors.length],
  454. title: item.title || '',
  455. summary: item.summary || '',
  456. views: item.viewCount ? String(item.viewCount) : '0',
  457. likes: '0',
  458. date: item.publishedAt ? item.publishedAt.slice(0, 10) : '',
  459. relatedDimensions: item.relatedDimensions || []
  460. }
  461. })
  462. }
  463. }).catch(function() {})
  464. },
  465. goMoreArticles: function() {
  466. uni.navigateTo({ url: '/pages/mind/articles' })
  467. },
  468. goArticleDetail: function(article) {
  469. uni.navigateTo({ url: '/pages/mind-detail/article-detail?id=' + (article.id || article) })
  470. },
  471. // ===== 重要关系 =====
  472. loadContacts: function() {
  473. var self = this
  474. getContactList({}).then(function(res) {
  475. if (res.code === 200 && res.data) {
  476. self.contactList = Array.isArray(res.data) ? res.data : []
  477. }
  478. }).catch(function(e) {
  479. console.log('获取联系人失败', e)
  480. })
  481. },
  482. loadRelationshipHealth: function() {
  483. var self = this
  484. getHealthAlerts({}).then(function(res) {
  485. if (res.code === 200 && res.data) {
  486. self.healthAlerts = Array.isArray(res.data) ? res.data : []
  487. }
  488. }).catch(function() {
  489. self.healthAlerts = []
  490. })
  491. getMilestones({}, 30).then(function(res) {
  492. if (res.code === 200 && res.data) {
  493. self.milestones = Array.isArray(res.data) ? res.data : []
  494. }
  495. }).catch(function() {
  496. self.milestones = []
  497. })
  498. },
  499. onContactClick: function(item) {
  500. uni.navigateTo({ url: '/pages/wisdom-detail/contact-detail?id=' + item.id })
  501. },
  502. onShowImport: function() {
  503. uni.showToast({ title: '导入通讯录', icon: 'none' })
  504. },
  505. goInteractionLog: function(memberId) {
  506. if (memberId) {
  507. uni.navigateTo({ url: '/pages/wisdom-detail/interaction-log?memberId=' + memberId })
  508. } else {
  509. uni.navigateTo({ url: '/pages/wisdom-detail/interaction-log' })
  510. }
  511. },
  512. goRelationshipQuestionnaire: function() {
  513. uni.navigateTo({ url: '/pages/wisdom-detail/relationship-questionnaire' })
  514. }
  515. }
  516. }
  517. </script>
  518. <style scoped>
  519. .wisdom-container {
  520. min-height: 100vh;
  521. background: #f5f7fa;
  522. padding-bottom: 120rpx;
  523. }
  524. .func-section {
  525. margin: -40rpx 20rpx 0;
  526. position: relative;
  527. z-index: 2;
  528. }
  529. .func-grid {
  530. background: #fff;
  531. border-radius: 24rpx;
  532. padding: 30rpx 16rpx;
  533. display: flex;
  534. box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.06);
  535. }
  536. .func-item {
  537. flex: 1;
  538. display: flex;
  539. flex-direction: column;
  540. align-items: center;
  541. }
  542. .func-item:active {
  543. opacity: 0.7;
  544. }
  545. .func-icon-wrap {
  546. width: 88rpx;
  547. height: 88rpx;
  548. border-radius: 50%;
  549. background: #FFF8E1;
  550. display: flex;
  551. align-items: center;
  552. justify-content: center;
  553. margin-bottom: 10rpx;
  554. }
  555. .func-icon {
  556. font-size: 40rpx;
  557. }
  558. .func-label {
  559. font-size: 24rpx;
  560. color: #333;
  561. font-weight: 500;
  562. }
  563. /* ===== Section ===== */
  564. .section {
  565. margin: 20rpx 20rpx;
  566. }
  567. .section-header {
  568. display: flex;
  569. justify-content: space-between;
  570. align-items: center;
  571. margin-bottom: 20rpx;
  572. }
  573. .section-title {
  574. font-size: 30rpx;
  575. font-weight: bold;
  576. color: #333;
  577. }
  578. .section-more {
  579. font-size: 24rpx;
  580. color: #999;
  581. }
  582. /* ===== 智慧小贴士 ===== */
  583. .tips-list {
  584. display: flex;
  585. flex-direction: column;
  586. }
  587. .tip-card {
  588. background: #fff;
  589. border-radius: 16rpx;
  590. padding: 24rpx 20rpx;
  591. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  592. margin-bottom: 16rpx;
  593. }
  594. .tip-title {
  595. font-size: 28rpx;
  596. font-weight: bold;
  597. color: #333;
  598. display: block;
  599. margin-bottom: 8rpx;
  600. }
  601. .tip-summary {
  602. font-size: 24rpx;
  603. color: #888;
  604. line-height: 1.5;
  605. display: block;
  606. }
  607. /* ===== 快捷操作按钮 ===== */
  608. .quick-actions {
  609. display: flex;
  610. flex-direction: row;
  611. flex-wrap: wrap;
  612. justify-content: space-between;
  613. }
  614. .action-btn {
  615. width: 48%;
  616. background: #fff;
  617. border-radius: 16rpx;
  618. padding: 24rpx 0;
  619. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  620. display: flex;
  621. flex-direction: column;
  622. align-items: center;
  623. margin-bottom: 20rpx;
  624. }
  625. .action-btn:active {
  626. opacity: 0.8;
  627. }
  628. .action-icon {
  629. font-size: 40rpx;
  630. margin-bottom: 10rpx;
  631. }
  632. .action-text {
  633. font-size: 26rpx;
  634. color: #333;
  635. font-weight: 500;
  636. }
  637. /* ===== 底部占位 ===== */
  638. .bottom-spacer {
  639. height: 120rpx;
  640. }
  641. </style>