productDetail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <template>
  2. <view class="pages">
  3. <!-- head -->
  4. <view class="scrollPage-header">
  5. <view :style="{height:statusBarHeight+'px'}"></view>
  6. <view class="header-title">
  7. <view class="header-left" @click="goBack">
  8. <uni-icons type="arrowleft" size="16"></uni-icons>
  9. <text>{{isShare?'首页':'返回'}}</text>
  10. </view>
  11. <view class="header-right"></view>
  12. </view>
  13. </view>
  14. <!-- 内容 -->
  15. <view class="scrollPage-content">
  16. <view class="product-info" v-if="detail">
  17. <view :style="{height:statusBarHeight+'px'}"></view>
  18. <u-swiper mode="number" :border-radius="0" img-mode="aspectFit" :interval="3000" :height="450" :list="imgList" @click="viewImg"></u-swiper>
  19. <view class="product-info-text">
  20. <view class="product-info-text-title">
  21. {{detail.productName}}
  22. <view class="copyText" @click="copy(detail.productName)">复制</view>
  23. <uni-tag style="margin-left: 10px;" size="mini" :circle="true" v-if="detail.status==0 || detail.dealerScopeFlag==0" :text="detail.status==0?'已下架':'已售罄'"></uni-tag>
  24. </view>
  25. <view class="product-info-text-attr">
  26. <view class="product-info-price flex align_center" v-if="!hasLogin">
  27. ¥***
  28. </view>
  29. <view class="flex align_center" v-else>
  30. <view class="product-info-price">
  31. ¥<text>{{Number(detail.price).toFixed(2).toString().split('.')[0]}}</text>.{{Number(detail.price).toFixed(2).toString().split('.')[1]}}
  32. </view>
  33. <view class="flex align_center rebate-tag" v-if="detail.price==30">
  34. 返<text>5</text>元
  35. </view>
  36. <view class="flex align_center rebate-tag" v-if="detail.price==24">
  37. 买3赠2
  38. </view>
  39. <view class="flex align_center tejia-tag" v-if="detail.price==21">
  40. 特价<text>¥20</text>
  41. </view>
  42. </view>
  43. <view class="product-info-nums">
  44. <view class="share">
  45. <button open-type="share"><u-icon :size='24' name="zhuanfa"></u-icon> 分享</button>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <u-divider bg-color="">商品详情</u-divider>
  52. <view class="product-info-guige" v-if="detail&&detail.product">
  53. <view class="row">品牌:<text>{{detail.product.productBrandName||'--'}}</text></view>
  54. <view class="row">原厂编码:<text>{{detail.product.origCode||'--'}} </text> <view class="copyText" v-if="detail.product.origCode" @click="copy(detail.product.origCode)">复制</view></view>
  55. <view class="row">产品编码:<text>{{detail.product.code||'--'}}</text> <view class="copyText" v-if="detail.product.code" @click="copy(detail.product.code)">复制</view></view>
  56. <view class="row">条形码:<text>{{detail.product.qrCode||'--'}}</text> <view class="copyText" v-if="detail.product.qrCode" @click="copy(detail.product.qrCode)">复制</view></view>
  57. <view class="row-ban">商品尺寸:<text>{{detail.product.size||'--'}}</text></view>
  58. <view class="row-ban">计量单位:<text>{{detail.product.unit||'--'}}</text></view>
  59. <view class="row-ban">重量:<text>{{detail.product.weight||'--'}}</text></view>
  60. <view class="row-ban">包装数:<text>{{ (detail.product.packQty) || '--' }}{{ detail.product.packQty ? detail.product.unit : '' }}/{{ detail.product.packQtyUnit||'--' }}</text></view>
  61. </view>
  62. <view class="product-info-content">
  63. <rich-text v-if="detail && detail.product && detail.product.description" :nodes="detail.product.description"></rich-text>
  64. <view v-else style="font-size: 12px;color: #999;text-align: center;">暂无产品介绍</view>
  65. </view>
  66. </view>
  67. <!-- 底部栏 -->
  68. <view class="scrollPage-footer">
  69. <view class="scrollPage-footer-box">
  70. <view class="footer-left">
  71. <view v-if="isShare" class="footer-left-item" @click="goBack">
  72. <u-icon :size='50' color="#666" name="home"></u-icon>
  73. <text class="footer-left-item-text">首页</text>
  74. </view>
  75. <view class="footer-left-item" @click="toCart">
  76. <u-icon :size='50' color="#666" name="shopping-cart"></u-icon>
  77. <text class="footer-left-item-text">购物车</text>
  78. <text class="badge" v-if="totalNum">{{totalNum>99?'99+':totalNum}}</text>
  79. </view>
  80. </view>
  81. <view class="footer-right">
  82. <view class="footer-right-item" @click="addCart($event)">
  83. <text>加入购物车</text>
  84. </view>
  85. <view class="footer-right-item" @click="toBuy">
  86. <text>立即购买</text>
  87. </view>
  88. </view>
  89. </view>
  90. <view :style="{height:safeAreaBottom+'px'}"></view>
  91. </view>
  92. <!-- 购物车动画 -->
  93. <uni-cart-animation ref="cartAnimation" @animationfinish="animationfinish"></uni-cart-animation>
  94. <!-- 立即购买 -->
  95. <page-container
  96. :show="showPopu"
  97. :round="true"
  98. :z-index="100"
  99. position="bottom"
  100. @afterleave="closePopu">
  101. <view class="popu-content" v-if="detail">
  102. <view class="popu-close" @click="showPopu=false">
  103. <uni-icons size="26" type="closeempty"></uni-icons>
  104. </view>
  105. <view class="pupu-box">
  106. <view class="popu-content-img">
  107. <image style="width: 80px; height: 80px;" mode="aspectFit" :src="detail.productMsg||'/static/def_imgs.png'"></image>
  108. </view>
  109. <view class="popu-content-info">
  110. <view class="popu-content-info-title">
  111. <text class="ellipsis-two">{{detail.productName}}</text>
  112. </view>
  113. <view class="popu-content-box">
  114. <view class="popu-content-price" v-if="hasLogin">
  115. ¥<text>{{Number(detail.price).toFixed(2).toString().split('.')[0]}}</text>.{{Number(detail.price).toFixed(2).toString().split('.')[1]}}
  116. </view>
  117. <view class="popu-content-price" v-else>¥***</view>
  118. <view class="flex align_center rebate-tag" v-if="detail.price==30">
  119. 返<text>5</text>元
  120. </view>
  121. <view class="flex align_center rebate-tag" v-if="detail.price==24">
  122. 买3赠2
  123. </view>
  124. <view class="flex align_center tejia-tag" v-if="detail.price==21">
  125. 特价<text>¥20</text>
  126. </view>
  127. </view>
  128. <view class="popu-content-num flex align_center justify_end">
  129. <text>数量</text>
  130. <uni-number-box v-model="qty" :min="1" :max="999999"></uni-number-box>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="pupu-box gift-box">
  135. <view class="popu-content-img">
  136. <image style="width: 50px; height: 50px;" mode="aspectFit" :src="detail.productMsg||'/static/def_imgs.png'"></image>
  137. </view>
  138. <view class="popu-content-info">
  139. <view class="popu-content-info-title flex align_center">
  140. <view class="flex align_center rebate-tag">
  141. 赠品
  142. </view>
  143. <text class="ellipsis-two">{{detail.productName}}</text>
  144. </view>
  145. <view class="popu-content-box justify_between">
  146. <view></view>
  147. <view class="popu-content-num flex align_center">
  148. <text>X</text> 1
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. <view class="popu-content-btn">
  154. <view class="popu-content-btn-item" @click="toBuy">确定采购</view>
  155. </view>
  156. <view :style="{height:safeAreaBottom+'px'}"></view>
  157. </view>
  158. </page-container>
  159. </view>
  160. </template>
  161. <script>
  162. import {
  163. mapState,
  164. mapMutations,
  165. } from 'vuex'
  166. import { addCart, getCartCount } from '@/api/cart.js'
  167. import { getShopDetail } from '@/api/shop.js'
  168. import { purchaseSave, purchaseCheck } from '@/api/purchase.js'
  169. import { toAuthStore, toLogin } from "@/utils/index.js"
  170. export default {
  171. data() {
  172. return {
  173. loading: false,
  174. showPopu: false, // 弹框
  175. statusBarHeight: 0, // 状态栏高度
  176. safeAreaBottom: 0, // 底部安全区域高度
  177. imgList: [],
  178. shopProductSn: null,
  179. detail: null,
  180. qty: 1,// 数量
  181. isShare: false ,// 是否从分享打开的
  182. busPos:{
  183. x: 10,
  184. y:uni.getSystemInfoSync().windowHeight - 30
  185. }
  186. }
  187. },
  188. onLoad(option) {
  189. this.isShare = !!option.share
  190. // 计算安全区域
  191. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  192. this.safeAreaBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
  193. this.shopProductSn = option.sn
  194. // 获取产品详情
  195. this.getDetail()
  196. },
  197. // 分享
  198. onShareAppMessage(e){
  199. return {
  200. title: this.detail ? this.detail.productName : '商品名称',
  201. path: '/pagesB/shopiing/productDetail?sn='+this.shopProductSn+'&share=1',
  202. imageUrl:this.detail ? this.detail.productMsg : '',
  203. type: '1'
  204. }
  205. },
  206. computed: {
  207. ...mapState(['hasLogin']),
  208. // 登录用户信息
  209. userInfo(){
  210. return this.$store.state.vuex_userInfo
  211. },
  212. totalNum(){
  213. return this.hasLogin&&this.userInfo.sysUserFlag == '1' ? this.$store.state.vuex_cartTotal : 0
  214. }
  215. },
  216. methods: {
  217. // 返回
  218. goBack(){
  219. if(this.isShare){
  220. uni.reLaunch({
  221. url: '/pages/index/index'
  222. })
  223. }else{
  224. uni.navigateBack()
  225. }
  226. },
  227. // 复制
  228. copy(text){
  229. uni.setClipboardData({
  230. data: text,
  231. })
  232. },
  233. viewImg(index){
  234. uni.previewImage({
  235. urls: this.imgList
  236. })
  237. },
  238. // 产品详情
  239. getDetail(){
  240. uni.showLoading({
  241. title: '加载中'
  242. })
  243. const storeShelf = this.$store.state.vuex_storeShelf
  244. const dealerSn = this.hasLogin && this.userInfo && this.userInfo.sysUserFlag == '1'&&storeShelf ? storeShelf.dealerSn : ''
  245. // 获取产品详情
  246. getShopDetail({
  247. shopProductSn: this.shopProductSn,
  248. dealerSn: dealerSn
  249. }).then(res => {
  250. if(res.status == 200){
  251. this.detail = res.data
  252. if(res.data && res.data.productPicList){
  253. res.data.productPicList.forEach(item => {
  254. this.imgList.push(item.imageUrl||'/static/def_imgs.png')
  255. })
  256. }else{
  257. this.imgList.push(res.data.productMsg||'/static/def_imgs.png')
  258. }
  259. }
  260. uni.hideLoading()
  261. })
  262. },
  263. animationfinish(){
  264. this.loading = false
  265. },
  266. // 加入购物车
  267. addCart(event){
  268. if(this.hasLogin){
  269. // 游客未认证
  270. if(this.userInfo.sysUserFlag == '0'){
  271. toAuthStore()
  272. }else{
  273. if(this.loading){
  274. return
  275. }
  276. this.loading = true
  277. this.$refs.cartAnimation.touchOnGoods(event,this.busPos);
  278. // 加入购物车
  279. addCart({
  280. qty: 1,
  281. price: this.detail.price,
  282. productSn: this.detail.productSn
  283. }).then(res => {
  284. if(res.status == 200){
  285. uni.$emit('refashCart')
  286. }
  287. })
  288. }
  289. }else{
  290. toLogin()
  291. }
  292. },
  293. // 打开购物车
  294. toCart(){
  295. if(this.hasLogin){
  296. // 游客未认证
  297. if(this.userInfo.sysUserFlag == '0'){
  298. toAuthStore()
  299. }else{
  300. uni.navigateTo({
  301. url: '/pagesB/cart/index'
  302. })
  303. }
  304. }else{
  305. toLogin()
  306. }
  307. },
  308. // 立即购买
  309. toBuy(){
  310. if(this.hasLogin){
  311. // 游客未认证
  312. if(this.userInfo.sysUserFlag == '0'){
  313. toAuthStore()
  314. }else{
  315. if(this.detail.status==0 || this.detail.dealerScopeFlag==0){
  316. uni.showToast({
  317. title: '此商品已'+(this.detail.status==0?'下架':'售罄'),
  318. icon: 'none'
  319. })
  320. }else{
  321. // 打开数量选择弹框
  322. if(!this.showPopu){
  323. this.showPopu = true
  324. }else{
  325. // 提交
  326. this.submitOrder()
  327. }
  328. }
  329. }
  330. }else{
  331. toLogin()
  332. }
  333. },
  334. // 去结算
  335. submitOrder(){
  336. uni.showLoading({
  337. title: '提交中...',
  338. mask: true
  339. })
  340. const _this = this
  341. purchaseCheck({detailList: [{
  342. productSn:this.detail.productSn,
  343. productCode:this.detail.productCode,
  344. qty: this.qty,
  345. price:this.detail.price,
  346. }]}).then(res => {
  347. if(res.status == 200){
  348. const successList = res.data.successList.map(item => {
  349. return {
  350. productSn:item.productSn,
  351. productCode: item.productCode,
  352. qty: item.qty,
  353. price:item.price
  354. }
  355. })
  356. const removeList = res.data.removeList.map(item => item.productCode)
  357. const selloutList = res.data.selloutList.map(item => item.productCode)
  358. // 有已下架或已售罄产品提示
  359. if(removeList.length || selloutList.length){
  360. uni.showModal({
  361. title: '提示',
  362. content: (removeList.length ? `产品${removeList.join(',')}已下架,`:'')+(selloutList.length?`产品${selloutList.join(',')}已售罄,`:'')+`不可采购。`+(successList.length?'是否继续采购其他产品?':''),
  363. showCancel: successList.length,
  364. confirmText: successList.length?'确定':'知道了',
  365. success(ret) {
  366. uni.hideLoading()
  367. if(ret.confirm && successList.length){
  368. _this.submitForm(successList)
  369. }
  370. }
  371. })
  372. }else{
  373. // 直接提交
  374. _this.submitForm(successList)
  375. }
  376. }else{
  377. uni.hideLoading()
  378. uni.showToast({
  379. title: res.message,
  380. icon: 'none'
  381. })
  382. }
  383. })
  384. },
  385. submitForm(detailList){
  386. purchaseSave({
  387. detailList: detailList
  388. }).then(res => {
  389. uni.hideLoading()
  390. if(res.status == 200){
  391. res.data.detailList = []
  392. this.$store.state.vuex_tempData = res.data
  393. this.showPopu = false
  394. this.submitOk = true
  395. }else{
  396. uni.showToast({
  397. title: res.message,
  398. icon: 'none'
  399. })
  400. }
  401. })
  402. },
  403. // 关闭后
  404. closePopu(){
  405. this.showPopu = false
  406. this.qty = 1
  407. uni.hideLoading()
  408. // 提交成功
  409. if(this.submitOk){
  410. uni.navigateTo({
  411. url: "/pagesB/procureOrder"
  412. })
  413. }
  414. },
  415. }
  416. }
  417. </script>
  418. <style lang="less">
  419. .pages {
  420. height: 100vh;
  421. display: flex;
  422. flex-direction: column;
  423. .scrollPage-header{
  424. z-index: 1;
  425. width: 100%;
  426. position:fixed;
  427. left: 0;
  428. top: 0;
  429. .header-title{
  430. display: flex;
  431. align-items: center;
  432. justify-content: space-between;
  433. padding: 0 10px;
  434. height: 44px;
  435. .header-left{
  436. display: flex;
  437. align-items: center;
  438. text{
  439. font-size: 14px;
  440. color: #333333;
  441. }
  442. background-color: rgba(255,255,255,0.6);
  443. box-shadow: 0px 1px 0px 0px #E6E6E6;
  444. border-radius: 50px;
  445. padding: 3px 6px 3px;
  446. }
  447. .header-right{
  448. width: 50px;
  449. }
  450. }
  451. }
  452. .copyText{
  453. background-color: #efefef;
  454. border-radius: 100rpx;
  455. padding: 0 20rpx;
  456. color: #03A9F4;
  457. font-size: 20rpx;
  458. display: inline-block;
  459. margin-left: 20rpx;
  460. height: 44rpx;
  461. line-height: 44rpx;
  462. }
  463. .scrollPage-content{
  464. flex: 1;
  465. overflow-y: auto;
  466. .product-info{
  467. background:#fff;
  468. margin-bottom: 10px;
  469. .product-info-text{
  470. padding: 10px;
  471. .product-info-text-title{
  472. font-weight: bold;
  473. color: #333333;
  474. line-height: 22px;
  475. margin-bottom: 5px;
  476. }
  477. .product-info-text-attr{
  478. display: flex;
  479. align-items: center;
  480. justify-content: space-between;
  481. .product-info-price{
  482. color: red;
  483. display: flex;
  484. align-items: baseline;
  485. font-size: 12px;
  486. text{
  487. font-size: 38rpx;
  488. }
  489. }
  490. .product-info-nums{
  491. font-size: 12px;
  492. color: #999999;
  493. >view{
  494. display: flex;
  495. align-items: center;
  496. }
  497. .share{
  498. button{
  499. width: auto;
  500. padding: 0;
  501. border: 0;
  502. background: none;
  503. line-height: normal;
  504. margin: 0;
  505. display: inline;
  506. font-size: 12px;
  507. color: #999;
  508. &::after{
  509. border:none;
  510. }
  511. /deep/ .u-icon{
  512. margin-right: 3px;
  513. }
  514. }
  515. }
  516. }
  517. }
  518. }
  519. }
  520. .product-info-guige{
  521. display: flex;
  522. flex-wrap: wrap;
  523. justify-content: space-between;
  524. background:#fff;
  525. margin: 10px 0;
  526. padding: 10px;
  527. line-height: 28px;
  528. .row{
  529. width: 100%;
  530. }
  531. .row-ban{
  532. width: 50%;
  533. }
  534. >view{
  535. color: #999;
  536. text{
  537. color: #333333;
  538. }
  539. }
  540. }
  541. .product-info-content{
  542. background:#fff;
  543. margin-bottom: 10px;
  544. padding: 10px;
  545. line-height: 28px;
  546. }
  547. }
  548. .rebate-tag{
  549. background: #ffe7df;
  550. color: #E91E63;
  551. padding: 2px 5px;
  552. font-size: 10px;
  553. border-radius: 3px;
  554. margin-left: 6px;
  555. }
  556. .tejia-tag{
  557. color: #E91E63;
  558. margin-left: 6px;
  559. font-size: 12px;
  560. text{
  561. font-size: 12px;
  562. color: #999;
  563. margin-left: 5px;
  564. }
  565. }
  566. .scrollPage-footer{
  567. background-color: #FFFFFF;
  568. width: 100%;
  569. position: fixed;
  570. left: 0;
  571. bottom: 0;
  572. .scrollPage-footer-box{
  573. display: flex;
  574. align-items: center;
  575. justify-content: space-between;
  576. height: 50px;
  577. }
  578. .footer-left{
  579. display: flex;
  580. align-items: center;
  581. justify-content: space-between;
  582. width: 35%;
  583. .footer-left-item{
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. justify-content: center;
  588. padding: 0 15px;
  589. position: relative;
  590. .footer-left-item-text{
  591. font-size: 12px;
  592. color: #666666;
  593. }
  594. .badge{
  595. background: #f44336;
  596. color: #fff;
  597. position: absolute;
  598. right: 5px;
  599. top: -8px;
  600. font-size: 12px;
  601. display: flex;
  602. align-items: center;
  603. justify-content: center;
  604. border-radius: 50rpx;
  605. padding: 0 10rpx;
  606. }
  607. }
  608. }
  609. .footer-right{
  610. width: 60%;
  611. height: 100%;
  612. display: flex;
  613. align-items: center;
  614. .footer-right-item{
  615. height: 100%;
  616. display: flex;
  617. flex-direction: column;
  618. align-items: center;
  619. justify-content: center;
  620. width: 50%;
  621. font-size: 14px;
  622. color: #FFFFFF;
  623. }
  624. .footer-right-item:first-child{
  625. background-color: #FF9900;
  626. }
  627. .footer-right-item:last-child{
  628. background-color: #FF0000;
  629. }
  630. }
  631. }
  632. .popu-content{
  633. display: flex;
  634. flex-direction: column;
  635. align-items: center;
  636. padding: 10px 15px;
  637. .popu-close{
  638. padding: 10px;
  639. position: absolute;
  640. right: 0;
  641. top: 0;
  642. }
  643. .pupu-box{
  644. display: flex;
  645. align-items: center;
  646. justify-content: space-between;
  647. margin-top: 35px;
  648. width: 100%;
  649. }
  650. .popu-content-img{
  651. border-radius: 6px;
  652. border: 1px solid #eee;
  653. overflow: hidden;
  654. }
  655. .popu-content-info{
  656. padding: 0 0 0 10px;
  657. flex-grow: 1;
  658. overflow: hidden;
  659. width: 80%;
  660. .popu-content-info-title{
  661. font-size: 14px;
  662. }
  663. }
  664. .gift-box{
  665. padding-left: 8%;
  666. margin-top: 10px;
  667. border-top: 1px solid #eee;
  668. padding-top: 10px;
  669. .popu-content-info-title{
  670. font-size: 12px;
  671. color: #666;
  672. }
  673. .popu-content-box{
  674. margin-top: 6px;
  675. }
  676. .rebate-tag{
  677. margin: 0 5px 0 0;
  678. background: #ff0000;
  679. color: #fff;
  680. width: 50px;
  681. flex-grow: 1;
  682. display: flex;
  683. justify-content: center;
  684. }
  685. }
  686. .popu-content-box{
  687. display: flex;
  688. align-items: baseline;
  689. margin-top: 5px;
  690. .popu-content-price{
  691. color: red;
  692. display: flex;
  693. align-items: baseline;
  694. font-size: 12px;
  695. text{
  696. font-size: 38rpx;
  697. }
  698. }
  699. }
  700. .popu-content-num{
  701. font-size: 12px;
  702. color: #999999;
  703. padding: 0 10px;
  704. > text{
  705. margin-right: 10px;
  706. font-size: 10px;
  707. }
  708. }
  709. .popu-content-btn{
  710. width: 100%;
  711. display: flex;
  712. align-items: center;
  713. justify-content: center;
  714. margin-top: 20px;
  715. .popu-content-btn-item{
  716. width: 60%;
  717. height: 40px;
  718. background-color: #f70000;
  719. color: #FFFFFF;
  720. font-size: 14px;
  721. display: flex;
  722. align-items: center;
  723. justify-content: center;
  724. border-radius: 100px;
  725. }
  726. }
  727. }
  728. }
  729. </style>