user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template>
  2. <view class="container user clearfix">
  3. <cm-custom :navbar-data="nvabarData"></cm-custom>
  4. <view class="user-section">
  5. <view
  6. class="header"
  7. :style="{
  8. height: CustomBar + 90 - StatusBar + 'px',
  9. paddingTop: CustomBar + 'px',
  10. background: 'url(' + bgImgUrl + ')',
  11. backgroundSize: 'cover'
  12. }"
  13. >
  14. <view class="header-main" v-if="hasLogin">
  15. <view class="header-text">
  16. <view class="user-item">
  17. <text class="u-h1">{{ name }}</text>
  18. </view>
  19. <view class="user-item"> <text class="u-tips">协销人员</text> </view>
  20. </view>
  21. <view class="header-icon" @click="TestZHIboFn()"
  22. ><image src="https://static.caimei365.com/app/img/icon/icon-seller@3x.png" mode=""></image
  23. ></view>
  24. </view>
  25. <!-- 订单 -->
  26. <view class="user-order">
  27. <view class="tab-title" @click="navigator('/pages/seller/order/order-list?listType=0')">
  28. <text class="cell-tit">我的订单</text> <text class="cell-more">全部订单</text>
  29. <text class="iconfont icon-xiayibu"></text>
  30. </view>
  31. <view class="order-section">
  32. <view
  33. class="order-item"
  34. @click="navigator('/pages/seller/order/order-list?listType=1')"
  35. hover-class="common-hover"
  36. :hover-stay-time="50"
  37. >
  38. <view class="order-icon">
  39. <image src="https://static.caimei365.com/app/img/icon/order5@3x.png" mode=""></image>
  40. <text
  41. v-if="beforeConfirmCount > 0"
  42. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  43. :class="[beforeConfirmCount < 10 ? 'goleft' : '']"
  44. >
  45. {{ beforeConfirmCount >= 99 ? '99+' : beforeConfirmCount }}
  46. </text>
  47. </view>
  48. <text class="order-t">待确认</text>
  49. </view>
  50. <view
  51. class="order-item"
  52. @click="navigator('/pages/seller/order/order-list?listType=2')"
  53. hover-class="common-hover"
  54. :hover-stay-time="50"
  55. >
  56. <view class="order-icon">
  57. <image src="https://static.caimei365.com/app/img/icon/order1@3x.png" mode=""></image>
  58. <text
  59. v-if="beforePayCount > 0"
  60. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num "
  61. :class="[beforePayCount < 10 ? 'goleft' : '']"
  62. >
  63. {{ beforePayCount >= 99 ? '99+' : beforePayCount }}
  64. </text>
  65. </view>
  66. <text class="order-t">待付款</text>
  67. </view>
  68. <view
  69. class="order-item"
  70. @click="navigator('/pages/seller/order/order-list?listType=3')"
  71. hover-class="common-hover"
  72. :hover-stay-time="50"
  73. >
  74. <view class="order-icon">
  75. <image src="https://static.caimei365.com/app/img/icon/order2@3x.png" mode=""></image>
  76. <text
  77. v-if="beforeShipCount > 0"
  78. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  79. :class="[beforeShipCount < 10 ? 'goleft' : '']"
  80. >
  81. {{ beforeShipCount >= 99 ? '99+' : beforeShipCount }}
  82. </text>
  83. </view>
  84. <text class="order-t">待发货</text>
  85. </view>
  86. <view
  87. class="order-item"
  88. @click="navigator('/pages/seller/order/order-list?listType=4')"
  89. hover-class="common-hover"
  90. :hover-stay-time="50"
  91. >
  92. <view class="order-icon">
  93. <image src="https://static.caimei365.com/app/img/icon/order3@3x.png" mode=""></image>
  94. <text
  95. v-if="shippedCount > 0"
  96. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  97. :class="[shippedCount < 10 ? 'goleft' : '']"
  98. >
  99. {{ shippedCount >= 99 ? '99+' : shippedCount }}
  100. </text>
  101. </view>
  102. <text class="order-t">已发货</text>
  103. </view>
  104. <view
  105. class="order-item"
  106. @click="navigator('/pages/seller/order/order-list?listType=5')"
  107. hover-class="common-hover"
  108. :hover-stay-time="50"
  109. >
  110. <view class="order-icon">
  111. <image src="https://static.caimei365.com/app/img/icon/order4@3x.png" mode=""></image>
  112. <text
  113. v-if="refundsCount > 0"
  114. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  115. :class="[refundsCount < 10 ? 'goleft' : '']"
  116. >
  117. {{ refundsCount >= 99 ? '99+' : refundsCount }}
  118. </text>
  119. </view>
  120. <text class="order-t">退货/款</text>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <!-- 底部跳转 -->
  126. <view class="foot-list">
  127. <!-- <view class="list-cell-image" @click="navigator('/pages/user/coupon/coupon-activity')">
  128. <view class="text">
  129. <view class="h1">美博会</view>
  130. <view class="p">大额好券等你来领~</view>
  131. </view>
  132. </view> -->
  133. <view class="list-cell-item">
  134. <view
  135. class="list-cell"
  136. v-for="(item, index) in firstList"
  137. :key="index"
  138. @click="navigator(item.path)"
  139. hover-class="cell-hover"
  140. :hover-stay-time="50"
  141. >
  142. <view class="cell-icon">
  143. <image class="cell-icon-image" :src="item.icon" mode=""></image>
  144. </view>
  145. <text class="cell-tit">{{ item.name }}</text>
  146. <text
  147. v-if="index == 1 && orderNum > 0"
  148. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  149. >
  150. {{ orderNum == 99 ? '99+' : orderNum }}
  151. </text>
  152. <text class="cell-more iconfont icon-xiayibu"></text>
  153. </view>
  154. </view>
  155. <view class="list-cell-item">
  156. <view
  157. class="list-cell"
  158. v-for="(item, index) in twoList"
  159. :key="index"
  160. @click="navigator(item.path)"
  161. hover-class="cell-hover"
  162. :hover-stay-time="50"
  163. >
  164. <view class="cell-icon">
  165. <image class="cell-icon-image" :src="item.icon" mode=""></image>
  166. </view>
  167. <text class="cell-tit">{{ item.name }}</text>
  168. <text class="cell-more iconfont icon-xiayibu"></text>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. </template>
  175. <script>
  176. import authorize from '@/common/config/authorize.js'
  177. import { mapState, mapMutations } from 'vuex'
  178. export default {
  179. data() {
  180. return {
  181. nvabarData: {
  182. //顶部自定义导航
  183. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  184. showSearch: 0,
  185. title: '账户中心', // 导航栏 中间的标题
  186. haveBack: false,
  187. textLeft: this.$store.state.isIphone,
  188. textColor: '#FFFFFF',
  189. bgColor: ''
  190. },
  191. CustomBar: this.CustomBar, // 顶部导航栏高度
  192. StatusBar: this.StatusBar,
  193. bgImgUrl: 'https://static.caimei365.com/app/img/bg/home_cumres@2x.png',
  194. name: '',
  195. headpic: '',
  196. userId: '',
  197. serviceProviderId: '',
  198. skeletonShow: true,
  199. orderNum: 0, //未查看订单数量
  200. beforeConfirmCount: 0, //待确认角标
  201. beforePayCount: 0, //待付款角标
  202. beforeShipCount: 0, //待发货角标
  203. shippedCount: 0, //已发货角标
  204. refundsCount: '', //退货/款角标
  205. institutionsCont: 120,
  206. firstList: [
  207. {
  208. name: '待注册机构',
  209. path: '/pages/seller/club/stayClub-list',
  210. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_1@2x.png'
  211. },
  212. {
  213. name: '机构列表',
  214. path: '/pages/seller/club/list',
  215. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_2@2x.png'
  216. },
  217. {
  218. name: '拉机构上线',
  219. path: '/pages/seller/login/register-select',
  220. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_3@2x.png'
  221. },
  222. {
  223. name: '邀请运营人员',
  224. path: '/pages/seller/club/allClub-list',
  225. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_4@2x.png'
  226. }
  227. ],
  228. twoList: [
  229. {
  230. name: '帮机构下单',
  231. path: '/pages/seller/club/club-list',
  232. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_5@2x.png'
  233. },
  234. // {
  235. // name: '发布二手商品',
  236. // path: '/pages/second/form/form-select',
  237. // icon: 'https://static.caimei365.com/app/img/icon/icon_seller_6@2x.png'
  238. // },
  239. {
  240. name: '客户咨询记录',
  241. path: '/pages/seller/remarks/list',
  242. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_7@2x.png'
  243. },
  244. {
  245. name: '机构活跃分析',
  246. path: '/pages/seller/remarks/institutional-activity-analysis',
  247. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_7@2x.png'
  248. },
  249. {
  250. name: '我的名片',
  251. path: '/pages/seller/remarks/business-card',
  252. icon: 'https://static.caimei365.com/app/img/icon/icon_seller_7@2x.png'
  253. }
  254. ]
  255. }
  256. },
  257. created() {
  258. this.initData()
  259. },
  260. computed: {
  261. ...mapState(['hasLogin', 'userInfo'])
  262. },
  263. methods: {
  264. ...mapMutations(['login', 'logout']),
  265. async initData() {
  266. const wechatCode = await authorize.getCode('weixin') // 根据微信的code获取用户登录状态:1已登录过 -1未登录过
  267. const getUserInfo = await authorize.getUserInfo('weixin')
  268. const params = { code: wechatCode, encryptedData: getUserInfo.encryptedData, iv: getUserInfo.iv }
  269. this.UserService.UserLoginAuthApplets(params).then(response => {
  270. if (response.code == 0 || response.code == 4) {
  271. this.isLogin = true
  272. this.userID = response.data.userId
  273. this.userIdentity = response.data.userIdentity
  274. this.clubStatus = response.data.clubStatus
  275. this.serviceProviderId = response.data.serviceProviderId
  276. this.$store.commit('updateStatus', response.data)
  277. this.login(response.data)
  278. uni.setStorageSync('token', response.data.token)
  279. uni.setStorageSync('unionId', response.data.unionId)
  280. this.getUserSellerHome()
  281. this.getOrderCount()
  282. } else {
  283. this.isLogin = false
  284. this.logout()
  285. uni.setStorageSync('unionId', response.data.unionId)
  286. this.$store.commit('updateStatus', response.data)
  287. this.$api.navigateTo('/pages/seller/login/login')
  288. }
  289. })
  290. },
  291. getUserSellerHome() {
  292. this.$api.getStorage().then(resolve => {
  293. this.userId = resolve.userId ? resolve.userId : 0
  294. this.SellerService.GetSellerHome({ userId: this.userId })
  295. .then(response => {
  296. let sellerData = response.data
  297. this.name = sellerData.linkMan ? sellerData.linkMan : '' //协销名称
  298. this.headpic = sellerData.logo //会所头像
  299. this.skeletonShow = false
  300. })
  301. .catch(error => {
  302. this.$util.msg(error.msg, 2000)
  303. })
  304. })
  305. },
  306. getOrderCount() {
  307. this.SellerService.GetOrderCount({ serviceProviderId: this.serviceProviderId }).then(response => {
  308. let data = response.data
  309. this.beforeConfirmCount = this.showBadge(data.confirmedCount) //待确认
  310. this.beforePayCount = this.showBadge(data.paymentCount) //待付款
  311. this.beforeShipCount = this.showBadge(data.waitShipmentsCount) //待发货
  312. this.shippedCount = this.showBadge(data.shipmentsCount) //已发货
  313. this.refundsCount = this.showBadge(data.salesReturnCount) //退货/款
  314. this.orderNum = this.showBadge(data.uncheckedOrderCount) //未查看订单数量
  315. })
  316. },
  317. TestZHIboFn() {
  318. //测试跳转直播小程序
  319. // uni.navigateToMiniProgram({
  320. // appId: 'wx92d650b253f8f2e3',
  321. // path: '/pages/index/index',
  322. // extraData: {
  323. // 'data1': 'test'
  324. // },
  325. // envVersion: 'develop',
  326. // success(res) {
  327. // // 打开成功
  328. // console.log(res)
  329. // }
  330. // })
  331. },
  332. navigator(url) {
  333. this.$api.navigateTo(url)
  334. },
  335. showBadge(n) {
  336. let num = ''
  337. if (n > 100) {
  338. num = 99
  339. } else {
  340. num = n
  341. }
  342. return num
  343. },
  344. onPullDownRefresh() {
  345. //下拉刷新
  346. this.initData()
  347. uni.stopPullDownRefresh()
  348. }
  349. }
  350. }
  351. </script>
  352. <style lang="scss">
  353. @import '@/uni.scss';
  354. page {
  355. background-color: #f7f7f7;
  356. }
  357. .user {
  358. width: 100%;
  359. height: 100%;
  360. position: relative;
  361. background: rgba(247, 247, 247, 1);
  362. }
  363. .header {
  364. width: 100%;
  365. position: relative;
  366. background-size: cover;
  367. }
  368. .header-main {
  369. width: 702rpx;
  370. height: 130rpx;
  371. padding: 12rpx 24rpx;
  372. display: flex;
  373. .header-text {
  374. flex: 8;
  375. display: flex;
  376. flex-direction: column;
  377. .user-item {
  378. flex: 1;
  379. height: 64rpx;
  380. line-height: 64rpx;
  381. .u-tips {
  382. display: inline-block;
  383. float: left;
  384. width: 98rpx;
  385. height: 30rpx;
  386. border: 1px solid #ffffff;
  387. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  388. border-radius: 16rpx;
  389. line-height: 30rpx;
  390. font-size: $font-size-20;
  391. text-align: center;
  392. color: #ffffff;
  393. margin-left: 10rpx;
  394. }
  395. .u-viptips {
  396. display: inline-block;
  397. float: left;
  398. width: 98rpx;
  399. height: 30rpx;
  400. border: 1px solid #ffe600;
  401. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  402. border-radius: 16rpx;
  403. line-height: 30rpx;
  404. font-size: $font-size-20;
  405. text-align: center;
  406. color: #ffe600;
  407. margin-left: 10rpx;
  408. margin-top: 17rpx;
  409. }
  410. .u-h1 {
  411. float: left;
  412. font-size: $font-size-36;
  413. color: #ffffff;
  414. text-align: left;
  415. -o-text-overflow: ellipsis;
  416. text-overflow: ellipsis;
  417. display: -webkit-box;
  418. word-break: break-all;
  419. -webkit-box-orient: vertical;
  420. -webkit-line-clamp: 1;
  421. overflow: hidden;
  422. }
  423. .u-p {
  424. font-size: $font-size-24;
  425. line-height: 64rpx;
  426. color: #ffffff;
  427. text-align: left;
  428. }
  429. }
  430. }
  431. .header-icon {
  432. flex: 2;
  433. margin-right: 20rpx;
  434. image {
  435. float: right;
  436. width: 128rpx;
  437. height: 128rpx;
  438. border-radius: 100%;
  439. border: 2rpx solid #ffffff;
  440. }
  441. }
  442. }
  443. .header-main-none {
  444. width: 702rpx;
  445. height: 152rpx;
  446. padding: 0 24rpx;
  447. display: flex;
  448. .header-text {
  449. flex: 8;
  450. display: flex;
  451. flex-direction: column;
  452. .user-item {
  453. flex: 1;
  454. height: 50rpx;
  455. line-height: 50rpx;
  456. .line {
  457. margin: 0 10rpx;
  458. }
  459. .u-h1 {
  460. float: left;
  461. font-size: $font-size-36;
  462. color: #ffffff;
  463. text-align: left;
  464. -o-text-overflow: ellipsis;
  465. text-overflow: ellipsis;
  466. display: -webkit-box;
  467. word-break: break-all;
  468. -webkit-box-orient: vertical;
  469. -webkit-line-clamp: 1;
  470. overflow: hidden;
  471. }
  472. .u-p {
  473. font-size: $font-size-24;
  474. line-height: 50rpx;
  475. color: #efefef;
  476. text-align: left;
  477. }
  478. .u-btn {
  479. width: 160rpx;
  480. height: 40rpx;
  481. background: rgba(255, 255, 255, 0.5);
  482. border-radius: 5rpx;
  483. line-height: 40rpx;
  484. text-align: center;
  485. font-size: $font-size-24;
  486. color: #ffffff;
  487. display: block;
  488. margin-top: 5rpx;
  489. padding-left: 6rpx;
  490. .icon-xiangyouhuabeifen {
  491. font-size: $font-size-24;
  492. }
  493. }
  494. }
  495. }
  496. .header-icon {
  497. flex: 2;
  498. display: flex;
  499. margin-right: 20rpx;
  500. align-items: center;
  501. justify-content: center;
  502. image {
  503. float: right;
  504. width: 128rpx;
  505. height: 128rpx;
  506. border-radius: 100%;
  507. border: 2rpx solid #ffffff;
  508. }
  509. }
  510. }
  511. .user-order {
  512. width: 654rpx;
  513. height: auto;
  514. padding: 0 24rpx;
  515. background-color: $bg-color;
  516. margin-bottom: 24rpx;
  517. position: absolute;
  518. bottom: -170rpx;
  519. left: 24rpx;
  520. border-radius: 20rpx;
  521. }
  522. .tab-title {
  523. font-size: $font-size-28;
  524. line-height: 80rpx;
  525. color: #333333;
  526. text-align: left;
  527. border-bottom: 1px solid #f8f8f8;
  528. position: relative;
  529. .cell-tit {
  530. font-size: $font-size-28;
  531. color: $text-color;
  532. }
  533. .cell-more {
  534. float: right;
  535. line-height: 80rpx;
  536. font-size: $font-size-24;
  537. color: #666666;
  538. padding-right: 30rpx;
  539. }
  540. .iconfont {
  541. width: 30rpx;
  542. height: 80rpx;
  543. line-height: 80rpx;
  544. text-align: center;
  545. position: absolute;
  546. right: 0;
  547. top: 0;
  548. display: block;
  549. font-size: $font-size-28;
  550. }
  551. }
  552. .order-section {
  553. display: flex;
  554. justify-content: space-around;
  555. align-items: center;
  556. flex-wrap: wrap;
  557. height: 99rpx;
  558. padding: 24rpx 0;
  559. }
  560. .order-item {
  561. flex: 1;
  562. display: flex;
  563. flex-direction: column;
  564. align-items: center;
  565. position: relative;
  566. &:last-child {
  567. margin-right: 0;
  568. }
  569. .order-icon {
  570. width: 52rpx;
  571. height: 52rpx;
  572. position: relative;
  573. image {
  574. width: 52rpx;
  575. height: 52rpx;
  576. }
  577. .icon-num {
  578. position: absolute;
  579. right: -24rpx;
  580. top: -9rpx;
  581. }
  582. .icon-num.goleft {
  583. right: -12rpx;
  584. }
  585. }
  586. .order-t {
  587. line-height: 50rpx;
  588. font-size: $font-size-24;
  589. color: $text-color;
  590. }
  591. }
  592. .foot-list {
  593. width: 702rpx;
  594. padding: 0 24rpx;
  595. padding-top: 168rpx;
  596. }
  597. .list-cell-image {
  598. width: 100%;
  599. height: 168rpx;
  600. background: url(https://static.caimei365.com/app/meibohui/app/activity-small-banner@2x.png);
  601. background-size: cover;
  602. box-sizing: border-box;
  603. margin-bottom: 24rpx;
  604. .text {
  605. width: 100%;
  606. height: 100%;
  607. box-sizing: border-box;
  608. padding: 38rpx 56rpx;
  609. .h1 {
  610. line-height: 50rpx;
  611. font-size: $font-size-36;
  612. color: #ffffff;
  613. }
  614. .p {
  615. line-height: 34rpx;
  616. font-size: $font-size-30;
  617. color: #ffffff;
  618. }
  619. }
  620. }
  621. .list-cell-item {
  622. width: 654rpx;
  623. height: auto;
  624. margin-bottom: 24rpx;
  625. padding: 0 24rpx;
  626. background: $bg-color;
  627. border-radius: 20rpx;
  628. }
  629. .list-cell {
  630. width: 100%;
  631. line-height: 100rpx;
  632. position: relative;
  633. background: $bg-color;
  634. border-bottom: 1px solid #ebebeb;
  635. height: 100rpx;
  636. &:last-child {
  637. border-bottom: none;
  638. }
  639. &.cell-hover {
  640. background: #fafafa;
  641. }
  642. .cell-icon {
  643. width: 60rpx;
  644. height: 100rpx;
  645. text-align: center;
  646. box-sizing: border-box;
  647. padding: 32rpx 12rpx;
  648. float: left;
  649. .cell-icon-image {
  650. width: 36rpx;
  651. height: 36rpx;
  652. display: block;
  653. }
  654. }
  655. .cell-more {
  656. width: 60rpx;
  657. height: 100rpx;
  658. line-height: 100rpx;
  659. text-align: right;
  660. position: absolute;
  661. right: 0;
  662. top: 0;
  663. font-size: $font-size-28;
  664. color: #666666;
  665. .txt {
  666. color: #fb4343;
  667. padding-right: 10rpx;
  668. }
  669. }
  670. .cell-tit {
  671. width: 465rpx;
  672. display: block;
  673. float: left;
  674. font-size: $font-size-28;
  675. color: #666666;
  676. margin-right: 10rpx;
  677. }
  678. .cell-tip {
  679. font-size: $font-size-28;
  680. color: $text-color;
  681. }
  682. }
  683. .list-cell.last {
  684. border-bottom: none;
  685. }
  686. .uni-badge--small {
  687. -webkit-transform: scale(0.8);
  688. -ms-transform: scale(0.8);
  689. transform: scale(0.8);
  690. -webkit-transform-origin: center center;
  691. -ms-transform-origin: center center;
  692. transform-origin: center center;
  693. }
  694. .uni-badge {
  695. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  696. -webkit-box-sizing: border-box;
  697. box-sizing: border-box;
  698. font-size: 12px;
  699. line-height: 1;
  700. display: inline-block;
  701. padding: 3px 6px;
  702. color: #333;
  703. border-radius: 100px;
  704. background-color: #f1f1f1;
  705. }
  706. .uni-badge-error {
  707. color: #fff;
  708. background-color: #dd524d;
  709. }
  710. </style>