index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <template>
  2. <view class="body-container">
  3. <!-- 品牌头部 -->
  4. <PageBanner theme="body"
  5. tagline="科学管理全家健康"
  6. quote="身体健康是幸福的基础" />
  7. <!-- 家庭成员切换条 -->
  8. <FamilyMemberStrip
  9. v-if="isLoggedIn && familyMembersVisible.length > 0"
  10. :members="familyMembersVisible"
  11. :selectedMemberId="selectedMemberId"
  12. :selectedMemberType="selectedMemberType"
  13. @select="onMemberSelect" />
  14. <!-- 游客专属区块 -->
  15. <template v-if="!isLoggedIn">
  16. <LoginGuideCard
  17. title="登录后查看全家健康数据"
  18. :items="[
  19. '查看全家身体能量数据和健康报告',
  20. '记录每日健康打卡,获取身体能量',
  21. '查看专属健康商品和活动价格'
  22. ]" />
  23. <HealthTips dimension="body" />
  24. </template>
  25. <!-- 登录后:五维能量条 -->
  26. <FamilyEnergyBar
  27. v-if="isLoggedIn"
  28. dimensionCode="body"
  29. :sandboxData="sandboxData"
  30. :dualDimension="dualDimension" />
  31. <!-- 登录后:用户快捷入口 -->
  32. <UserQuickEntry
  33. v-if="isLoggedIn"
  34. :userName="userName"
  35. roleName="家长"
  36. :currentChildName="activeChildName"
  37. :children="children"
  38. @childChanged="onChildChanged"
  39. @scrollTo="scrollToSection" />
  40. <!-- 功能入口 -->
  41. <view class="func-section" v-if="sectionVisible('func_entries')">
  42. <view class="func-grid">
  43. <view class="func-item" v-for="item in funcList" :key="item.label" @click="onFuncClick(item)">
  44. <view class="func-icon-wrap">
  45. <text class="func-icon">{{ item.icon }}</text>
  46. </view>
  47. <text class="func-label">{{ item.label }}</text>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 健康报告摘要(登录后可见) -->
  52. <view class="section" v-if="sectionVisible('health_report') && isLoggedIn">
  53. <view class="section-header">
  54. <text class="section-title">健康报告</text>
  55. <text class="section-more" @click="goToHealthReport">查看详情 ›</text>
  56. </view>
  57. <view class="report-card" v-if="latestReport">
  58. <view class="report-type-tag">{{ reportTypeLabel }}</view>
  59. <view class="report-score-row">
  60. <view class="score-circle">
  61. <text class="score-value">{{ latestReport.overallScore || '--' }}</text>
  62. <text class="score-label">综合评分</text>
  63. </view>
  64. <view class="report-meta">
  65. <view class="meta-item" v-if="latestReport.gutHealthScore">
  66. <text class="meta-label">肠道健康</text>
  67. <text class="meta-value">{{ latestReport.gutHealthScore }}</text>
  68. </view>
  69. <view class="meta-item" v-if="latestReport.nutritionScore">
  70. <text class="meta-label">营养状况</text>
  71. <text class="meta-value">{{ latestReport.nutritionScore }}</text>
  72. </view>
  73. <view class="meta-item" v-if="latestReport.gutAge">
  74. <text class="meta-label">肠道年龄</text>
  75. <text class="meta-value">{{ latestReport.gutAge }}</text>
  76. </view>
  77. </view>
  78. </view>
  79. <text class="report-date">报告日期:{{ formatDate(latestReport.reportDate) }}</text>
  80. </view>
  81. <view class="report-empty" v-else>
  82. <text class="empty-tip">暂无健康报告</text>
  83. <text class="empty-sub">规划师录入后将自动显示</text>
  84. </view>
  85. </view>
  86. <!-- 维度任务 -->
  87. <DimensionTasks
  88. v-if="isLoggedIn"
  89. dimensionCode="body"
  90. :tasks="dimensionTasks"
  91. @taskClick="onTaskClick"
  92. @moreTasks="goTasks" />
  93. <!-- 维度活动 -->
  94. <DimensionActivities
  95. v-if="isLoggedIn"
  96. dimensionCode="body"
  97. :activities="dimensionActivities"
  98. @activityClick="goActivityDetail"
  99. @moreActivities="goMoreActivities" />
  100. <!-- 维度商品 -->
  101. <DimensionProducts
  102. v-if="isLoggedIn"
  103. dimensionCode="body"
  104. :products="dimensionProducts"
  105. @productClick="goProductDetail"
  106. @moreProducts="goMoreProducts" />
  107. <!-- 健康小贴士 -->
  108. <view class="section" v-if="sectionVisible('health_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 healthTips" :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. <!-- 快捷操作按钮 -->
  120. <view class="section quick-actions" v-if="isLoggedIn">
  121. <view class="action-btn" @click="goToHealthReport">
  122. <text class="action-icon">📋</text>
  123. <text class="action-text">报告详情</text>
  124. </view>
  125. <view class="action-btn" @click="goToCheckin">
  126. <text class="action-icon">🏃</text>
  127. <text class="action-text">健康打卡</text>
  128. </view>
  129. </view>
  130. <!-- 底部占位 -->
  131. <view class="bottom-spacer"></view>
  132. </view>
  133. </template>
  134. <script>
  135. import PageBanner from '../../components/PageBanner.vue'
  136. import LoginGuideCard from '../../components/LoginGuideCard.vue'
  137. import HealthTips from '../../components/HealthTips.vue'
  138. import FamilyEnergyBar from '../../components/FamilyEnergyBar.vue'
  139. import UserQuickEntry from '../../components/UserQuickEntry.vue'
  140. import DimensionTasks from '../../components/DimensionTasks.vue'
  141. import DimensionActivities from '../../components/DimensionActivities.vue'
  142. import DimensionProducts from '../../components/DimensionProducts.vue'
  143. import FamilyMemberStrip from '../../components/FamilyMemberStrip.vue'
  144. import { getVisibleSections, getEnergyOverview, getChildren, getTodayTasksByCategory, getActivityList, getProductsByDomain, getFamilyEnergySandbox, getVisibleFamilyMembers } from '../../utils/api.js'
  145. const BASE_URL = 'http://localhost:8080'
  146. const healthRequest = function(url, data) {
  147. var token = uni.getStorageSync('token')
  148. return new Promise(function(resolve, reject) {
  149. uni.request({
  150. url: BASE_URL + url,
  151. method: 'POST',
  152. data: data,
  153. header: {
  154. 'Content-Type': 'application/json',
  155. 'Authorization': token ? 'Bearer ' + token : ''
  156. },
  157. success: function(res) {
  158. if (res.data.code === 200) {
  159. resolve(res.data)
  160. } else {
  161. reject(res.data)
  162. }
  163. },
  164. fail: function(err) {
  165. reject(err)
  166. }
  167. })
  168. })
  169. }
  170. export default {
  171. components: { PageBanner, LoginGuideCard, HealthTips, FamilyEnergyBar, UserQuickEntry, DimensionTasks, DimensionActivities, DimensionProducts, FamilyMemberStrip },
  172. data() {
  173. return {
  174. isLoggedIn: false,
  175. role: null,
  176. activeChildId: null,
  177. activeChildName: '',
  178. userName: '',
  179. children: [],
  180. familyMembersVisible: [],
  181. selectedMemberId: 0,
  182. selectedMemberType: 'all',
  183. sandboxData: null,
  184. dualDimension: null,
  185. visibleSections: [],
  186. latestReport: null,
  187. dimensionTasks: [],
  188. dimensionActivities: [],
  189. dimensionProducts: [],
  190. funcList: [
  191. { icon: '\u{1F3C3}', label: '运动', needLogin: true, page: '' },
  192. { icon: '\u{1F957}', label: '饮食', needLogin: true, page: '' },
  193. { icon: '\u{1F634}', label: '作息', needLogin: true, page: '' },
  194. { icon: '\u{1F9A0}', label: '菌群', needLogin: true, page: '' },
  195. { icon: '\u{1F9D8}', label: '冥想', needLogin: true, page: '' }
  196. ],
  197. healthTips: [
  198. { id: 1, title: '儿童每日运动指南', summary: '不同年龄段儿童每天需要多少运动量?科学运动助力健康成长。' },
  199. { id: 2, title: '五行饮食搭配法则', summary: '根据五行理论合理搭配膳食,均衡营养从每一餐开始。' },
  200. { id: 3, title: '优质睡眠从小养成', summary: '帮助孩子建立规律的作息习惯,提升睡眠质量。' },
  201. { id: 4, title: '肠道菌群与免疫力', summary: '了解益生菌对儿童健康的重要作用,从内部提升抵抗力。' }
  202. ]
  203. }
  204. },
  205. computed: {
  206. reportTypeLabel: function() {
  207. if (!this.latestReport) return ''
  208. return this.latestReport.reportType === 'gut_flora' ? '肠道检测报告' : '体检报告'
  209. }
  210. },
  211. onShow() {
  212. var token = uni.getStorageSync('token')
  213. this.isLoggedIn = !!token
  214. if (this.isLoggedIn) {
  215. this.role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  216. this.userName = uni.getStorageSync('nickname') || uni.getStorageSync('userName') || '家长'
  217. }
  218. this.loadSectionConfig()
  219. if (this.isLoggedIn) {
  220. this.loadChildren()
  221. this.loadFamilyMembersVisible()
  222. }
  223. },
  224. methods: {
  225. loadSectionConfig: function() {
  226. var baseSections = ['func_entries']
  227. if (!uni.getStorageSync('token')) {
  228. this.visibleSections = baseSections
  229. return
  230. }
  231. var role = uni.getStorageSync('currentRole') || uni.getStorageSync('role') || null
  232. var self = this
  233. getVisibleSections({ pageKey: 'body', role: role }).then(function(res) {
  234. if (res.code === 200 && res.data) {
  235. var keys = res.data.map(function(s) { return s.sectionKey })
  236. var merged = baseSections.slice()
  237. keys.forEach(function(k) { if (merged.indexOf(k) === -1) merged.push(k) })
  238. self.visibleSections = merged
  239. }
  240. }).catch(function(e) {
  241. self.visibleSections = ['func_entries']
  242. })
  243. },
  244. loadChildren: function() {
  245. var self = this
  246. getChildren().then(function(res) {
  247. if (res.code === 200 && res.data) {
  248. self.children = res.data
  249. var savedChildId = uni.getStorageSync('currentChildId')
  250. var found = false
  251. for (var i = 0; i < self.children.length; i++) {
  252. if (self.children[i].childId === savedChildId) {
  253. self.activeChildId = savedChildId
  254. self.activeChildName = self.children[i].name || self.children[i].nickname || '孩子'
  255. found = true
  256. break
  257. }
  258. }
  259. if (!found && self.children.length > 0) {
  260. self.activeChildId = self.children[0].childId
  261. self.activeChildName = self.children[0].name || self.children[0].nickname || '孩子'
  262. uni.setStorageSync('currentChildId', self.activeChildId)
  263. }
  264. if (self.activeChildId) {
  265. self.loadDashboardData()
  266. }
  267. }
  268. }).catch(function(e) {
  269. console.log('获取孩子列表失败', e)
  270. })
  271. },
  272. loadDashboardData: function() {
  273. if (!this.activeChildId) return
  274. this.loadHealthReport()
  275. this.loadEnergyData()
  276. this.loadDimensionTasks()
  277. this.loadDimensionActivities()
  278. this.loadDimensionProducts()
  279. this.loadSandboxData()
  280. },
  281. loadSandboxData: function() {
  282. var self = this
  283. getFamilyEnergySandbox().then(function(res) {
  284. if (res && res.data) {
  285. self.sandboxData = res.data
  286. }
  287. }).catch(function(e) {
  288. console.log('获取沙盘数据失败', e)
  289. })
  290. },
  291. loadHealthReport: function() {
  292. var self = this
  293. healthRequest('/api/health/report/latest', { childId: this.activeChildId }).then(function(res) {
  294. if (res.data) {
  295. self.latestReport = res.data
  296. }
  297. }).catch(function(e) {
  298. console.log('获取健康报告失败', e)
  299. })
  300. },
  301. loadEnergyData: function() {
  302. var self = this
  303. getEnergyOverview(this.activeChildId).then(function(res) {
  304. if (res && res.data) {
  305. var dims = res.data.dimensions
  306. if (dims && dims.length > 0) {
  307. for (var i = 0; i < dims.length; i++) {
  308. if (dims[i].code === 'body') {
  309. self.dualDimension = dims[i]
  310. break
  311. }
  312. }
  313. }
  314. }
  315. }).catch(function(e) {
  316. console.log('获取能量概览失败', e)
  317. })
  318. },
  319. loadDimensionTasks: function() {
  320. var self = this
  321. if (!this.activeChildId) return
  322. getTodayTasksByCategory(this.activeChildId, 'body').then(function(res) {
  323. if (res && res.data) {
  324. self.dimensionTasks = Array.isArray(res.data) ? res.data.slice(0, 5) : []
  325. }
  326. }).catch(function() { self.dimensionTasks = [] })
  327. },
  328. loadDimensionActivities: function() {
  329. var self = this
  330. getActivityList({ dimensionCode: 'body', page: 1, size: 3 }).then(function(res) {
  331. if (res && res.data) {
  332. var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
  333. self.dimensionActivities = list.slice(0, 3)
  334. }
  335. }).catch(function() { self.dimensionActivities = [] })
  336. },
  337. loadDimensionProducts: function() {
  338. var self = this
  339. getProductsByDomain('body', 1, 4).then(function(res) {
  340. if (res && res.data) {
  341. var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
  342. self.dimensionProducts = list.slice(0, 4)
  343. }
  344. }).catch(function() { self.dimensionProducts = [] })
  345. },
  346. onChildChanged: function(child) {
  347. this.activeChildId = child.childId
  348. this.activeChildName = child.name || child.nickname || '孩子'
  349. this.loadDashboardData()
  350. },
  351. loadFamilyMembersVisible: function() {
  352. var self = this
  353. getVisibleFamilyMembers().then(function(res) {
  354. self.familyMembersVisible = res.data || []
  355. }).catch(function(e) {
  356. console.log('获取可见家庭成员失败', e)
  357. self.familyMembersVisible = []
  358. })
  359. },
  360. onMemberSelect: function(member) {
  361. if (member.memberType === 'all') {
  362. this.selectedMemberId = 0
  363. this.selectedMemberType = 'all'
  364. } else {
  365. this.selectedMemberId = member.id
  366. this.selectedMemberType = member.memberType
  367. }
  368. // TODO: 根据选中成员重新加载对应维度数据
  369. },
  370. scrollToSection: function(section) {
  371. uni.pageScrollTo({ selector: '#' + section, duration: 300 })
  372. },
  373. onTaskClick: function(task) {
  374. uni.navigateTo({ url: '/pages/tasks/tasks' })
  375. },
  376. goActivityDetail: function(act) {
  377. if (act && act.id) uni.navigateTo({ url: '/pages/discover/index?type=activity&id=' + act.id })
  378. },
  379. goMoreActivities: function() {
  380. uni.navigateTo({ url: '/pages/discover/index?type=activity&dimension=body' })
  381. },
  382. goProductDetail: function(prod) {
  383. if (prod && prod.id) uni.navigateTo({ url: '/pages/discover/product-detail/product-detail?id=' + prod.id })
  384. },
  385. goMoreProducts: function() {
  386. uni.navigateTo({ url: '/pages/discover/index?type=product&domain=body' })
  387. },
  388. goTasks: function() { uni.switchTab({ url: '/pages/tasks/tasks' }) },
  389. sectionVisible: function(key) {
  390. return this.visibleSections.length === 0 || this.visibleSections.indexOf(key) !== -1
  391. },
  392. onFuncClick: function(item) {
  393. if (item.needLogin && !this.isLoggedIn) {
  394. uni.showModal({
  395. title: '提示',
  396. content: '请先登录后使用此功能',
  397. success: function(res) {
  398. if (res.confirm) uni.navigateTo({ url: '/pages/login/login' })
  399. }
  400. })
  401. return
  402. }
  403. if (item.page) uni.navigateTo({ url: item.page })
  404. },
  405. goToHealthReport: function() {
  406. if (!this.activeChildId) {
  407. uni.showToast({ title: '请先选择孩子', icon: 'none' })
  408. return
  409. }
  410. uni.navigateTo({ url: '/pages/body/health-report?childId=' + this.activeChildId })
  411. },
  412. goToCheckin: function() {
  413. if (!this.activeChildId) {
  414. uni.showToast({ title: '请先选择孩子', icon: 'none' })
  415. return
  416. }
  417. uni.navigateTo({ url: '/pages/body/checkin?childId=' + this.activeChildId })
  418. },
  419. formatDate: function(dateStr) {
  420. if (!dateStr) return '--'
  421. try {
  422. var d = new Date(dateStr)
  423. var y = d.getFullYear()
  424. var m = ('' + (d.getMonth() + 1)).padStart(2, '0')
  425. var day = ('' + d.getDate()).padStart(2, '0')
  426. return y + '-' + m + '-' + day
  427. } catch (e) {
  428. return dateStr
  429. }
  430. }
  431. }
  432. }
  433. </script>
  434. <style scoped>
  435. .body-container {
  436. min-height: 100vh;
  437. background: #f5f7fa;
  438. padding-bottom: 120rpx;
  439. }
  440. /* ===== 功能入口 ===== */
  441. .func-section {
  442. margin: 20rpx 30rpx;
  443. }
  444. .func-grid {
  445. display: flex;
  446. flex-direction: row;
  447. justify-content: space-between;
  448. background: #fff;
  449. border-radius: 20rpx;
  450. padding: 24rpx 16rpx;
  451. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  452. }
  453. .func-item {
  454. display: flex;
  455. flex-direction: column;
  456. align-items: center;
  457. flex: 1;
  458. }
  459. .func-icon-wrap {
  460. width: 80rpx;
  461. height: 80rpx;
  462. border-radius: 40rpx;
  463. background: linear-gradient(135deg, #D6EAF8, #EBF2FA);
  464. display: flex;
  465. align-items: center;
  466. justify-content: center;
  467. margin-bottom: 10rpx;
  468. }
  469. .func-icon {
  470. font-size: 40rpx;
  471. }
  472. .func-label {
  473. font-size: 22rpx;
  474. color: #666;
  475. font-weight: 500;
  476. }
  477. /* ===== 通用区块 ===== */
  478. .section {
  479. margin: 20rpx 30rpx;
  480. }
  481. .section-header {
  482. display: flex;
  483. flex-direction: row;
  484. align-items: center;
  485. justify-content: space-between;
  486. margin-bottom: 16rpx;
  487. }
  488. .section-title {
  489. font-size: 30rpx;
  490. font-weight: bold;
  491. color: #333;
  492. }
  493. .section-more {
  494. font-size: 24rpx;
  495. color: #5B9BD5;
  496. }
  497. /* ===== 健康报告 ===== */
  498. .report-card {
  499. background: #fff;
  500. border-radius: 20rpx;
  501. padding: 24rpx;
  502. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  503. }
  504. .report-type-tag {
  505. display: inline-block;
  506. background: #E8F5E9;
  507. color: #2E7D32;
  508. font-size: 22rpx;
  509. padding: 4rpx 16rpx;
  510. border-radius: 20rpx;
  511. margin-bottom: 16rpx;
  512. }
  513. .report-score-row {
  514. display: flex;
  515. flex-direction: row;
  516. align-items: center;
  517. }
  518. .score-circle {
  519. width: 140rpx;
  520. height: 140rpx;
  521. border-radius: 70rpx;
  522. background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  523. display: flex;
  524. flex-direction: column;
  525. align-items: center;
  526. justify-content: center;
  527. margin-right: 24rpx;
  528. }
  529. .score-value {
  530. font-size: 48rpx;
  531. font-weight: bold;
  532. color: #1565C0;
  533. }
  534. .score-label {
  535. font-size: 20rpx;
  536. color: #64B5F6;
  537. }
  538. .report-meta {
  539. flex: 1;
  540. }
  541. .meta-item {
  542. display: flex;
  543. flex-direction: row;
  544. align-items: center;
  545. margin-bottom: 12rpx;
  546. }
  547. .meta-label {
  548. font-size: 24rpx;
  549. color: #666;
  550. width: 140rpx;
  551. }
  552. .meta-value {
  553. font-size: 26rpx;
  554. color: #333;
  555. font-weight: 500;
  556. }
  557. .report-date {
  558. font-size: 22rpx;
  559. color: #bbb;
  560. margin-top: 16rpx;
  561. }
  562. .report-empty {
  563. background: #fff;
  564. border-radius: 20rpx;
  565. padding: 40rpx;
  566. text-align: center;
  567. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  568. }
  569. .empty-tip {
  570. font-size: 28rpx;
  571. color: #999;
  572. display: block;
  573. }
  574. .empty-sub {
  575. font-size: 24rpx;
  576. color: #ccc;
  577. display: block;
  578. margin-top: 8rpx;
  579. }
  580. /* ===== 健康小贴士 ===== */
  581. .tips-list {
  582. display: flex;
  583. flex-direction: column;
  584. }
  585. .tip-card {
  586. background: #fff;
  587. border-radius: 20rpx;
  588. padding: 24rpx;
  589. margin-bottom: 16rpx;
  590. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  591. }
  592. .tip-title {
  593. font-size: 28rpx;
  594. font-weight: bold;
  595. color: #333;
  596. display: block;
  597. margin-bottom: 10rpx;
  598. }
  599. .tip-summary {
  600. font-size: 24rpx;
  601. color: #888;
  602. line-height: 1.5;
  603. display: block;
  604. }
  605. /* ===== 快捷操作 ===== */
  606. .quick-actions {
  607. display: flex;
  608. flex-direction: row;
  609. margin-top: 30rpx;
  610. }
  611. .action-btn {
  612. flex: 1;
  613. background: #fff;
  614. border-radius: 16rpx;
  615. padding: 24rpx;
  616. display: flex;
  617. flex-direction: column;
  618. align-items: center;
  619. margin-right: 20rpx;
  620. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  621. }
  622. .action-btn:last-child {
  623. margin-right: 0;
  624. }
  625. .action-icon {
  626. font-size: 48rpx;
  627. margin-bottom: 8rpx;
  628. }
  629. .action-text {
  630. font-size: 26rpx;
  631. color: #666;
  632. }
  633. /* ===== 底部 ===== */
  634. .bottom-spacer {
  635. height: 120rpx;
  636. }
  637. .func-item:active, .action-btn:active {
  638. opacity: 0.7;
  639. }
  640. </style>