user.vue 18 KB

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