user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  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/visits.png'
  248. },
  249. {
  250. name: '我的名片',
  251. path: '/pages/seller/remarks/business-card',
  252. icon: 'https://static.caimei365.com/app/img/icon/my-card.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. uni.setStorageSync('spUserId', response.data.spUserId)
  281. this.getUserSellerHome()
  282. this.getOrderCount()
  283. } else {
  284. this.isLogin = false
  285. this.logout()
  286. uni.setStorageSync('unionId', response.data.unionId)
  287. this.$store.commit('updateStatus', response.data)
  288. this.$api.navigateTo('/pages/seller/login/login')
  289. }
  290. })
  291. },
  292. getUserSellerHome() {
  293. this.$api.getStorage().then(resolve => {
  294. this.userId = resolve.userId ? resolve.userId : 0
  295. this.SellerService.GetSellerHome({ userId: this.userId })
  296. .then(response => {
  297. let sellerData = response.data
  298. this.name = sellerData.linkMan ? sellerData.linkMan : '' //协销名称
  299. this.headpic = sellerData.logo //会所头像
  300. this.skeletonShow = false
  301. })
  302. .catch(error => {
  303. this.$util.msg(error.msg, 2000)
  304. })
  305. })
  306. },
  307. getOrderCount() {
  308. this.SellerService.GetOrderCount({ serviceProviderId: this.serviceProviderId }).then(response => {
  309. let data = response.data
  310. this.beforeConfirmCount = this.showBadge(data.confirmedCount) //待确认
  311. this.beforePayCount = this.showBadge(data.paymentCount) //待付款
  312. this.beforeShipCount = this.showBadge(data.waitShipmentsCount) //待发货
  313. this.shippedCount = this.showBadge(data.shipmentsCount) //已发货
  314. this.refundsCount = this.showBadge(data.salesReturnCount) //退货/款
  315. this.orderNum = this.showBadge(data.uncheckedOrderCount) //未查看订单数量
  316. })
  317. },
  318. TestZHIboFn() {
  319. //测试跳转直播小程序
  320. // uni.navigateToMiniProgram({
  321. // appId: 'wx92d650b253f8f2e3',
  322. // path: '/pages/index/index',
  323. // extraData: {
  324. // 'data1': 'test'
  325. // },
  326. // envVersion: 'develop',
  327. // success(res) {
  328. // // 打开成功
  329. // console.log(res)
  330. // }
  331. // })
  332. },
  333. navigator(url) {
  334. this.$api.navigateTo(url)
  335. },
  336. showBadge(n) {
  337. let num = ''
  338. if (n > 100) {
  339. num = 99
  340. } else {
  341. num = n
  342. }
  343. return num
  344. },
  345. onPullDownRefresh() {
  346. //下拉刷新
  347. this.initData()
  348. uni.stopPullDownRefresh()
  349. }
  350. }
  351. }
  352. </script>
  353. <style lang="scss">
  354. @import '@/uni.scss';
  355. page {
  356. background-color: #f7f7f7;
  357. }
  358. .user {
  359. width: 100%;
  360. height: 100%;
  361. position: relative;
  362. background: rgba(247, 247, 247, 1);
  363. }
  364. .header {
  365. width: 100%;
  366. position: relative;
  367. background-size: cover;
  368. }
  369. .header-main {
  370. width: 702rpx;
  371. height: 130rpx;
  372. padding: 12rpx 24rpx;
  373. display: flex;
  374. .header-text {
  375. flex: 8;
  376. display: flex;
  377. flex-direction: column;
  378. .user-item {
  379. flex: 1;
  380. height: 64rpx;
  381. line-height: 64rpx;
  382. .u-tips {
  383. display: inline-block;
  384. float: left;
  385. width: 98rpx;
  386. height: 30rpx;
  387. border: 1px solid #ffffff;
  388. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  389. border-radius: 16rpx;
  390. line-height: 30rpx;
  391. font-size: $font-size-20;
  392. text-align: center;
  393. color: #ffffff;
  394. margin-left: 10rpx;
  395. }
  396. .u-viptips {
  397. display: inline-block;
  398. float: left;
  399. width: 98rpx;
  400. height: 30rpx;
  401. border: 1px solid #ffe600;
  402. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  403. border-radius: 16rpx;
  404. line-height: 30rpx;
  405. font-size: $font-size-20;
  406. text-align: center;
  407. color: #ffe600;
  408. margin-left: 10rpx;
  409. margin-top: 17rpx;
  410. }
  411. .u-h1 {
  412. float: left;
  413. font-size: $font-size-36;
  414. color: #ffffff;
  415. text-align: left;
  416. -o-text-overflow: ellipsis;
  417. text-overflow: ellipsis;
  418. display: -webkit-box;
  419. word-break: break-all;
  420. -webkit-box-orient: vertical;
  421. -webkit-line-clamp: 1;
  422. overflow: hidden;
  423. }
  424. .u-p {
  425. font-size: $font-size-24;
  426. line-height: 64rpx;
  427. color: #ffffff;
  428. text-align: left;
  429. }
  430. }
  431. }
  432. .header-icon {
  433. flex: 2;
  434. margin-right: 20rpx;
  435. image {
  436. float: right;
  437. width: 128rpx;
  438. height: 128rpx;
  439. border-radius: 100%;
  440. border: 2rpx solid #ffffff;
  441. }
  442. }
  443. }
  444. .header-main-none {
  445. width: 702rpx;
  446. height: 152rpx;
  447. padding: 0 24rpx;
  448. display: flex;
  449. .header-text {
  450. flex: 8;
  451. display: flex;
  452. flex-direction: column;
  453. .user-item {
  454. flex: 1;
  455. height: 50rpx;
  456. line-height: 50rpx;
  457. .line {
  458. margin: 0 10rpx;
  459. }
  460. .u-h1 {
  461. float: left;
  462. font-size: $font-size-36;
  463. color: #ffffff;
  464. text-align: left;
  465. -o-text-overflow: ellipsis;
  466. text-overflow: ellipsis;
  467. display: -webkit-box;
  468. word-break: break-all;
  469. -webkit-box-orient: vertical;
  470. -webkit-line-clamp: 1;
  471. overflow: hidden;
  472. }
  473. .u-p {
  474. font-size: $font-size-24;
  475. line-height: 50rpx;
  476. color: #efefef;
  477. text-align: left;
  478. }
  479. .u-btn {
  480. width: 160rpx;
  481. height: 40rpx;
  482. background: rgba(255, 255, 255, 0.5);
  483. border-radius: 5rpx;
  484. line-height: 40rpx;
  485. text-align: center;
  486. font-size: $font-size-24;
  487. color: #ffffff;
  488. display: block;
  489. margin-top: 5rpx;
  490. padding-left: 6rpx;
  491. .icon-xiangyouhuabeifen {
  492. font-size: $font-size-24;
  493. }
  494. }
  495. }
  496. }
  497. .header-icon {
  498. flex: 2;
  499. display: flex;
  500. margin-right: 20rpx;
  501. align-items: center;
  502. justify-content: center;
  503. image {
  504. float: right;
  505. width: 128rpx;
  506. height: 128rpx;
  507. border-radius: 100%;
  508. border: 2rpx solid #ffffff;
  509. }
  510. }
  511. }
  512. .user-order {
  513. width: 654rpx;
  514. height: auto;
  515. padding: 0 24rpx;
  516. background-color: $bg-color;
  517. margin-bottom: 24rpx;
  518. position: absolute;
  519. bottom: -170rpx;
  520. left: 24rpx;
  521. border-radius: 20rpx;
  522. }
  523. .tab-title {
  524. font-size: $font-size-28;
  525. line-height: 80rpx;
  526. color: #333333;
  527. text-align: left;
  528. border-bottom: 1px solid #f8f8f8;
  529. position: relative;
  530. .cell-tit {
  531. font-size: $font-size-28;
  532. color: $text-color;
  533. }
  534. .cell-more {
  535. float: right;
  536. line-height: 80rpx;
  537. font-size: $font-size-24;
  538. color: #666666;
  539. padding-right: 30rpx;
  540. }
  541. .iconfont {
  542. width: 30rpx;
  543. height: 80rpx;
  544. line-height: 80rpx;
  545. text-align: center;
  546. position: absolute;
  547. right: 0;
  548. top: 0;
  549. display: block;
  550. font-size: $font-size-28;
  551. }
  552. }
  553. .order-section {
  554. display: flex;
  555. justify-content: space-around;
  556. align-items: center;
  557. flex-wrap: wrap;
  558. height: 99rpx;
  559. padding: 24rpx 0;
  560. }
  561. .order-item {
  562. flex: 1;
  563. display: flex;
  564. flex-direction: column;
  565. align-items: center;
  566. position: relative;
  567. &:last-child {
  568. margin-right: 0;
  569. }
  570. .order-icon {
  571. width: 52rpx;
  572. height: 52rpx;
  573. position: relative;
  574. image {
  575. width: 52rpx;
  576. height: 52rpx;
  577. }
  578. .icon-num {
  579. position: absolute;
  580. right: -24rpx;
  581. top: -9rpx;
  582. }
  583. .icon-num.goleft {
  584. right: -12rpx;
  585. }
  586. }
  587. .order-t {
  588. line-height: 50rpx;
  589. font-size: $font-size-24;
  590. color: $text-color;
  591. }
  592. }
  593. .foot-list {
  594. width: 702rpx;
  595. padding: 0 24rpx;
  596. padding-top: 168rpx;
  597. }
  598. .list-cell-image {
  599. width: 100%;
  600. height: 168rpx;
  601. background: url(https://static.caimei365.com/app/meibohui/app/activity-small-banner@2x.png);
  602. background-size: cover;
  603. box-sizing: border-box;
  604. margin-bottom: 24rpx;
  605. .text {
  606. width: 100%;
  607. height: 100%;
  608. box-sizing: border-box;
  609. padding: 38rpx 56rpx;
  610. .h1 {
  611. line-height: 50rpx;
  612. font-size: $font-size-36;
  613. color: #ffffff;
  614. }
  615. .p {
  616. line-height: 34rpx;
  617. font-size: $font-size-30;
  618. color: #ffffff;
  619. }
  620. }
  621. }
  622. .list-cell-item {
  623. width: 654rpx;
  624. height: auto;
  625. margin-bottom: 24rpx;
  626. padding: 0 24rpx;
  627. background: $bg-color;
  628. border-radius: 20rpx;
  629. }
  630. .list-cell {
  631. width: 100%;
  632. line-height: 100rpx;
  633. position: relative;
  634. background: $bg-color;
  635. border-bottom: 1px solid #ebebeb;
  636. height: 100rpx;
  637. &:last-child {
  638. border-bottom: none;
  639. }
  640. &.cell-hover {
  641. background: #fafafa;
  642. }
  643. .cell-icon {
  644. width: 60rpx;
  645. height: 100rpx;
  646. text-align: center;
  647. box-sizing: border-box;
  648. padding: 32rpx 12rpx;
  649. float: left;
  650. .cell-icon-image {
  651. width: 36rpx;
  652. height: 36rpx;
  653. display: block;
  654. }
  655. }
  656. .cell-more {
  657. width: 60rpx;
  658. height: 100rpx;
  659. line-height: 100rpx;
  660. text-align: right;
  661. position: absolute;
  662. right: 0;
  663. top: 0;
  664. font-size: $font-size-28;
  665. color: #666666;
  666. .txt {
  667. color: #fb4343;
  668. padding-right: 10rpx;
  669. }
  670. }
  671. .cell-tit {
  672. width: 465rpx;
  673. display: block;
  674. float: left;
  675. font-size: $font-size-28;
  676. color: #666666;
  677. margin-right: 10rpx;
  678. }
  679. .cell-tip {
  680. font-size: $font-size-28;
  681. color: $text-color;
  682. }
  683. }
  684. .list-cell.last {
  685. border-bottom: none;
  686. }
  687. .uni-badge--small {
  688. -webkit-transform: scale(0.8);
  689. -ms-transform: scale(0.8);
  690. transform: scale(0.8);
  691. -webkit-transform-origin: center center;
  692. -ms-transform-origin: center center;
  693. transform-origin: center center;
  694. }
  695. .uni-badge {
  696. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  697. -webkit-box-sizing: border-box;
  698. box-sizing: border-box;
  699. font-size: 12px;
  700. line-height: 1;
  701. display: inline-block;
  702. padding: 3px 6px;
  703. color: #333;
  704. border-radius: 100px;
  705. background-color: #f1f1f1;
  706. }
  707. .uni-badge-error {
  708. color: #fff;
  709. background-color: #dd524d;
  710. }
  711. </style>