user-detail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789
  1. <template>
  2. <view class="user-detail-page">
  3. <!-- 自定义导航栏 -->
  4. <view class="custom-navbar">
  5. <view class="navbar-left" @click="goBack">
  6. <text class="back-icon">←</text>
  7. </view>
  8. <view class="navbar-title">用户详情</view>
  9. <view class="navbar-right"></view>
  10. </view>
  11. <scroll-view scroll-y class="page-content" v-if="userInfo">
  12. <!-- 用户头像和基本信息 -->
  13. <view class="user-header">
  14. <image
  15. :src="userInfo.avatar || userInfo.avatarUrl || 'http://115.190.125.125:9001/static-images/close.png'"
  16. class="user-avatar"
  17. mode="aspectFill"
  18. @error="onAvatarError"
  19. />
  20. <view class="user-basic">
  21. <view class="user-name-row">
  22. <text class="user-name">{{ userInfo.nickname || '未设置' }}</text>
  23. <view class="score-badge" v-if="compatibilityScore">
  24. <text>匹配度 {{ fmtScore(compatibilityScore) }}</text>
  25. </view>
  26. </view>
  27. <view class="user-meta">
  28. <text v-if="userInfo.genderText">{{ userInfo.genderText }}</text>
  29. <text v-if="userInfo.age">{{ userInfo.age }}岁</text>
  30. <text v-if="userInfo.height">{{ userInfo.height }}cm</text>
  31. <text v-if="userInfo.educationText">{{ userInfo.educationText }}</text>
  32. <text v-if="userInfo.salaryText">{{ userInfo.salaryText }}</text>
  33. </view>
  34. <view class="user-tags" v-if="hasTags">
  35. <text v-if="userInfo.star" class="tag">{{ userInfo.star }}</text>
  36. <text v-if="userInfo.animal" class="tag">{{ userInfo.animal }}</text>
  37. <text v-if="userInfo.jobTitle" class="tag">{{ userInfo.jobTitle }}</text>
  38. <text v-for="t in parseHobby(userInfo.hobby)" :key="t" class="tag">{{ t }}</text>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 详细信息 -->
  43. <view class="detail-section">
  44. <view class="section-title">详细信息</view>
  45. <view class="detail-grid">
  46. <view class="detail-item" v-if="userInfo.schoolName">
  47. <text class="detail-label">毕业院校</text>
  48. <text class="detail-value">{{ userInfo.schoolName }}</text>
  49. </view>
  50. <view class="detail-item" v-if="userInfo.company">
  51. <text class="detail-label">工作单位</text>
  52. <text class="detail-value">{{ userInfo.company }}</text>
  53. </view>
  54. <view class="detail-item" v-if="userInfo.maritalText">
  55. <text class="detail-label">婚姻状况</text>
  56. <text class="detail-value">{{ userInfo.maritalText }}</text>
  57. </view>
  58. <view class="detail-item" v-if="userInfo.houseText">
  59. <text class="detail-label">房产</text>
  60. <text class="detail-value">{{ userInfo.houseText }}</text>
  61. </view>
  62. <view class="detail-item" v-if="userInfo.carText">
  63. <text class="detail-label">车产</text>
  64. <text class="detail-value">{{ userInfo.carText }}</text>
  65. </view>
  66. <view class="detail-item" v-if="userInfo.weight">
  67. <text class="detail-label">体重</text>
  68. <text class="detail-value">{{ userInfo.weight }}kg</text>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 自我简介 -->
  73. <view class="detail-section" v-if="userInfo.introduction">
  74. <view class="section-title">自我简介</view>
  75. <view class="introduction-content">
  76. <text>{{ userInfo.introduction }}</text>
  77. </view>
  78. </view>
  79. <!-- 动态区域 -->
  80. <view class="dynamic-section">
  81. <view class="section-header">
  82. <text class="section-title">动态</text>
  83. <view class="section-more" @tap.stop="viewAllDynamics" v-if="dynamicList.length > 0">
  84. <text>查看全部({{ totalDynamics }}) ></text>
  85. </view>
  86. </view>
  87. <!-- 动态列表 -->
  88. <view v-if="loadingDynamics" class="loading-tip">
  89. <text>加载动态中...</text>
  90. </view>
  91. <view v-else-if="dynamicList.length === 0" class="empty-dynamics">
  92. <text class="empty-icon">📝</text>
  93. <text class="empty-text">该用户还没有发布动态</text>
  94. </view>
  95. <view v-else class="dynamic-list">
  96. <view
  97. v-for="(item, index) in dynamicList"
  98. :key="item.dynamicId || index"
  99. class="dynamic-item"
  100. @tap.stop="viewDynamicDetail(item, index)"
  101. >
  102. <!-- 动态内容 -->
  103. <view class="dynamic-content" v-if="item.content">
  104. <text class="dynamic-text">{{ item.content }}</text>
  105. </view>
  106. <!-- 动态媒体(照片/视频) -->
  107. <view class="dynamic-media" v-if="item.mediaUrls && item.mediaUrls.length > 0">
  108. <view :class="['media-grid', getGridClass(item)]">
  109. <image
  110. v-for="(url, idx) in item.mediaUrls.slice(0, 9)"
  111. :key="idx"
  112. :src="url"
  113. class="media-image"
  114. mode="aspectFill"
  115. />
  116. </view>
  117. </view>
  118. <!-- 动态信息 -->
  119. <view class="dynamic-info">
  120. <text class="dynamic-time">{{ formatTime(item.createdAt) }}</text>
  121. <view class="dynamic-stats">
  122. <text class="stat-item">❤️ {{ item.likeCount || 0 }}</text>
  123. <text class="stat-item">💬 {{ item.commentCount || 0 }}</text>
  124. <text class="stat-item">⭐ {{ item.favoriteCount || 0 }}</text>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </scroll-view>
  131. <!-- 加载中 -->
  132. <view v-else class="loading-container">
  133. <text>加载中...</text>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. import api from '@/utils/api.js'
  139. export default {
  140. data() {
  141. return {
  142. userId: null,
  143. userInfo: null,
  144. compatibilityScore: null,
  145. dynamicList: [],
  146. loadingDynamics: false,
  147. totalDynamics: 0,
  148. pageNum: 1,
  149. pageSize: 3
  150. }
  151. },
  152. computed: {
  153. hasTags() {
  154. return this.userInfo && (
  155. this.userInfo.star ||
  156. this.userInfo.animal ||
  157. this.userInfo.jobTitle ||
  158. this.userInfo.hobby
  159. )
  160. }
  161. },
  162. onLoad(options) {
  163. if (options.userId) {
  164. this.userId = parseInt(options.userId)
  165. if (options.score) {
  166. this.compatibilityScore = parseFloat(options.score)
  167. }
  168. this.loadUserInfo()
  169. this.loadUserDynamics()
  170. } else {
  171. uni.showToast({
  172. title: '用户ID无效',
  173. icon: 'none'
  174. })
  175. setTimeout(() => {
  176. uni.navigateBack()
  177. }, 1500)
  178. }
  179. },
  180. methods: {
  181. // 加载用户信息
  182. async loadUserInfo() {
  183. try {
  184. uni.showLoading({ title: '加载中...' })
  185. const detail = await api.user.getDetailInfo(this.userId)
  186. if (detail) {
  187. // 确保photos是数组
  188. if (!detail.photos || !Array.isArray(detail.photos)) {
  189. detail.photos = []
  190. if (detail.avatar) {
  191. detail.photos.push(detail.avatar)
  192. }
  193. }
  194. this.userInfo = detail
  195. } else {
  196. uni.showToast({
  197. title: '用户信息不存在',
  198. icon: 'none'
  199. })
  200. setTimeout(() => {
  201. uni.navigateBack()
  202. }, 1500)
  203. }
  204. } catch (e) {
  205. console.error('获取用户信息失败:', e)
  206. uni.showToast({
  207. title: '获取用户信息失败',
  208. icon: 'none'
  209. })
  210. } finally {
  211. uni.hideLoading()
  212. }
  213. },
  214. // 加载用户动态
  215. async loadUserDynamics() {
  216. if (!this.userId) return
  217. this.loadingDynamics = true
  218. try {
  219. const currentUserId = uni.getStorageSync('userId')
  220. const params = {
  221. pageNum: this.pageNum,
  222. pageSize: this.pageSize,
  223. currentUserId: currentUserId ? parseInt(currentUserId) : null
  224. }
  225. const result = await api.dynamic.getUserDynamics(this.userId, params)
  226. console.log('用户动态API返回:', result)
  227. // 处理PageResult格式:{ records: [], total: 0, current: 1, size: 10 }
  228. let list = []
  229. let total = 0
  230. if (result) {
  231. // PageResult格式:{ records: [], total: 0 }
  232. if (result.records && Array.isArray(result.records)) {
  233. list = result.records
  234. total = result.total || 0
  235. }
  236. // 兼容格式:{ list: [], total: 0 }
  237. else if (result.list && Array.isArray(result.list)) {
  238. list = result.list
  239. total = result.total || result.list.length
  240. }
  241. // 直接是数组
  242. else if (Array.isArray(result)) {
  243. list = result
  244. total = result.length
  245. }
  246. }
  247. // 处理mediaUrls字段(可能是字符串需要解析)
  248. list = list.map(item => {
  249. // 确保 dynamicId 存在
  250. if (!item.dynamicId && item.id) {
  251. item.dynamicId = item.id
  252. }
  253. if (!item.dynamicId && item.dynamic_id) {
  254. item.dynamicId = item.dynamic_id
  255. }
  256. if (item.mediaUrls && typeof item.mediaUrls === 'string') {
  257. try {
  258. item.mediaUrls = JSON.parse(item.mediaUrls)
  259. } catch (e) {
  260. console.error('解析mediaUrls失败:', e)
  261. item.mediaUrls = []
  262. }
  263. }
  264. if (!item.mediaUrls || !Array.isArray(item.mediaUrls)) {
  265. item.mediaUrls = []
  266. }
  267. console.log('处理后的动态项:', {
  268. dynamicId: item.dynamicId,
  269. content: item.content,
  270. hasMedia: item.mediaUrls && item.mediaUrls.length > 0
  271. })
  272. return item
  273. })
  274. // 最多只显示3条动态
  275. this.dynamicList = list.slice(0, 3)
  276. this.totalDynamics = total
  277. console.log('处理后的动态列表:', this.dynamicList)
  278. console.log('动态列表中的 dynamicId:', this.dynamicList.map(item => item.dynamicId))
  279. } catch (e) {
  280. console.error('获取用户动态失败:', e)
  281. uni.showToast({
  282. title: '加载动态失败',
  283. icon: 'none'
  284. })
  285. } finally {
  286. this.loadingDynamics = false
  287. }
  288. },
  289. // 查看全部动态
  290. viewAllDynamics() {
  291. console.log('=== 点击查看全部动态 ===')
  292. console.log('userId:', this.userId)
  293. if (!this.userId) {
  294. uni.showToast({
  295. title: '用户ID无效',
  296. icon: 'none'
  297. })
  298. return
  299. }
  300. const url = `/pages/recommend/user-dynamics?userId=${this.userId}`
  301. console.log('准备跳转, url:', url)
  302. uni.navigateTo({
  303. url: url,
  304. success: (res) => {
  305. console.log('跳转成功:', res)
  306. },
  307. fail: (err) => {
  308. console.error('跳转失败:', err)
  309. uni.showToast({
  310. title: '跳转失败',
  311. icon: 'none',
  312. duration: 2000
  313. })
  314. }
  315. })
  316. },
  317. // 查看动态详情
  318. viewDynamicDetail(item, index) {
  319. console.log('=== 点击动态详情 ===')
  320. console.log('传入的 item:', item)
  321. console.log('传入的 index:', index)
  322. console.log('dynamicList:', this.dynamicList)
  323. // 如果 item 无效,尝试从列表中根据索引获取
  324. if (!item && typeof index === 'number' && this.dynamicList && this.dynamicList[index]) {
  325. item = this.dynamicList[index]
  326. console.log('从列表中获取 item:', item)
  327. }
  328. if (!item) {
  329. console.error('动态项为空,无法获取')
  330. uni.showToast({
  331. title: '动态信息为空',
  332. icon: 'none'
  333. })
  334. return
  335. }
  336. // 尝试多种可能的字段名
  337. const dynamicId = item.dynamicId || item.id || item.dynamic_id
  338. console.log('提取的 dynamicId:', dynamicId)
  339. console.log('完整的 item 对象:', JSON.stringify(item))
  340. if (!dynamicId) {
  341. console.error('动态ID无效,item 内容:', item)
  342. uni.showToast({
  343. title: '动态ID无效',
  344. icon: 'none'
  345. })
  346. return
  347. }
  348. const url = `/pages/plaza/detail?dynamicId=${dynamicId}`
  349. console.log('准备跳转, url:', url)
  350. uni.navigateTo({
  351. url: url,
  352. success: (res) => {
  353. console.log('跳转成功:', res)
  354. },
  355. fail: (err) => {
  356. console.error('跳转失败:', err)
  357. uni.showToast({
  358. title: '跳转失败: ' + (err.errMsg || '未知错误'),
  359. icon: 'none',
  360. duration: 2000
  361. })
  362. }
  363. })
  364. },
  365. // 预览媒体
  366. previewMedia(urls, index) {
  367. if (!urls || urls.length === 0) return
  368. uni.previewImage({
  369. urls: urls,
  370. current: index
  371. })
  372. },
  373. // 获取网格类名
  374. getGridClass(item) {
  375. const count = item.mediaUrls ? item.mediaUrls.length : 0
  376. if (count === 1) return 'grid-1'
  377. if (count === 2 || count === 4) return 'grid-2'
  378. return 'grid-3'
  379. },
  380. // 格式化时间
  381. formatTime(timeStr) {
  382. if (!timeStr) return ''
  383. const date = new Date(timeStr)
  384. const now = new Date()
  385. const diff = now - date
  386. const minutes = Math.floor(diff / 60000)
  387. const hours = Math.floor(diff / 3600000)
  388. const days = Math.floor(diff / 86400000)
  389. if (minutes < 1) return '刚刚'
  390. if (minutes < 60) return `${minutes}分钟前`
  391. if (hours < 24) return `${hours}小时前`
  392. if (days < 7) return `${days}天前`
  393. return date.toLocaleDateString()
  394. },
  395. // 格式化匹配度
  396. fmtScore(s) {
  397. return s ? Number(s).toFixed(1) : '0.0'
  398. },
  399. // 解析兴趣爱好
  400. parseHobby(h) {
  401. try {
  402. const arr = typeof h === 'string' ? JSON.parse(h) : h
  403. return Array.isArray(arr) ? arr.slice(0, 6) : []
  404. } catch {
  405. return []
  406. }
  407. },
  408. // 头像加载错误
  409. onAvatarError() {
  410. if (this.userInfo) {
  411. this.userInfo.avatar = 'http://115.190.125.125:9001/static-images/close.png'
  412. this.userInfo.avatarUrl = 'http://115.190.125.125:9001/static-images/close.png'
  413. }
  414. },
  415. // 返回
  416. goBack() {
  417. uni.navigateBack()
  418. }
  419. }
  420. }
  421. </script>
  422. <style lang="scss" scoped>
  423. .user-detail-page {
  424. min-height: 100vh;
  425. background: #F5F5F5;
  426. padding-top: 90rpx;
  427. }
  428. /* 自定义导航栏 */
  429. .custom-navbar {
  430. position: fixed;
  431. top: 0;
  432. left: 0;
  433. right: 0;
  434. height: 90rpx;
  435. display: flex;
  436. align-items: center;
  437. justify-content: space-between;
  438. padding: 0 20rpx;
  439. background: #FFFFFF;
  440. border-bottom: 2rpx solid #E0E0E0;
  441. z-index: 999;
  442. }
  443. .navbar-left,
  444. .navbar-right {
  445. width: 80rpx;
  446. }
  447. .back-icon {
  448. font-size: 40rpx;
  449. color: #333;
  450. font-weight: bold;
  451. }
  452. .navbar-title {
  453. flex: 1;
  454. text-align: center;
  455. font-size: 32rpx;
  456. font-weight: bold;
  457. color: #333;
  458. }
  459. /* 页面内容 */
  460. .page-content {
  461. height: calc(100vh - 90rpx);
  462. padding: 20rpx;
  463. }
  464. /* 用户头部 */
  465. .user-header {
  466. background: #FFFFFF;
  467. border-radius: 16rpx;
  468. padding: 30rpx;
  469. margin-bottom: 20rpx;
  470. display: flex;
  471. align-items: flex-start;
  472. border: 2rpx solid #E0E0E0;
  473. }
  474. .user-avatar {
  475. width: 160rpx;
  476. height: 160rpx;
  477. border-radius: 80rpx;
  478. margin-right: 24rpx;
  479. border: 4rpx solid #FFE5F1;
  480. background: #F5F5F5;
  481. }
  482. .user-basic {
  483. flex: 1;
  484. }
  485. .user-name-row {
  486. display: flex;
  487. align-items: center;
  488. margin-bottom: 16rpx;
  489. flex-wrap: wrap;
  490. gap: 12rpx;
  491. }
  492. .user-name {
  493. font-size: 36rpx;
  494. font-weight: bold;
  495. color: #333;
  496. }
  497. .score-badge {
  498. background: #FFE5F1;
  499. color: #E91E63;
  500. padding: 6rpx 16rpx;
  501. border-radius: 20rpx;
  502. font-size: 24rpx;
  503. font-weight: 600;
  504. }
  505. .user-meta {
  506. display: flex;
  507. flex-wrap: wrap;
  508. gap: 16rpx;
  509. margin-bottom: 16rpx;
  510. font-size: 26rpx;
  511. color: #666;
  512. }
  513. .user-tags {
  514. display: flex;
  515. flex-wrap: wrap;
  516. gap: 12rpx;
  517. }
  518. .tag {
  519. background: #F5F5F5;
  520. color: #666;
  521. padding: 8rpx 16rpx;
  522. border-radius: 20rpx;
  523. font-size: 24rpx;
  524. border: 1rpx solid #E0E0E0;
  525. }
  526. /* 详细信息区域 */
  527. .detail-section {
  528. background: #FFFFFF;
  529. border-radius: 16rpx;
  530. padding: 24rpx;
  531. margin-bottom: 20rpx;
  532. border: 2rpx solid #E0E0E0;
  533. }
  534. .section-title {
  535. font-size: 28rpx;
  536. font-weight: 600;
  537. color: #333;
  538. margin-bottom: 20rpx;
  539. padding-bottom: 12rpx;
  540. border-bottom: 2rpx solid #F0F0F0;
  541. }
  542. .detail-grid {
  543. display: grid;
  544. grid-template-columns: repeat(2, 1fr);
  545. gap: 20rpx;
  546. }
  547. .detail-item {
  548. display: flex;
  549. flex-direction: column;
  550. }
  551. .detail-label {
  552. font-size: 24rpx;
  553. color: #999;
  554. margin-bottom: 8rpx;
  555. }
  556. .detail-value {
  557. font-size: 26rpx;
  558. color: #333;
  559. font-weight: 500;
  560. }
  561. .introduction-content {
  562. background: #F8F9FA;
  563. padding: 20rpx;
  564. border-radius: 8rpx;
  565. border-left: 4rpx solid #E91E63;
  566. line-height: 1.8;
  567. font-size: 26rpx;
  568. color: #666;
  569. }
  570. /* 动态区域 */
  571. .dynamic-section {
  572. background: #FFFFFF;
  573. border-radius: 16rpx;
  574. padding: 24rpx;
  575. margin-bottom: 20rpx;
  576. border: 2rpx solid #E0E0E0;
  577. }
  578. .section-header {
  579. display: flex;
  580. align-items: center;
  581. justify-content: space-between;
  582. margin-bottom: 20rpx;
  583. padding-bottom: 12rpx;
  584. border-bottom: 2rpx solid #F0F0F0;
  585. }
  586. .section-more {
  587. font-size: 24rpx;
  588. color: #E91E63;
  589. cursor: pointer;
  590. transition: opacity 0.2s;
  591. padding: 8rpx 12rpx;
  592. -webkit-tap-highlight-color: transparent;
  593. user-select: none;
  594. }
  595. .section-more:active {
  596. opacity: 0.6;
  597. }
  598. .dynamic-list {
  599. display: flex;
  600. flex-direction: column;
  601. gap: 20rpx;
  602. }
  603. .dynamic-item {
  604. padding: 20rpx;
  605. background: #F8F9FA;
  606. border-radius: 12rpx;
  607. border: 1rpx solid #E0E0E0;
  608. cursor: pointer;
  609. transition: background-color 0.2s;
  610. position: relative;
  611. z-index: 1;
  612. -webkit-tap-highlight-color: transparent;
  613. }
  614. .dynamic-item:active {
  615. background: #E8E8E8;
  616. opacity: 0.8;
  617. }
  618. .dynamic-content {
  619. margin-bottom: 16rpx;
  620. }
  621. .dynamic-text {
  622. font-size: 26rpx;
  623. color: #333;
  624. line-height: 1.6;
  625. display: -webkit-box;
  626. -webkit-box-orient: vertical;
  627. -webkit-line-clamp: 3;
  628. overflow: hidden;
  629. }
  630. .dynamic-media {
  631. margin-bottom: 16rpx;
  632. }
  633. .media-grid {
  634. display: grid;
  635. gap: 8rpx;
  636. }
  637. .grid-1 {
  638. grid-template-columns: 1fr;
  639. }
  640. .grid-2 {
  641. grid-template-columns: repeat(2, 1fr);
  642. }
  643. .grid-3 {
  644. grid-template-columns: repeat(3, 1fr);
  645. }
  646. .media-image {
  647. width: 100%;
  648. height: 200rpx;
  649. border-radius: 8rpx;
  650. background: #F5F5F5;
  651. pointer-events: none;
  652. -webkit-user-select: none;
  653. user-select: none;
  654. }
  655. .dynamic-info {
  656. display: flex;
  657. justify-content: space-between;
  658. align-items: center;
  659. font-size: 24rpx;
  660. color: #999;
  661. }
  662. .dynamic-stats {
  663. display: flex;
  664. gap: 20rpx;
  665. }
  666. .stat-item {
  667. font-size: 24rpx;
  668. color: #999;
  669. }
  670. .comment-stat {
  671. cursor: pointer;
  672. transition: opacity 0.2s;
  673. }
  674. .comment-stat:active {
  675. opacity: 0.6;
  676. }
  677. .empty-dynamics {
  678. text-align: center;
  679. padding: 60rpx 20rpx;
  680. }
  681. .empty-icon {
  682. font-size: 80rpx;
  683. display: block;
  684. margin-bottom: 20rpx;
  685. }
  686. .empty-text {
  687. font-size: 26rpx;
  688. color: #999;
  689. }
  690. .loading-tip {
  691. text-align: center;
  692. padding: 40rpx;
  693. color: #999;
  694. font-size: 26rpx;
  695. }
  696. .loading-container {
  697. display: flex;
  698. align-items: center;
  699. justify-content: center;
  700. height: 100vh;
  701. font-size: 28rpx;
  702. color: #999;
  703. }
  704. </style>