home.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <template>
  2. <view class="container home clearfix">
  3. <!-- 头部轮播 -->
  4. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="5"></tui-skeleton>
  5. <view :class="'container-home-'+ inputActive" class="tui-skeleton">
  6. <view :class="'search-input-' + inputActive">
  7. <bt-search :clickPath="clickPath" :toestText='hotSearchText'></bt-search>
  8. </view>
  9. <view class="banner-section">
  10. <!-- <uni-swiper-dot :info="bannerList" :current="current" field="content" :mode="mode" > -->
  11. <swiper class="banner tui-banner tui-skeleton-rect" circular @change="swiperChange" :autoplay="true" :interval="5000" :duration="500" :circular="false">
  12. <swiper-item v-for="(item, index) in bannerImageList" :key="index" class="banner-item">
  13. <image :src="item" />
  14. </swiper-item>
  15. </swiper>
  16. <view class="swiper__dots-box" v-if="bannerImageList.length > 1">
  17. <view v-for="(item,idx) in bannerImageList"
  18. :key="idx"
  19. :class="[idx===current?'swiper__dots-long':'none']"
  20. :data-index="current" class="swiper__dots-item" />
  21. </view>
  22. <!-- </uni-swiper-dot> -->
  23. </view>
  24. <view class="cate-section clearfix">
  25. <!-- 优选分类 -->
  26. <view class="tabbar clearfix">
  27. <view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'1',value:firstModulesName})">
  28. <image class="tui-skeleton-fillet" :src="firstModulesImage"></image>
  29. <text class="tui-skeleton-fillet">{{firstModulesName}}</text>
  30. </view>
  31. <view class="cate-item-info" @click.stop="this.$api.navToListPage({type:'2',value:secondModulesName})">
  32. <image class="tui-skeleton-fillet" :src="secondModulesImage"></image>
  33. <text class="tui-skeleton-fillet">{{secondModulesName}}</text>
  34. </view>
  35. <view class="cate-item-info" @click="showTost">
  36. <image class="tui-skeleton-fillet" :src="navInforList[0].icon"></image>
  37. <text class="tui-skeleton-fillet">{{navInforList[0].text}}</text>
  38. </view>
  39. <view class="cate-item-info">
  40. <!-- #ifdef MP-WEIXIN -->
  41. <button class="contact-btn" open-type="contact" @bindcontact="handleContact">
  42. <image class="tui-skeleton-fillet" :src="navInforList[1].icon"></image>
  43. </button>
  44. <!-- #endif -->
  45. <text class="tui-skeleton-fillet">{{navInforList[1].text}}</text>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 热销商品 -->
  50. <view class="hotgoods-section">
  51. <view class="s-header tui-skeleton-fillet" @click="this.$api.navToListPage({type:'3',value:thirdModulesName})">
  52. <text class="tip">{{thirdModulesName}}</text>
  53. <text class="tit">更多</text>
  54. <text class="iconfont icon-xiayibu"></text>
  55. </view>
  56. <view class="hotgoods-swiper">
  57. <scroll-view class="floor-list" scroll-x>
  58. <view class="scoll-wrapper">
  59. <view
  60. v-for="(item, index) in organizeProducts" :key="index"
  61. class="floor-item"
  62. @click.stop="navToDetailPage(item.productID)"
  63. >
  64. <image class="tui-skeleton-fillet" :src="item.mainImage" mode="aspectFill"></image>
  65. <view class="title tui-skeleton-rect">
  66. <text class="mclap">{{item.name}}</text>
  67. </view>
  68. <view class="" v-if="isLogin">
  69. <view class="title-none" v-if="item.price1TextFlag == '1'">
  70. <text class="p big">未公开价格</text>
  71. </view>
  72. <view class="price tui-skeleton-rect" v-else>
  73. <text class="p sm">¥</text>
  74. <text class="p big">{{item.retailPrice!=null ? item.retailPrice.toFixed(2):''}}</text>
  75. </view>
  76. </view>
  77. <view v-else class="no-price">
  78. <text class="p-no">价格:</text>
  79. <view class="p-stars">
  80. <uni-stars :stars="parseInt(item.price1Grade)"></uni-stars>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </scroll-view>
  86. </view>
  87. </view>
  88. <!-- 底部 -->
  89. <view class="footer-section ">
  90. <view class="s-header tui-skeleton-fillet">
  91. <text class="tip">医美机构正品联盟</text>
  92. </view>
  93. <view class="f-content tui-skeleton-fillet" @click="navto('/pages/service/member')">
  94. <image class="tui-banner" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AEwQlAAjGFdpI2LM357.png" mode=""></image>
  95. </view>
  96. <view class="f-tab-section">
  97. <!-- 优选分类 -->
  98. <view class="tabbar clearfix">
  99. <view class="cate-item" @click="showTost">
  100. <image class="tui-skeleton-fillet" :src="navServerList[0].icon"></image>
  101. <text class="tui-skeleton-fillet">{{navServerList[0].text}}</text>
  102. </view>
  103. <view class="cate-item" @click="navto(navServerList[1].path)">
  104. <image class="tui-skeleton-fillet" :src="navServerList[1].icon"></image>
  105. <text class="tui-skeleton-fillet">{{navServerList[1].text}}</text>
  106. </view>
  107. <view class="cate-item" @click="navto(navServerList[2].path)">
  108. <image class="tui-skeleton-fillet" :src="navServerList[2].icon"></image>
  109. <text class="tui-skeleton-fillet">{{navServerList[2].text}}</text>
  110. </view>
  111. <view class="cate-item" @click="telPhoneTo">
  112. <image class="tui-skeleton-fillet" :src="navServerList[3].icon"></image>
  113. <text class="tui-skeleton-fillet">{{navServerList[3].text}}</text>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="f-text tui-skeleton-fillet">
  118. <view class="">
  119. <image class="logo" src="../../../static/logo-c@2x.png" mode=""></image>
  120. <text class="">采美365网</text>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 透明模态层 -->
  126. <modal-layer v-if='modallayer'></modal-layer>
  127. </view>
  128. </template>
  129. <script>
  130. import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
  131. import authorize from '@/common/config/authorize.js'
  132. import modalLayer from "@/components/modal-layer"
  133. import btSearch from '@/components/uni-search/bt-search.vue'
  134. import uniStars from '@/components/uni-stars/uni-stars.vue'
  135. import { userInfoLogin, queryHomeInfo } from "@/api/use.js"
  136. import { queryPreferred } from "@/api/product.js"
  137. import { mapMutations} from 'vuex';
  138. export default {
  139. components:{
  140. tuiSkeleton,
  141. modalLayer,
  142. btSearch,
  143. uniStars,
  144. },
  145. data() {
  146. return {
  147. userID:'',
  148. inputActive:'float',
  149. hotSearchText:'你想要的这里都有',
  150. clickPath:'/pages/search/search',
  151. current:0,
  152. mode:'round',
  153. modallayer:false,
  154. isLogin:false,
  155. bannerImageList:[],
  156. hotGoodsList:[],
  157. skeletonShow: true,
  158. organizeProducts:[],//常用商品
  159. firstModulesName:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png', //优惠模块1
  160. secondModulesName:'', //优惠模块2
  161. firstModulesImage:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png',//优惠模块icon1
  162. secondModulesImage:'',//优惠模块icon2
  163. thirdModulesName:'', //优惠模块3
  164. navInforList:[
  165. {text:'会员中心',icon:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAAZU0AACaPrfbB8I435.png'},
  166. {text:'在线客服',icon:'https://img.caimei365.com/group1/M00/03/8D/Cmis215XHXWABv0rAACt9b8scec656.png'}
  167. ],
  168. navServerList:[
  169. {text:'会员优惠',icon:'../../../static/temp/server1@2x.png',path:'/pages/service/member'},
  170. {text:'售后无忧',icon:'../../../static/temp/server2@2x.png',path:'/pages/service/aftersale'},
  171. {text:'购物须知',icon:'../../../static/temp/server3@2x.png',path:'/pages/service/shoppingnotice'},
  172. {text:'联系我们',icon:'../../../static/temp/server4@2x.png',path:''},
  173. ]
  174. }
  175. },
  176. onLoad() {
  177. this.initData()
  178. },
  179. methods: {
  180. ...mapMutations(['login','logout']),
  181. async initData(){
  182. this.skeletonShow = true;
  183. let hotGoodsList = await this.$util.json('hotGoodsList');
  184. this.hotGoodsList = hotGoodsList;
  185. },
  186. getCheekeyCode(){
  187. authorize.getCode('weixin').then(wechatcode =>{// 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  188. authorize.getUserInfo('weixin').then(wxResponse =>{
  189. userInfoLogin({code:wechatcode,encryptedData:wxResponse.encryptedData,iv:wxResponse.iv}).then(response =>{
  190. this.isLogin = true;
  191. this.userID = response.data.userID;
  192. this.$store.commit('updateStatus',response.data)
  193. this.login(response.data);
  194. uni.setStorageSync('token',response.data.token)
  195. uni.removeStorageSync('sessionid')
  196. uni.setStorageSync('sessionid','JSESSIONID='+response.data.sessionId)
  197. if(response.data.userIdentity ==1){
  198. this.$api.navigateTo('/market/pages/index/index')
  199. }else{
  200. this.getHomeInformation()
  201. this.getOrganizeProducts()
  202. }
  203. }).catch(response =>{
  204. this.isLogin = false;
  205. this.logout()
  206. uni.removeStorageSync('sessionid')
  207. uni.setStorageSync('sessionid','JSESSIONID='+response.data)
  208. this.$store.commit('updateStatus',response.data)
  209. this.getHomeInformation()
  210. this.getOrganizeProducts()
  211. })
  212. })
  213. })
  214. },
  215. getHomeInformation(){
  216. queryHomeInfo({}).then(res =>{
  217. let data = res.data;
  218. this.bannerImageList = data.bannerImageList
  219. this.mallPageModules = data.mallPageModules
  220. this.$store.commit('updateAllNum',data.shoppingCartCount)
  221. this.firstModulesName= data.firstModulesName
  222. this.secondModulesName= data.secondModulesName
  223. this.firstModulesImage= data.firstModulesImage
  224. this.secondModulesImage= data.secondModulesImage
  225. this.thirdModulesName= data.thirdModulesName
  226. this.skeletonShow = false;
  227. })
  228. },
  229. getOrganizeProducts(){//获取模块三商品
  230. queryPreferred({userId:this.userID,preferredFlag:100,pageNum:1,pageSize:5}).then(res =>{
  231. this.organizeProducts = res.data.results
  232. })
  233. },
  234. //轮播图切换修改背景色
  235. swiperChange(e) {
  236. const index = e.detail.current;
  237. this.current = index;
  238. },
  239. formatMoney(num){
  240. return num.toString().replace(/\d+/, function (n) { // 先提取整数部分
  241. return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) { // 对整数部分添加分隔符
  242. return $1 + ",";
  243. });
  244. });
  245. },
  246. //分类导航跳转
  247. navToListPage(nav){
  248. let self = this;
  249. uni.setStorage({
  250. key: 'commodity_id',
  251. data: nav.id,
  252. success: function () {
  253. self.$api.navToListPage({type:'商品分类',value:nav.classifyName,id:nav.id});
  254. }
  255. })
  256. },
  257. navToDetailPage(id) {//跳转商品详情页
  258. this.modallayer = true;
  259. this.$api.navigateTo(`/pages/goods/product?id=${id}`)
  260. },
  261. handleContact(e){
  262. console.log(e.detail.path)
  263. console.log(e.detail.query)
  264. },
  265. showTost(){
  266. // this.$util.msg("正在开发中,敬请期待~",2000)
  267. this.$api.navigateTo(`/market/pages/login/login`)
  268. // uni.navigateToMiniProgram({
  269. // appId: 'wx5a5cda32926f55ac',
  270. // path: '/pages/tabBar/home/home',
  271. // extraData: {
  272. // 'data1': 'test'
  273. // },
  274. // envVersion: 'develop',
  275. // success(res) {
  276. // console.log(res)
  277. // // 打开成功
  278. // }
  279. // })
  280. },
  281. navto(url){
  282. this.$api.navigateTo(url)
  283. },
  284. telPhoneTo(){
  285. let self = this;
  286. this.$api.get('/home/afterSale',{organizeID:this.userOrganizeID},
  287. response => {
  288. console.log(response.data.contactNumber)
  289. uni.makePhoneCall({
  290. phoneNumber:response.data.contactNumber //仅为示例
  291. });
  292. }
  293. )
  294. }
  295. },
  296. onPageScroll(e){//实时获取到滚动的值
  297. if(e.scrollTop>50){
  298. this.inputActive = 'fixed'
  299. }else{
  300. this.inputActive = 'float'
  301. }
  302. },
  303. onPullDownRefresh() {//下拉刷新
  304. this.getHomeInformation()
  305. uni.stopPullDownRefresh()
  306. },
  307. onShareAppMessage(res){//分享转发
  308. if (res.from === 'button') {
  309. // 来自页面内转发按钮
  310. }
  311. return {
  312. title: '采美采购商城-生美/医美采购服务平台',
  313. path: 'pages/tabBar/home/home',
  314. imageUrl:'https://img.caimei365.com/group1/M00/03/8C/Cmis215XHXSAWWkhAAXDP4-6m_c397.png'
  315. }
  316. },
  317. onShow(){
  318. this.modallayer = false;
  319. //查看此微信用户是否已经授权过
  320. authorize.getSetting().then(res =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  321. if(res == 1){
  322. this.getCheekeyCode()
  323. }else{
  324. this.$api.redirectTo('/pages/authorization/authorization?type=1')
  325. }
  326. }).catch(res =>{
  327. this.$util.modal('提示',res,'去授权','取消',true,() =>{
  328. this.$api.redirectTo('/pages/authorization/authorization?type=1')
  329. })
  330. })
  331. }
  332. }
  333. </script>
  334. <style lang="scss">
  335. page,.home{
  336. width: 100%;
  337. height: auto;
  338. }
  339. .container-home-float{
  340. padding-top: 0;
  341. }
  342. .container-home-fixed{
  343. padding-top: 100rpx;
  344. }
  345. .search-input-float{
  346. width: 100%;
  347. height:auto;
  348. }
  349. .search-input-fixed{
  350. width: 100%;
  351. height:auto;
  352. position: fixed;
  353. top: 0;
  354. left: 0;
  355. z-index: 1000;
  356. background: #FFFFFF;
  357. }
  358. .banner-section{
  359. width: 100%;
  360. height: 366rpx;
  361. position: relative;
  362. }
  363. .banner{
  364. width: 100%;
  365. height: 366rpx;
  366. image {
  367. width: 100%;
  368. height: 100%;
  369. }
  370. }
  371. .swiper__dots-box{
  372. position: absolute;
  373. bottom: 10px;
  374. left: 0;
  375. right: 0;
  376. /* #ifndef APP-NVUE */
  377. display: flex;
  378. /* #endif */
  379. flex: 1;
  380. flex-direction: row;
  381. justify-content: center;
  382. align-items: center;
  383. .swiper__dots-item{
  384. width: 8rpx;
  385. height: 8rpx;
  386. border-radius: 100%;
  387. margin-left: 6px;
  388. background-color:rgba(255,255,255,.7);
  389. }
  390. .swiper__dots-long{
  391. width: 32rpx;
  392. height: 8rpx;
  393. border-radius: 4rpx;
  394. background-color: #ffff;
  395. transition: all 0.4s;
  396. }
  397. }
  398. /* 分类 */
  399. .cate-section {
  400. width: 702rpx;
  401. height: auto;
  402. padding:34rpx 24rpx 14rpx 24rpx;
  403. background: #fff;
  404. .tabbar{
  405. margin-bottom: 26rpx;
  406. }
  407. .cate-item {
  408. width: 118rpx;
  409. margin-right:28rpx;
  410. margin-bottom:28rpx;
  411. display: flex;
  412. float: left;
  413. flex-direction: column;
  414. align-items: center;
  415. font-size: $font-size-26;
  416. color: $text-color;
  417. line-height: 36rpx;
  418. &:last-child{
  419. margin-right: 0;
  420. }
  421. &:nth-child(5n){
  422. margin-right: 0;
  423. }
  424. image {
  425. width: 90rpx;
  426. height: 90rpx;
  427. margin-bottom: 8rpx;
  428. }
  429. }
  430. .cate-item-info {
  431. width: 160rpx;
  432. margin-right:20.666rpx;
  433. display: flex;
  434. float: left;
  435. flex-direction: column;
  436. align-items: center;
  437. font-size: $font-size-26;
  438. color: $text-color;
  439. line-height: 36rpx;
  440. &:last-child{
  441. margin-right: 0;
  442. }
  443. image {
  444. width: 160rpx;
  445. height: 90rpx;
  446. margin-bottom: 16rpx;
  447. }
  448. button.contact-btn{
  449. width: 160rpx;
  450. height: 90rpx;
  451. margin: 0;
  452. padding: 0;
  453. display: flex;
  454. flex-direction: column;
  455. align-items: center;
  456. box-sizing: border-box;
  457. text-align: center;
  458. text-decoration: none;
  459. border-radius: 0;
  460. -webkit-tap-highlight-color: transparent;
  461. overflow: hidden;
  462. background-color:#FFFFFF;
  463. margin-bottom: 16rpx;
  464. image{
  465. width: 160rpx;
  466. height: 90rpx;
  467. margin-bottom: 0;
  468. }
  469. }
  470. }
  471. }
  472. /* 活动 */
  473. .hot-section{
  474. padding:0 24rpx 48rpx 24rpx;
  475. background: #FFFFFF;
  476. .ht-l{
  477. width: 339rpx;
  478. height: 188rpx;
  479. float: left;
  480. image{
  481. width: 339rpx;
  482. height: 188rpx;
  483. border-radius:10rpx;
  484. }
  485. }
  486. .ht-r{
  487. width: 339rpx;
  488. height: 188rpx;
  489. float: right;
  490. image{
  491. width: 339rpx;
  492. height: 188rpx;
  493. border-radius:10rpx;
  494. }
  495. }
  496. }
  497. .hotgoods-section{
  498. padding: 4rpx 0 24rpx 24rpx;
  499. background: #fff;
  500. .s-header{
  501. display:flex;
  502. align-items:center;
  503. height: 40rpx;
  504. line-height: 40rpx;
  505. .tip{
  506. flex: 4;
  507. font-size: 30rpx;
  508. color: $text-color;
  509. font-weight: bolder;
  510. }
  511. .tit{
  512. flex: 4.4;
  513. font-size: $font-size-28;
  514. color: $text-color;
  515. text-align: right;
  516. }
  517. .icon-xiayibu{
  518. flex: 0.6;
  519. color: $text-color;
  520. text-align: left;
  521. font-size: $font-size-24;
  522. }
  523. }
  524. }
  525. .hotgoods-swiper{
  526. width: 100%;
  527. height: auto;
  528. overflow: hidden;
  529. scroll-view{
  530. padding: 26rpx 0;
  531. width: 100%;
  532. }
  533. .scoll-wrapper{
  534. display:flex;
  535. align-items: flex-start;
  536. }
  537. .floor-item{
  538. width: 210rpx;
  539. padding-right: 24rpx;
  540. font-size: $font-size-24;
  541. color: $text-color;
  542. line-height: 36rpx;
  543. border-radius: 10rpx;
  544. image{
  545. width: 210rpx;
  546. height: 217rpx;
  547. border-radius: 10rpx;
  548. }
  549. .title-none{
  550. font-size: $font-size-26;
  551. color: #FF2A2A;
  552. line-height: 60rpx;
  553. }
  554. .title{
  555. width: 210rpx;
  556. height: 72rpx;
  557. display: flex;
  558. flex-direction: column;
  559. .mclap{
  560. width: 100%;
  561. line-height: 36rpx;
  562. text-overflow:ellipsis;
  563. display: -webkit-box;
  564. word-break: break-all;
  565. -webkit-box-orient: vertical;
  566. -webkit-line-clamp: 2;
  567. overflow: hidden;
  568. font-size: 26rpx;
  569. }
  570. }
  571. .no-price{
  572. height: 36rpx;
  573. line-height: 36rpx;
  574. display: flex;
  575. margin-top: 8rpx;
  576. .p-no{
  577. font-size: $font-size-24;
  578. color: $color-system;
  579. margin-right: 5rpx;
  580. }
  581. .p-stars{
  582. margin-top: 3rpx;
  583. }
  584. image{
  585. width:30rpx;
  586. height: 36rpx;
  587. }
  588. }
  589. .price{
  590. color:#FF2A2A;
  591. line-height: 20rpx;
  592. margin-top: 18rpx;
  593. .sm{
  594. font-size: $font-size-24;
  595. }
  596. .big{
  597. font-size: $font-size-28;
  598. }
  599. }
  600. }
  601. }
  602. .footer-section{
  603. width: 702rpx;
  604. padding: 0 24rpx 30rpx 24rpx;
  605. .s-header{
  606. display:flex;
  607. align-items:center;
  608. height: 40rpx;
  609. line-height: 40rpx;
  610. margin-bottom: 38rpx;
  611. .tip{
  612. flex: 1;
  613. font-size: 30rpx;
  614. color: $text-color;
  615. font-weight: bolder;
  616. }
  617. }
  618. .f-content{
  619. width: 100%;
  620. image{
  621. width: 100%;
  622. height: 350rpx;
  623. }
  624. }
  625. /*底部服务导航*/
  626. .f-tab-section {
  627. width: 100%;
  628. height: auto;
  629. padding: 38rpx 0;
  630. background: #fff;
  631. /*底部服务导航*/
  632. .cate-item {
  633. width: 99rpx;
  634. margin-right: 102rpx;
  635. float: left;
  636. display: flex;
  637. flex-direction: column;
  638. align-items: center;
  639. font-size: $font-size-24;
  640. color: $text-color;
  641. &:last-child{
  642. margin-right: 0;
  643. }
  644. image {
  645. width: 75rpx;
  646. height: 75rpx;
  647. margin-bottom: 8rpx;
  648. border-radius: 50%;
  649. }
  650. }
  651. }
  652. .f-text{
  653. .logo{
  654. width: 80rpx;
  655. height: 80rpx;
  656. float: left;
  657. margin: 0 6rpx;
  658. }
  659. display: flex;
  660. flex-direction: column;
  661. align-items: center;
  662. font-size: $font-size-24;
  663. color: $text-color;
  664. line-height: 80rpx;
  665. padding-top: 20rpx;
  666. }
  667. }
  668. </style>