user.vue 18 KB

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