articles.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template>
  2. <view class="container">
  3. <!-- 自定义导航栏 -->
  4. <view class="nav-header">
  5. <view class="nav-left" @click="onBack">
  6. <text class="nav-back-icon">&#x2190;</text>
  7. </view>
  8. <view class="nav-search" @click="focusSearch">
  9. <text class="nav-search-icon">&#x1F50D;</text>
  10. <input
  11. v-if="searchFocused || searchKeyword"
  12. class="nav-search-input"
  13. v-model="searchKeyword"
  14. placeholder="搜索文章..."
  15. confirm-type="search"
  16. @confirm="onSearch"
  17. @blur="onSearchBlur"
  18. />
  19. <text v-else class="nav-search-placeholder">搜索文章...</text>
  20. </view>
  21. <view class="nav-right" @click="goCreate">
  22. <text class="nav-add-btn">+</text>
  23. </view>
  24. </view>
  25. <scroll-view scroll-y class="page-scroll" @scrolltolower="onLoadMore">
  26. <!-- 品牌头部 -->
  27. <PageBanner :theme="bannerTheme"
  28. :tagline="bannerTagline"
  29. :quote="bannerQuote" />
  30. <!-- 维度筛选 -->
  31. <view class="filter-section">
  32. <scroll-view scroll-x enable-flex show-scrollbar="false" class="dimension-scroll">
  33. <view class="filter-chips">
  34. <view
  35. v-for="dim in dimensionList"
  36. :key="dim.code"
  37. :class="['filter-chip', currentDimension === dim.code ? 'active' : '']"
  38. :style="dim.activeStyle"
  39. @click="onDimensionChange(dim.code)"
  40. >
  41. {{ dim.label }}
  42. </view>
  43. </view>
  44. </scroll-view>
  45. </view>
  46. <!-- 分类筛选 -->
  47. <view class="filter-section" v-if="categoryList.length > 1">
  48. <scroll-view scroll-x enable-flex show-scrollbar="false" class="category-scroll">
  49. <view class="filter-chips">
  50. <view
  51. v-for="cat in categoryList"
  52. :key="cat.value"
  53. :class="['filter-chip', currentCategory === cat.value ? 'active' : '']"
  54. @click="onCategoryChange(cat.value)"
  55. >
  56. {{ cat.label }}
  57. </view>
  58. </view>
  59. </scroll-view>
  60. </view>
  61. <!-- 全部文章 -->
  62. <view class="all-articles-section">
  63. <view class="section-header">
  64. <text class="section-title">全部文章</text>
  65. <text class="section-subtitle" v-if="total > 0">共 {{ total }} 篇</text>
  66. </view>
  67. <view v-if="loading && articles.length === 0" class="loading-wrap">
  68. <text class="loading-text">加载中...</text>
  69. </view>
  70. <view v-else-if="articles.length === 0" class="empty-wrap">
  71. <text class="empty-icon">📚</text>
  72. <text class="empty-text">暂无相关知识</text>
  73. </view>
  74. <view v-else class="article-grid">
  75. <view
  76. v-for="item in articles"
  77. :key="item.id"
  78. class="article-card"
  79. @click="goDetail(item.id)"
  80. >
  81. <image
  82. class="article-cover"
  83. :src="getImageUrl(item.coverImage) || '/static/default-article.png'"
  84. mode="aspectFill"
  85. />
  86. <view class="article-body">
  87. <view class="article-meta">
  88. <text class="article-category">{{ item.categoryName || '知识' }}</text>
  89. <view class="article-type-tags">
  90. <text v-if="item.contentType" class="type-tag" :class="'type-' + item.contentType">{{ contentTypeLabel(item.contentType) }}</text>
  91. <text v-if="item.difficultyLevel > 0" class="difficulty-tag">{{ '★'.repeat(item.difficultyLevel) }}</text>
  92. </view>
  93. </view>
  94. <text class="article-title">{{ item.title }}</text>
  95. <text class="article-summary" v-if="item.summary">{{ item.summary }}</text>
  96. <view class="article-footer">
  97. <text class="article-author">{{ item.author || '浠艾福' }}</text>
  98. <text class="article-read-count">阅读 {{ item.readCount || 0 }}</text>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <view v-if="loadingMore" class="loading-more">
  104. <text class="loading-text">加载中...</text>
  105. </view>
  106. <view v-if="noMore && articles.length > 0" class="no-more">
  107. <text class="no-more-text">— 没有更多了 —</text>
  108. </view>
  109. <view v-if="!isLoggedIn" class="login-hint-bar">
  110. <text class="login-hint-text">🔒 登录后解锁全部内容</text>
  111. </view>
  112. </view>
  113. <view class="bottom-spacer"></view>
  114. </scroll-view>
  115. </view>
  116. </template>
  117. <script>
  118. import PageBanner from '../../components/PageBanner.vue'
  119. import { getArticleCategories, getArticleList, getFeaturedArticles } from '../../utils/api.js'
  120. import config from '@/config.js'
  121. var dimensionConfig = {
  122. all: { label: '全部', color: '#64748B', theme: 'mind-wisdom', tagline: '探索知识,滋养成长', quote: '学而时习之,不亦说乎' },
  123. body: { label: '身', color: '#FF8C42', theme: 'health', tagline: '主动健康,从知识开始', quote: '健康是人生的第一财富' },
  124. mind: { label: '心', color: '#FF6B9D', theme: 'mind-wisdom', tagline: '探索内心世界,培养健康心智', quote: '知己知彼,百战不殆' },
  125. wisdom: { label: '智', color: '#6366F1', theme: 'wisdom', tagline: '聪明学习,快乐成长', quote: '学而不思则罔,思而不学则殆' },
  126. action:{ label: '行', color: '#10B981', theme: 'action', tagline: '知行合一,方得始终', quote: '纸上得来终觉浅,绝知此事要躬行' },
  127. wealth:{ label: '富', color: '#F59E0B', theme: 'wealth', tagline: '理财智慧,从小培养', quote: '君子爱财,取之有道' }
  128. }
  129. export default {
  130. components: { PageBanner },
  131. data() {
  132. return {
  133. currentDimension: 'all',
  134. categoryList: [{ id: '', name: '全部' }],
  135. categoryMap: {},
  136. currentCategory: '',
  137. articles: [],
  138. featuredArticles: [],
  139. page: 1,
  140. size: 10,
  141. total: 0,
  142. loading: false,
  143. loadingMore: false,
  144. noMore: false,
  145. isLoggedIn: false,
  146. searchKeyword: '',
  147. searchFocused: false
  148. }
  149. },
  150. computed: {
  151. dimensionList: function() {
  152. var self = this
  153. return Object.keys(dimensionConfig).map(function(k) {
  154. var cfg = dimensionConfig[k]
  155. var activeStyle = ''
  156. if (k === self.currentDimension) {
  157. activeStyle = 'background:' + cfg.color + ';color:#fff;'
  158. }
  159. return { code: k, label: cfg.label, color: cfg.color, activeStyle: activeStyle }
  160. })
  161. },
  162. bannerTheme: function() {
  163. return dimensionConfig[this.currentDimension] ? dimensionConfig[this.currentDimension].theme : 'mind-wisdom'
  164. },
  165. bannerTagline: function() {
  166. return dimensionConfig[this.currentDimension] ? dimensionConfig[this.currentDimension].tagline : ''
  167. },
  168. bannerQuote: function() {
  169. return dimensionConfig[this.currentDimension] ? dimensionConfig[this.currentDimension].quote : ''
  170. }
  171. },
  172. onLoad: function(options) {
  173. this.isLoggedIn = !!uni.getStorageSync('token')
  174. this.loadFeaturedArticles()
  175. if (options && options.dimension && dimensionConfig[options.dimension]) {
  176. this.currentDimension = options.dimension
  177. }
  178. this.loadCategories()
  179. },
  180. onShow: function() {
  181. this.isLoggedIn = !!uni.getStorageSync('token')
  182. },
  183. methods: {
  184. loadFeaturedArticles: function() {
  185. var self = this
  186. getFeaturedArticles({ size: 5 }).then(function(res) {
  187. if (res.code === 200 && res.data) {
  188. var gradientColors = [
  189. 'linear-gradient(135deg, #6366F1, #818CF8)',
  190. 'linear-gradient(135deg, #8B5CF6, #A78BFA)',
  191. 'linear-gradient(135deg, #5B9BD5, #8FC5E8)',
  192. 'linear-gradient(135deg, #10B981, #34D399)',
  193. 'linear-gradient(135deg, #F97316, #FB923C)'
  194. ]
  195. var list = Array.isArray(res.data) ? res.data : (res.data.records || [])
  196. self.featuredArticles = list.map(function(item, index) {
  197. return {
  198. id: item.id,
  199. category: item.categoryName || '成长文章',
  200. categoryColor: gradientColors[index % gradientColors.length],
  201. title: item.title || '',
  202. summary: item.summary || '',
  203. views: item.viewCount ? String(item.viewCount) : '0',
  204. date: item.publishedAt ? item.publishedAt.slice(0, 10) : ''
  205. }
  206. })
  207. }
  208. }).catch(function() {})
  209. },
  210. contentTypeLabel: function(type) {
  211. var labels = { article: '文章', knowledge: '知识点', course: '课程', tip: '贴士' }
  212. return labels[type] || type
  213. },
  214. async loadCategories() {
  215. try {
  216. const res = await getArticleCategories()
  217. if (res.code === 200 && res.data) {
  218. const cats = Array.isArray(res.data) ? res.data : []
  219. var map = {}
  220. cats.forEach(function(c) { map[c.id] = c.name })
  221. this.categoryMap = map
  222. this.categoryList = [{ id: '', name: '全部' }].concat(cats)
  223. }
  224. } catch (e) {
  225. this.categoryList = [
  226. { id: '', name: '全部' },
  227. { id: 1, name: '心理健康' },
  228. { id: 2, name: '情绪管理' }
  229. ]
  230. }
  231. this.loadArticles()
  232. },
  233. onDimensionChange: function(code) {
  234. this.currentDimension = code
  235. this.page = 1
  236. this.articles = []
  237. this.noMore = false
  238. this.loadArticles()
  239. },
  240. onCategoryChange: function(id) {
  241. this.currentCategory = id
  242. this.page = 1
  243. this.articles = []
  244. this.noMore = false
  245. this.loadArticles()
  246. },
  247. async loadArticles() {
  248. if (this.loading) return
  249. this.loading = true
  250. var self = this
  251. try {
  252. var params = { page: this.page, size: this.size }
  253. if (this.currentCategory) {
  254. params.categoryId = this.currentCategory
  255. }
  256. if (this.currentDimension !== 'all') {
  257. params.dimensionCode = this.currentDimension
  258. }
  259. if (this.searchKeyword && this.searchKeyword.trim()) {
  260. params.keyword = this.searchKeyword.trim()
  261. }
  262. const res = await getArticleList(params)
  263. if (res.code === 200 && res.data) {
  264. var pageData = res.data
  265. var list = pageData.records || []
  266. var mapped = list.map(function(item) {
  267. return {
  268. id: item.id,
  269. title: item.title || '',
  270. summary: self.stripHtml(item.summary || item.content),
  271. coverImage: item.coverImage || '',
  272. author: item.author || '浠艾福',
  273. categoryName: item.categoryName || item.category || '',
  274. publishDate: item.publishedAt ? item.publishedAt.slice(0, 10) : '',
  275. readCount: item.viewCount || 0,
  276. contentType: item.contentType || '',
  277. difficultyLevel: item.difficultyLevel || 0
  278. }
  279. })
  280. if (this.page === 1) {
  281. this.articles = mapped
  282. } else {
  283. this.articles = this.articles.concat(mapped)
  284. }
  285. this.total = pageData.total || 0
  286. this.noMore = this.articles.length >= this.total
  287. } else {
  288. if (this.page === 1) {
  289. this.articles = []
  290. }
  291. }
  292. } catch (e) {
  293. uni.showToast({ title: '加载失败', icon: 'none' })
  294. } finally {
  295. this.loading = false
  296. }
  297. },
  298. onLoadMore() {
  299. if (this.noMore || this.loading) return
  300. this.page++
  301. this.loadArticles()
  302. },
  303. goDetail(id) {
  304. uni.navigateTo({ url: '/pages/article-center/article-detail?id=' + id })
  305. },
  306. stripHtml: function(html) {
  307. if (!html) return ''
  308. return html
  309. .replace(/<style[\s\S]*?<\/style>/gi, ' ')
  310. .replace(/<script[\s\S]*?<\/script>/gi, ' ')
  311. .replace(/<[^>]+>/g, ' ')
  312. .replace(/&nbsp;/gi, ' ')
  313. .replace(/&lt;/gi, '<')
  314. .replace(/&gt;/gi, '>')
  315. .replace(/&amp;/gi, '&')
  316. .replace(/&quot;/gi, '"')
  317. .replace(/\s+/g, ' ')
  318. .trim()
  319. },
  320. goCreate() {
  321. if (this.isLoggedIn) {
  322. uni.navigateTo({ url: '/pages/article-center/article-edit' })
  323. } else {
  324. uni.navigateTo({ url: '/pages/login/login?redirect=' + encodeURIComponent('/pages/mind-extra/articles') })
  325. }
  326. },
  327. onBack() {
  328. uni.navigateBack()
  329. },
  330. focusSearch: function() {
  331. this.searchFocused = true
  332. },
  333. onSearch: function() {
  334. this.page = 1
  335. this.articles = []
  336. this.noMore = false
  337. this.loadArticles()
  338. },
  339. onSearchBlur: function() {
  340. if (!this.searchKeyword) {
  341. this.searchFocused = false
  342. }
  343. },
  344. getImageUrl: function(path) {
  345. return config.API_BASE_URL + path
  346. }
  347. }
  348. }
  349. </script>
  350. <style scoped>
  351. .container {
  352. display: flex;
  353. flex-direction: column;
  354. height: 100vh;
  355. background: #f5f7fa;
  356. }
  357. /* 自定义导航栏 */
  358. .nav-header {
  359. display: flex;
  360. align-items: center;
  361. justify-content: space-between;
  362. padding: 80rpx 24rpx 16rpx;
  363. background: linear-gradient(135deg, #667eea, #764ba2);
  364. position: relative;
  365. z-index: 20;
  366. }
  367. .nav-left {
  368. width: 60rpx;
  369. height: 60rpx;
  370. display: flex;
  371. align-items: center;
  372. justify-content: center;
  373. }
  374. .nav-back-icon {
  375. font-size: 36rpx;
  376. color: #fff;
  377. font-weight: bold;
  378. }
  379. .nav-search {
  380. flex: 1;
  381. display: flex;
  382. align-items: center;
  383. background: rgba(255,255,255,0.25);
  384. border-radius: 32rpx;
  385. padding: 10rpx 20rpx;
  386. margin: 0 16rpx;
  387. }
  388. .nav-search-icon {
  389. font-size: 24rpx;
  390. margin-right: 10rpx;
  391. flex-shrink: 0;
  392. }
  393. .nav-search-placeholder {
  394. font-size: 24rpx;
  395. color: rgba(255,255,255,0.7);
  396. }
  397. .nav-search-input {
  398. flex: 1;
  399. font-size: 24rpx;
  400. color: #fff;
  401. background: transparent;
  402. }
  403. .nav-search-input::placeholder {
  404. color: rgba(255,255,255,0.7);
  405. }
  406. .nav-right {
  407. width: 60rpx;
  408. height: 60rpx;
  409. display: flex;
  410. align-items: center;
  411. justify-content: center;
  412. }
  413. .nav-add-btn {
  414. font-size: 48rpx;
  415. color: #fff;
  416. font-weight: 300;
  417. line-height: 1;
  418. }
  419. /* 页面滚动容器 */
  420. .page-scroll {
  421. flex: 1;
  422. }
  423. /* 区块通用标题 */
  424. .section-header {
  425. display: flex;
  426. align-items: baseline;
  427. padding: 0 4rpx;
  428. margin-bottom: 20rpx;
  429. }
  430. .section-title {
  431. font-size: 30rpx;
  432. font-weight: bold;
  433. color: #333;
  434. }
  435. .section-subtitle {
  436. font-size: 24rpx;
  437. color: #999;
  438. margin-left: 12rpx;
  439. }
  440. /* ===== 推荐阅读 ===== */
  441. .featured-section {
  442. margin: 24rpx 24rpx 16rpx;
  443. padding: 0 4rpx;
  444. }
  445. .featured-grid {
  446. display: flex;
  447. flex-direction: column;
  448. }
  449. .featured-card {
  450. background: #fff;
  451. border-radius: 20rpx;
  452. padding: 28rpx 24rpx;
  453. box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
  454. margin-bottom: 20rpx;
  455. }
  456. .featured-card:active {
  457. opacity: 0.8;
  458. }
  459. .featured-category {
  460. display: inline-block;
  461. padding: 4rpx 18rpx;
  462. border-radius: 20rpx;
  463. margin-bottom: 14rpx;
  464. }
  465. .featured-category-text {
  466. font-size: 20rpx;
  467. color: #fff;
  468. font-weight: 500;
  469. }
  470. .featured-title {
  471. font-size: 28rpx;
  472. font-weight: bold;
  473. color: #333;
  474. display: block;
  475. margin-bottom: 10rpx;
  476. line-height: 1.4;
  477. }
  478. .featured-summary {
  479. font-size: 24rpx;
  480. color: #888;
  481. line-height: 1.5;
  482. display: block;
  483. margin-bottom: 16rpx;
  484. overflow: hidden;
  485. text-overflow: ellipsis;
  486. display: -webkit-box;
  487. -webkit-line-clamp: 2;
  488. -webkit-box-orient: vertical;
  489. }
  490. .featured-meta {
  491. display: flex;
  492. flex-direction: row;
  493. align-items: center;
  494. }
  495. .featured-views {
  496. font-size: 22rpx;
  497. color: #bbb;
  498. margin-right: 20rpx;
  499. }
  500. .featured-date {
  501. font-size: 22rpx;
  502. color: #bbb;
  503. margin-left: auto;
  504. }
  505. /* ===== 全部文章 ===== */
  506. .all-articles-section {
  507. margin: 8rpx 24rpx 0;
  508. padding: 0 4rpx;
  509. }
  510. /* 筛选条 */
  511. .filter-section {
  512. background: #fff;
  513. padding: 16rpx 0 12rpx;
  514. border-bottom: 1rpx solid #eee;
  515. }
  516. .dimension-scroll,
  517. .category-scroll {
  518. white-space: nowrap;
  519. }
  520. .dimension-scroll {
  521. border-bottom: 1rpx solid #f0f0f0;
  522. padding-bottom: 12rpx;
  523. }
  524. .filter-chips {
  525. display: flex;
  526. padding: 0 20rpx;
  527. gap: 16rpx;
  528. }
  529. .filter-chip {
  530. display: inline-block;
  531. padding: 8rpx 24rpx;
  532. font-size: 24rpx;
  533. color: #666;
  534. background: #f0f0f0;
  535. border-radius: 30rpx;
  536. flex-shrink: 0;
  537. }
  538. .filter-chip.active {
  539. background: #5B9BD5;
  540. color: #fff;
  541. }
  542. .filter-chip:first-child {
  543. margin-left: 4rpx;
  544. }
  545. /* 文章元信息标签 */
  546. .article-meta {
  547. display: flex;
  548. align-items: center;
  549. flex-wrap: wrap;
  550. margin-bottom: 10rpx;
  551. }
  552. .article-type-tags {
  553. display: flex;
  554. align-items: center;
  555. gap: 8rpx;
  556. margin-left: auto;
  557. }
  558. .type-tag {
  559. font-size: 18rpx;
  560. padding: 2rpx 10rpx;
  561. border-radius: 6rpx;
  562. background: #f0f0f0;
  563. color: #666;
  564. }
  565. .type-tag.type-article {
  566. background: #e8f4fd;
  567. color: #2b7fc4;
  568. }
  569. .type-tag.type-knowledge {
  570. background: #e8f8ee;
  571. color: #2a9055;
  572. }
  573. .type-tag.type-course {
  574. background: #fef3e2;
  575. color: #c47a2b;
  576. }
  577. .type-tag.type-tip {
  578. background: #f3e8fd;
  579. color: #7b2bc4;
  580. }
  581. .difficulty-tag {
  582. font-size: 18rpx;
  583. color: #f59e0b;
  584. }
  585. .loading-wrap,
  586. .empty-wrap {
  587. display: flex;
  588. flex-direction: column;
  589. align-items: center;
  590. padding-top: 120rpx;
  591. }
  592. .loading-text {
  593. font-size: 26rpx;
  594. color: #999;
  595. }
  596. .empty-icon {
  597. font-size: 100rpx;
  598. margin-bottom: 24rpx;
  599. }
  600. .empty-text {
  601. font-size: 28rpx;
  602. color: #999;
  603. }
  604. .article-grid {
  605. padding: 20rpx 24rpx;
  606. }
  607. .article-card {
  608. background: #fff;
  609. border-radius: 16rpx;
  610. overflow: hidden;
  611. margin-bottom: 20rpx;
  612. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.06);
  613. }
  614. .article-cover {
  615. width: 100%;
  616. height: 280rpx;
  617. background: linear-gradient(135deg, #667eea, #764ba2);
  618. }
  619. .article-body {
  620. padding: 20rpx;
  621. }
  622. .article-category {
  623. font-size: 20rpx;
  624. color: #5B9BD5;
  625. background: rgba(91,155,213,0.1);
  626. padding: 2rpx 12rpx;
  627. border-radius: 8rpx;
  628. margin-right: 12rpx;
  629. }
  630. .article-date {
  631. font-size: 20rpx;
  632. color: #999;
  633. }
  634. .article-title {
  635. display: block;
  636. font-size: 28rpx;
  637. font-weight: bold;
  638. color: #333;
  639. margin-bottom: 8rpx;
  640. line-height: 1.4;
  641. }
  642. .article-summary {
  643. display: block;
  644. font-size: 24rpx;
  645. color: #666;
  646. line-height: 1.5;
  647. margin-bottom: 12rpx;
  648. overflow: hidden;
  649. text-overflow: ellipsis;
  650. display: -webkit-box;
  651. -webkit-line-clamp: 2;
  652. -webkit-box-orient: vertical;
  653. }
  654. .article-footer {
  655. display: flex;
  656. justify-content: space-between;
  657. align-items: center;
  658. }
  659. .article-author {
  660. font-size: 20rpx;
  661. color: #999;
  662. }
  663. .article-read-count {
  664. font-size: 20rpx;
  665. color: #bbb;
  666. }
  667. .loading-more,
  668. .no-more {
  669. text-align: center;
  670. padding: 30rpx;
  671. }
  672. .no-more-text {
  673. font-size: 24rpx;
  674. color: #ccc;
  675. }
  676. /* 未登录提示 */
  677. .login-hint-bar {
  678. text-align: center;
  679. padding: 20rpx;
  680. background: #fef9e7;
  681. border-top: 1rpx solid #f0e6c0;
  682. margin: 20rpx 24rpx 0;
  683. border-radius: 12rpx;
  684. }
  685. .login-hint-text {
  686. font-size: 24rpx;
  687. color: #b8860b;
  688. }
  689. /* 底部占位 */
  690. .bottom-spacer {
  691. height: 120rpx;
  692. }
  693. </style>