user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  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. }
  376. .header {
  377. width: 100%;
  378. position: relative;
  379. background-size: cover;
  380. }
  381. .header-main {
  382. width: 702rpx;
  383. height: 130rpx;
  384. padding: 12rpx 24rpx;
  385. display: flex;
  386. .header-text {
  387. flex: 8;
  388. display: flex;
  389. flex-direction: column;
  390. .user-item {
  391. flex: 1;
  392. height: 64rpx;
  393. line-height: 64rpx;
  394. .u-tips {
  395. display: inline-block;
  396. float: left;
  397. width: 98rpx;
  398. height: 30rpx;
  399. border: 1px solid #ffffff;
  400. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  401. border-radius: 16rpx;
  402. line-height: 30rpx;
  403. font-size: $font-size-20;
  404. text-align: center;
  405. color: #ffffff;
  406. margin-left: 10rpx;
  407. }
  408. .u-viptips {
  409. display: inline-block;
  410. float: left;
  411. width: 98rpx;
  412. height: 30rpx;
  413. border: 1px solid #ffe600;
  414. background: linear-gradient(128deg, rgba(242, 143, 49, 1) 0%, rgba(225, 86, 22, 1) 100%);
  415. border-radius: 16rpx;
  416. line-height: 30rpx;
  417. font-size: $font-size-20;
  418. text-align: center;
  419. color: #ffe600;
  420. margin-left: 10rpx;
  421. margin-top: 17rpx;
  422. }
  423. .u-h1 {
  424. float: left;
  425. font-size: $font-size-36;
  426. color: #ffffff;
  427. text-align: left;
  428. -o-text-overflow: ellipsis;
  429. text-overflow: ellipsis;
  430. display: -webkit-box;
  431. word-break: break-all;
  432. -webkit-box-orient: vertical;
  433. -webkit-line-clamp: 1;
  434. overflow: hidden;
  435. }
  436. .u-p {
  437. font-size: $font-size-24;
  438. line-height: 64rpx;
  439. color: #ffffff;
  440. text-align: left;
  441. }
  442. }
  443. }
  444. .header-icon {
  445. flex: 2;
  446. margin-right: 20rpx;
  447. image {
  448. float: right;
  449. width: 128rpx;
  450. height: 128rpx;
  451. border-radius: 100%;
  452. border: 2rpx solid #ffffff;
  453. }
  454. }
  455. }
  456. .header-main-none {
  457. width: 702rpx;
  458. height: 152rpx;
  459. padding: 0 24rpx;
  460. display: flex;
  461. .header-text {
  462. flex: 8;
  463. display: flex;
  464. flex-direction: column;
  465. .user-item {
  466. flex: 1;
  467. height: 50rpx;
  468. line-height: 50rpx;
  469. .line {
  470. margin: 0 10rpx;
  471. }
  472. .u-h1 {
  473. float: left;
  474. font-size: $font-size-36;
  475. color: #ffffff;
  476. text-align: left;
  477. -o-text-overflow: ellipsis;
  478. text-overflow: ellipsis;
  479. display: -webkit-box;
  480. word-break: break-all;
  481. -webkit-box-orient: vertical;
  482. -webkit-line-clamp: 1;
  483. overflow: hidden;
  484. }
  485. .u-p {
  486. font-size: $font-size-24;
  487. line-height: 50rpx;
  488. color: #efefef;
  489. text-align: left;
  490. }
  491. .u-btn {
  492. width: 160rpx;
  493. height: 40rpx;
  494. background: rgba(255, 255, 255, 0.5);
  495. border-radius: 5rpx;
  496. line-height: 40rpx;
  497. text-align: center;
  498. font-size: $font-size-24;
  499. color: #ffffff;
  500. display: block;
  501. margin-top: 5rpx;
  502. padding-left: 6rpx;
  503. .icon-xiangyouhuabeifen {
  504. font-size: $font-size-24;
  505. }
  506. }
  507. }
  508. }
  509. .header-icon {
  510. flex: 2;
  511. display: flex;
  512. margin-right: 20rpx;
  513. align-items: center;
  514. justify-content: center;
  515. image {
  516. float: right;
  517. width: 128rpx;
  518. height: 128rpx;
  519. border-radius: 100%;
  520. border: 2rpx solid #ffffff;
  521. }
  522. }
  523. }
  524. .user-order {
  525. width: 654rpx;
  526. height: auto;
  527. padding: 0 24rpx;
  528. background-color: $bg-color;
  529. margin-bottom: 24rpx;
  530. position: absolute;
  531. bottom: -170rpx;
  532. left: 24rpx;
  533. border-radius: 20rpx;
  534. }
  535. .tab-title {
  536. font-size: $font-size-28;
  537. line-height: 80rpx;
  538. color: #333333;
  539. text-align: left;
  540. border-bottom: 1px solid #f8f8f8;
  541. position: relative;
  542. .cell-tit {
  543. font-size: $font-size-28;
  544. color: $text-color;
  545. }
  546. .cell-more {
  547. float: right;
  548. line-height: 80rpx;
  549. font-size: $font-size-24;
  550. color: #666666;
  551. padding-right: 30rpx;
  552. }
  553. .iconfont {
  554. width: 30rpx;
  555. height: 80rpx;
  556. line-height: 80rpx;
  557. text-align: center;
  558. position: absolute;
  559. right: 0;
  560. top: 0;
  561. display: block;
  562. font-size: $font-size-28;
  563. }
  564. }
  565. .order-section {
  566. display: flex;
  567. justify-content: space-around;
  568. align-items: center;
  569. flex-wrap: wrap;
  570. height: 99rpx;
  571. padding: 24rpx 0;
  572. }
  573. .order-item {
  574. flex: 1;
  575. display: flex;
  576. flex-direction: column;
  577. align-items: center;
  578. position: relative;
  579. &:last-child {
  580. margin-right: 0;
  581. }
  582. .order-icon {
  583. width: 52rpx;
  584. height: 52rpx;
  585. position: relative;
  586. image {
  587. width: 52rpx;
  588. height: 52rpx;
  589. }
  590. .icon-num {
  591. position: absolute;
  592. right: -24rpx;
  593. top: -9rpx;
  594. }
  595. .icon-num.goleft {
  596. right: -12rpx;
  597. }
  598. }
  599. .order-t {
  600. line-height: 50rpx;
  601. font-size: $font-size-24;
  602. color: $text-color;
  603. }
  604. }
  605. .foot-list {
  606. width: 702rpx;
  607. padding: 0 24rpx;
  608. padding-top: 168rpx;
  609. }
  610. .list-cell-image {
  611. width: 100%;
  612. height: 168rpx;
  613. background: url(https://static.caimei365.com/app/meibohui/app/activity-small-banner@2x.png);
  614. background-size: cover;
  615. box-sizing: border-box;
  616. margin-bottom: 24rpx;
  617. .text {
  618. width: 100%;
  619. height: 100%;
  620. box-sizing: border-box;
  621. padding: 38rpx 56rpx;
  622. .h1 {
  623. line-height: 50rpx;
  624. font-size: $font-size-36;
  625. color: #ffffff;
  626. }
  627. .p {
  628. line-height: 34rpx;
  629. font-size: $font-size-30;
  630. color: #ffffff;
  631. }
  632. }
  633. }
  634. .list-cell-item {
  635. width: 654rpx;
  636. height: auto;
  637. margin-bottom: 24rpx;
  638. padding: 0 24rpx;
  639. background: $bg-color;
  640. border-radius: 20rpx;
  641. }
  642. .list-cell {
  643. width: 100%;
  644. line-height: 100rpx;
  645. position: relative;
  646. background: $bg-color;
  647. border-bottom: 1px solid #ebebeb;
  648. height: 100rpx;
  649. &:last-child {
  650. border-bottom: none;
  651. }
  652. &.cell-hover {
  653. background: #fafafa;
  654. }
  655. .cell-icon {
  656. width: 60rpx;
  657. height: 100rpx;
  658. text-align: center;
  659. box-sizing: border-box;
  660. padding: 32rpx 12rpx;
  661. float: left;
  662. .cell-icon-image {
  663. width: 36rpx;
  664. height: 36rpx;
  665. display: block;
  666. }
  667. }
  668. .cell-more {
  669. width: 60rpx;
  670. height: 100rpx;
  671. line-height: 100rpx;
  672. text-align: right;
  673. position: absolute;
  674. right: 0;
  675. top: 0;
  676. font-size: $font-size-28;
  677. color: #666666;
  678. .txt {
  679. color: #fb4343;
  680. padding-right: 10rpx;
  681. }
  682. }
  683. .cell-tit {
  684. width: 465rpx;
  685. display: block;
  686. float: left;
  687. font-size: $font-size-28;
  688. color: #666666;
  689. margin-right: 10rpx;
  690. }
  691. .cell-tip {
  692. font-size: $font-size-28;
  693. color: $text-color;
  694. }
  695. }
  696. .list-cell.last {
  697. border-bottom: none;
  698. }
  699. .uni-badge--small {
  700. -webkit-transform: scale(0.8);
  701. -ms-transform: scale(0.8);
  702. transform: scale(0.8);
  703. -webkit-transform-origin: center center;
  704. -ms-transform-origin: center center;
  705. transform-origin: center center;
  706. }
  707. .uni-badge {
  708. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  709. -webkit-box-sizing: border-box;
  710. box-sizing: border-box;
  711. font-size: 12px;
  712. line-height: 1;
  713. display: inline-block;
  714. padding: 3px 6px;
  715. color: #333;
  716. border-radius: 100px;
  717. background-color: #f1f1f1;
  718. }
  719. .uni-badge-error {
  720. color: #fff;
  721. background-color: #dd524d;
  722. }
  723. </style>