user.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <template>
  2. <view class="container user clearfix">
  3. <cm-custom :navbar-data='nvabarData'></cm-custom>
  4. <view class="user-section">
  5. <view class="header" :style="{height:(CustomBar+90)-StatusBar+'px',paddingTop:CustomBar+'px',background:'url('+ bgImgUrl +')',backgroundSize:'cover'}">
  6. <view class="header-main" v-if="hasLogin">
  7. <view class="header-text">
  8. <view class="user-item"><text class="u-h1">{{name}}</text>
  9. <text class="u-viptips" v-if="userIdentity == 2">{{userType}}</text>
  10. <text class="u-tips" v-if="userIdentity == 4">{{userType}}</text>
  11. </view>
  12. <view class="user-item"><text class="u-p">账户余额:{{userMoney}}元</text></view>
  13. </view>
  14. <view class="header-icon"><image :src="headpic == null? '../../../static/temp/icon-club@3x.png' : headpic" mode=""></image></view>
  15. </view>
  16. <view class="header-main-none" v-else>
  17. <view class="header-text">
  18. <view class="user-item">
  19. <text class="u-h1" @click="navigator('/pages/login/login')">账号登录</text><text class="u-h1 line">|</text>
  20. <text class="u-h1" @click="navigatorNex('/pages/login/register','2')">立即注册</text>
  21. </view>
  22. <view class="user-item">
  23. <text class="u-p" @click="navigator('/pages/login/login')">登录商城了解更多产品信息吧!</text>
  24. </view>
  25. <view class="user-item" @click="navigatorNex('/pages/login/logincode','3')">
  26. <view class="u-btn"><text>邀请码登录</text><text class="iconfont icon-xiangyouhuabeifen"></text></view>
  27. </view>
  28. </view>
  29. <view class="header-icon" @click="navigator('/pages/login/login')">
  30. <image src="../../../static/temp/icon-club@3x.png" mode=""></image>
  31. </view>
  32. </view>
  33. <!-- 订单 -->
  34. <view class="user-order">
  35. <view class="tab-title" @click="navigator('/pages/user/order/order-list?state=0')">
  36. <text class="cell-tit">我的订单</text>
  37. <text class="cell-more">全部订单</text>
  38. <text class="iconfont icon-xiayibu"></text>
  39. </view>
  40. <view class="order-section">
  41. <view class="order-item" @click="navigator('/pages/user/order/order-list?state=1')" hover-class="common-hover" :hover-stay-time="50">
  42. <view class="order-icon">
  43. <image src="../../../static/temp/order5@3x.png" mode=""></image>
  44. <text v-if="confirmedCount>0"
  45. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  46. :class="[confirmedCount < 10 ? 'goleft':'']">
  47. {{confirmedCount == 99? '99+' : confirmedCount}}
  48. </text>
  49. </view>
  50. <text class="order-t">待确认</text>
  51. </view>
  52. <view class="order-item" @click="navigator('/pages/user/order/order-list?state=2')" hover-class="common-hover" :hover-stay-time="50">
  53. <view class="order-icon">
  54. <image src="../../../static/temp/order1@3x.png" mode=""></image>
  55. <text v-if="paymentCount >0"
  56. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num "
  57. :class="[paymentCount < 10 ? 'goleft':'']">
  58. {{paymentCount == 99? '99+' : paymentCount}}
  59. </text>
  60. </view>
  61. <text class="order-t">待付款</text>
  62. </view>
  63. <view class="order-item" @click="navigator('/pages/user/order/order-list?state=3')" hover-class="common-hover" :hover-stay-time="50">
  64. <view class="order-icon">
  65. <image src="../../../static/temp/order2@3x.png" mode=""></image>
  66. <text v-if="waitShipmentsCount >0"
  67. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  68. :class="[waitShipmentsCount < 10 ? 'goleft':'']">
  69. {{waitShipmentsCount == 99? '99+' : waitShipmentsCount}}
  70. </text>
  71. </view>
  72. <text class="order-t">待发货</text>
  73. </view>
  74. <view class="order-item" @click="navigator('/pages/user/order/order-list?state=4')" hover-class="common-hover" :hover-stay-time="50">
  75. <view class="order-icon">
  76. <image src="../../../static/temp/order3@3x.png" mode=""></image>
  77. <text v-if="shipmentsCount>0"
  78. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  79. :class="[shipmentsCount < 10 ? 'goleft':'']">
  80. {{shipmentsCount == 99? '99+' : shipmentsCount}}
  81. </text>
  82. </view>
  83. <text class="order-t">已发货</text>
  84. </view>
  85. <view class="order-item" @click="navigator('/pages/user/order/order-list?state=5')" hover-class="common-hover" :hover-stay-time="50">
  86. <view class="order-icon">
  87. <image src="../../../static/temp/order4@3x.png" mode=""></image>
  88. <text v-if="salesReturnCount >0"
  89. class="uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  90. :class="[salesReturnCount < 10 ? 'goleft':'']">
  91. {{salesReturnCount == 99? '99+' : salesReturnCount}}
  92. </text>
  93. </view>
  94. <text class="order-t">退货/款</text>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 底部跳转 -->
  100. <view class="foot-list">
  101. <view class="list-cell-item" v-show="hasLogin">
  102. <view class="list-cell" v-show="userIdentity == 4" @click="navigator(`/pages/login/apply?clubStatus=${clubStatus}`)" hover-class="cell-hover" :hover-stay-time="50">
  103. <text class="cell-tit">升级会员机构</text>
  104. <text class="cell-more">
  105. <text class="txt">{{clubStatusText(clubStatus)}}</text>
  106. <text class="iconfont icon-xiayibu"></text>
  107. </text>
  108. </view>
  109. <view class="list-cell" @click="navigator('/pages/user/regularPurchase/regularPurchase')" hover-class="cell-hover" :hover-stay-time="50">
  110. <text class="cell-tit">再次购买</text>
  111. <text class="cell-more iconfont icon-xiayibu"></text>
  112. </view>
  113. </view>
  114. <view class="list-cell-item">
  115. <view class="list-cell" v-for="(item, index) in firstList" :key="index" @click="navigator(item.path)" hover-class="cell-hover" :hover-stay-time="50">
  116. <text class="cell-tit">{{item.name}}</text>
  117. <text class="cell-more iconfont icon-xiayibu"></text>
  118. </view>
  119. </view>
  120. <view class="list-cell-item">
  121. <view class="list-cell" hover-class="cell-hover" :hover-stay-time="50">
  122. <text class="cell-tit">联系我们</text>
  123. <text class="cell-more" @click="toPhone">{{contactNumber}}</text>
  124. </view>
  125. <view class="list-cell last" @click="this.$api.navigateTo('/pages/user/about/about')" hover-class="cell-hover" :hover-stay-time="50">
  126. <text class="cell-tit">关于我们</text>
  127. <text class="cell-more iconfont icon-xiayibu"></text>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. <upgrade-alert v-if="isUpgradeAlert" :clubStatus="clubStatus" @unBindUpgrade="hanldUnBindUpgrade" @GoApply="hanldGoApply"></upgrade-alert>
  133. </view>
  134. </template>
  135. <script>
  136. import uniBadge from '@/components/uni-badge/uni-badge.vue'
  137. import upgradeAlert from '@/components/cm-module/modelAlert/upgradeAlert.vue'
  138. import authorize from '@/common/config/authorize.js'
  139. import { mapState,mapMutations } from 'vuex'
  140. import { personalInfo,cancelPrompt } from "@/api/use.js"
  141. import { queryAfterSale } from "@/api/other.js"
  142. export default{
  143. components: {
  144. uniBadge,
  145. upgradeAlert
  146. },
  147. data() {
  148. return{
  149. nvabarData: {//顶部自定义导航
  150. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
  151. showSearch: 0,
  152. title: '我的', // 导航栏 中间的标题
  153. haveBack:false,
  154. textLeft:this.$store.state.isIphone,
  155. textColor:'#FFFFFF',
  156. bgColor:''
  157. },
  158. CustomBar:this.CustomBar,// 顶部导航栏高度
  159. StatusBar: this.StatusBar,
  160. isUpgradeAlert:false,
  161. bgImgUrl:'https://img.caimei365.com/group1/M00/03/94/Cmis216Sk_SAPDwvAAcTspdl8h0610.png',
  162. name:'',
  163. userType:"",
  164. headpic:'',
  165. userMoney:'0.00',
  166. contactNumber:'',
  167. openid:'',
  168. aboutHtml:'',
  169. telPhone:'',
  170. bindMobile:'',
  171. clubStatus:'', //机构升级会员机构审核状态1:待审核 91:审核失败
  172. userIdentity:'', //机构等级
  173. confirmedCount:0,//待确认
  174. paymentCount:0, //待付款角标
  175. waitShipmentsCount:0, //待收货角标
  176. shipmentsCount:0, //已发货角标
  177. salesReturnCount:'',//退货/款角标
  178. firstList:[
  179. {name:'运营人员管理',path:'/pages/user/operator/list'},
  180. {name:'账户余额明细',path:'/pages/user/account/account'},
  181. {name:'收货地址管理',path:'/pages/user/address/address'},
  182. {name:'机构资料',path:'/pages/login/information'},
  183. {name:'账户设置',path:'/pages/user/setting/setting'},
  184. ]
  185. }
  186. },
  187. onLoad(){
  188. },
  189. computed: {
  190. ...mapState(['hasLogin','userInfo'])
  191. },
  192. methods:{
  193. getUserInfo(){
  194. let self = this;
  195. personalInfo({userID:this.userID}).then(response =>{
  196. this.$store.commit('updateAllNum',response.data.count)
  197. let data =response.data
  198. let $userData = data.user
  199. let $clubData = data.club
  200. if($userData.ableUserMoney == 0 || $userData.ableUserMoney ==null){
  201. this.userMoney = '0.00';
  202. }else{
  203. let i = $userData.ableUserMoney.toString().lastIndexOf('.');
  204. let money;
  205. if(i==-1){
  206. money = this.$api.FormatMoney($userData.ableUserMoney); //会所剩余余额
  207. this.userMoney = money +'.00'
  208. }else{
  209. money = this.$api.FormatMoney($userData.ableUserMoney); //会所剩余余额
  210. this.userMoney = money
  211. }
  212. }
  213. this.userIdentity = $userData.userIdentity //机构等级
  214. if(this.userIdentity == 2){
  215. this.name = $clubData.name //会员机构名称
  216. this.userType = '会员机构'
  217. }else{
  218. this.name = $userData.userName //普通机构名称
  219. this.userType = '普通机构'
  220. }
  221. this.headpic = $userData.image //会所头像
  222. this.bindMobile = $userData.bindMobile//登录手机号
  223. this.clubStatus = $userData.clubStatus //机构审核状态
  224. this.contactNumber = data.organize.contactNumber //联系电话
  225. this.confirmedCount = this.showBadge(data.confirmedCount)//待确认
  226. this.paymentCount = this.showBadge(data.paymentCount)//待付款
  227. this.waitShipmentsCount = this.showBadge(data.waitShipmentsCount)//待收货
  228. this.shipmentsCount = this.showBadge(data.shipmentsCount)//已发货
  229. this.salesReturnCount = this.showBadge(data.salesReturnCount)//退货/款
  230. let clubInfo ={name:this.name,image:this.headpic,clubID:$clubData.clubID}
  231. if($userData.tipStatus == '0'){
  232. this.isUpgradeAlert = true
  233. }
  234. uni.setStorage({key: 'clubInfo',data: clubInfo})
  235. }).catch(error =>{
  236. this.$util.msg(error.msg,2000)
  237. })
  238. },
  239. getPhone(){
  240. queryAfterSale().then(response =>{
  241. this.contactNumber = response.data.contactNumber
  242. }).catch(error =>{
  243. this.$util.msg(error.msg,2000);
  244. })
  245. },
  246. toPhone(){
  247. uni.makePhoneCall({
  248. phoneNumber:this.contactNumber //仅为示例
  249. });
  250. },
  251. hanldUnBindUpgrade(){//普通用户不升级会员机构
  252. cancelPrompt({ userId:this.userID}).then(response =>{
  253. this.isUpgradeAlert = false
  254. })
  255. },
  256. hanldGoApply(){
  257. cancelPrompt({ userId:this.userID}).then(response =>{
  258. this.isUpgradeAlert = false
  259. this.$api.navigateTo(`/pages/login/apply?clubStatus=${this.clubStatus}`);
  260. })
  261. },
  262. navigator(url){
  263. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  264. if(wxResponse == 1){
  265. if(this.hasLogin){
  266. this.$api.navigateTo(url)
  267. }else{
  268. this.$api.navigateTo('/pages/login/login?type=0')
  269. }
  270. }else{
  271. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  272. }
  273. })
  274. },
  275. navigatorNex(url,type){
  276. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  277. if(wxResponse == 1){
  278. if(!this.hasLogin){
  279. this.$api.navigateTo(url)
  280. }
  281. }else{
  282. this.$api.navigateTo(`/pages/authorization/authorization?type=${type}`)
  283. }
  284. })
  285. },
  286. showBadge(n){
  287. let num ='';
  288. if(n>100){num = 99}else{num = n;}
  289. return num;
  290. },
  291. clubStatusText(state){
  292. let stateText;
  293. switch(state){
  294. case 90:
  295. stateText = ''
  296. break;
  297. case 1:
  298. stateText = '待审核'
  299. break;
  300. case 92:
  301. stateText = '审核不通过'
  302. break;
  303. }
  304. return stateText
  305. }
  306. },
  307. onPageScroll(e){//实时获取到滚动的值
  308. if(e.scrollTop>20){
  309. this.nvabarData.bgColor = '#FFFFFF'
  310. this.nvabarData.textColor = '#333333'
  311. }else{
  312. this.nvabarData.bgColor = ''
  313. this.nvabarData.textColor = '#FFFFFF'
  314. }
  315. },
  316. onPullDownRefresh() {//下拉刷新
  317. if(this.hasLogin){
  318. this.getUserInfo()
  319. uni.stopPullDownRefresh()
  320. }else{
  321. uni.stopPullDownRefresh()
  322. }
  323. },
  324. onShow(){
  325. if(this.hasLogin){
  326. this.$api.getStorage().then((resolve) =>{
  327. this.userID = resolve.userID
  328. this.getUserInfo()
  329. })
  330. }else{
  331. this.getPhone()
  332. this.$store.commit('updateAllNum',0)
  333. }
  334. }
  335. }
  336. </script>
  337. <style lang="scss">
  338. @import "@/uni.scss";
  339. page{
  340. background-color: #F7F7F7;
  341. }
  342. .user{
  343. width: 100%;
  344. height: 100%;
  345. position:relative;
  346. background: rgba(247, 247, 247, 1);
  347. }
  348. .header{
  349. width: 100%;
  350. position: relative;
  351. background-size: cover;
  352. }
  353. .header-main{
  354. width: 702rpx;
  355. height: 130rpx;
  356. padding: 24rpx 24rpx;
  357. display: flex;
  358. .header-text{
  359. flex: 8;
  360. display: flex;
  361. flex-direction: column;
  362. .user-item{
  363. flex: 1;
  364. height: 64rpx;
  365. line-height: 64rpx;
  366. .u-tips{
  367. display: inline-block;
  368. float: left;
  369. width: 98rpx;
  370. height: 30rpx;
  371. border: 1px solid #FFFFFF;
  372. background: linear-gradient(128deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  373. border-radius: 16rpx;
  374. line-height: 30rpx;
  375. font-size: $font-size-20;
  376. text-align: center;
  377. color: #FFFFFF;
  378. margin-left: 10rpx;
  379. margin-top: 17rpx;
  380. }
  381. .u-viptips{
  382. display: inline-block;
  383. float: left;
  384. width: 98rpx;
  385. height: 30rpx;
  386. border: 1px solid #FFE600;
  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: #FFE600;
  393. margin-left: 10rpx;
  394. margin-top: 17rpx;
  395. }
  396. .u-h1{
  397. float: left;
  398. font-size: $font-size-36;
  399. color: #FFFFFF;
  400. text-align: left;
  401. -o-text-overflow: ellipsis;
  402. text-overflow: ellipsis;
  403. display: -webkit-box;
  404. word-break: break-all;
  405. -webkit-box-orient: vertical;
  406. -webkit-line-clamp: 1;
  407. overflow: hidden;
  408. }
  409. .u-p{
  410. font-size: $font-size-24;
  411. line-height: 64rpx;
  412. color: #FFFFFF;
  413. text-align: left;
  414. }
  415. }
  416. }
  417. .header-icon{
  418. flex: 2;
  419. image{
  420. float: right;
  421. width: 128rpx;
  422. height: 128rpx;
  423. border-radius: 100%;
  424. border: 2rpx solid #FFFFFF;
  425. }
  426. }
  427. }
  428. .header-main-none{
  429. width: 702rpx;
  430. height: 152rpx;
  431. padding: 0 24rpx;
  432. display: flex;
  433. .header-text{
  434. flex: 8;
  435. display: flex;
  436. flex-direction: column;
  437. .user-item{
  438. flex: 1;
  439. height: 50rpx;
  440. line-height: 50rpx;
  441. .line{
  442. margin: 0 10rpx;
  443. }
  444. .u-h1{
  445. float: left;
  446. font-size: $font-size-36;
  447. color: #FFFFFF;
  448. text-align: left;
  449. -o-text-overflow: ellipsis;
  450. text-overflow: ellipsis;
  451. display: -webkit-box;
  452. word-break: break-all;
  453. -webkit-box-orient: vertical;
  454. -webkit-line-clamp: 1;
  455. overflow: hidden;
  456. }
  457. .u-p{
  458. font-size: $font-size-24;
  459. line-height: 50rpx;
  460. color: #EFEFEF;
  461. text-align: left;
  462. }
  463. .u-btn{
  464. width: 160rpx;
  465. height: 40rpx;
  466. background: rgba(255,255,255,.8);
  467. border-radius: 8rpx;
  468. line-height: 40rpx;
  469. text-align: center;
  470. font-size: $font-size-24;
  471. color: $color-system;
  472. display: block;
  473. margin-top: 5rpx;
  474. padding-left: 6rpx;
  475. .icon-xiangyouhuabeifen{
  476. font-size: $font-size-24;
  477. }
  478. }
  479. }
  480. }
  481. .header-icon{
  482. flex: 2;
  483. display: flex;
  484. margin-right: 20rpx;
  485. align-items: center;
  486. justify-content: center;
  487. image{
  488. float: right;
  489. width: 128rpx;
  490. height: 128rpx;
  491. border-radius: 100%;
  492. border: 2rpx solid #FFFFFF;
  493. }
  494. }
  495. }
  496. .user-order{
  497. width: 654rpx;
  498. height: auto;
  499. padding: 0 24rpx;
  500. background-color: $bg-color;
  501. margin-bottom: 24rpx;
  502. position: absolute;
  503. bottom: -170rpx;
  504. left: 24rpx;
  505. border-radius: 20rpx;
  506. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  507. }
  508. .tab-title{
  509. font-size: $font-size-28;
  510. line-height: 80rpx;
  511. color: #333333;
  512. text-align:left;
  513. border-bottom: 1px solid #F8F8F8;
  514. position: relative;
  515. .cell-tit{
  516. font-size: $font-size-28;
  517. color: $text-color;
  518. }
  519. .cell-more{
  520. float: right;
  521. line-height: 80rpx;
  522. font-size: $font-size-24;
  523. color: $text-color;
  524. padding-right: 30rpx;
  525. }
  526. .iconfont{
  527. width: 30rpx;
  528. height: 80rpx;
  529. line-height: 80rpx;
  530. text-align: center;
  531. position: absolute;
  532. right: 0;
  533. top: 0;
  534. display: block;
  535. font-size: $font-size-28;
  536. }
  537. }
  538. .order-section{
  539. display: flex;
  540. justify-content: space-around;
  541. align-items: center;
  542. flex-wrap:wrap;
  543. height: 99rpx;
  544. padding: 24rpx 0;
  545. }
  546. .order-item{
  547. flex:1;
  548. display: flex;
  549. flex-direction: column;
  550. align-items: center;
  551. position: relative;
  552. &:last-child{
  553. margin-right: 0;
  554. }
  555. .order-icon{
  556. width: 52rpx;
  557. height: 52rpx;
  558. position: relative;
  559. image{
  560. width: 52rpx;
  561. height: 52rpx;
  562. }
  563. .icon-num{
  564. position: absolute;
  565. right:-24rpx;
  566. top: -9rpx;
  567. }
  568. .icon-num.goleft{
  569. right: -12rpx;
  570. }
  571. }
  572. .order-t{
  573. line-height: 50rpx;
  574. font-size: $font-size-24;
  575. color: $text-color;
  576. }
  577. }
  578. .foot-list{
  579. width: 702rpx;
  580. padding: 0 24rpx;
  581. padding-top: 168rpx;
  582. }
  583. .list-cell-item{
  584. width: 654rpx;
  585. height: auto;
  586. margin-bottom: 24rpx;
  587. padding:0 24rpx;
  588. background: $bg-color;
  589. border-radius: 20rpx;
  590. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  591. }
  592. .list-cell{
  593. display:flex;
  594. width: 100%;
  595. align-items:baseline;
  596. line-height:100rpx;
  597. position:relative;
  598. background: $bg-color;
  599. justify-content: center;
  600. // border-bottom: 1px solid #EBEBEB;
  601. &.cell-hover{
  602. background:#fafafa;
  603. }
  604. .cell-more{
  605. align-self: baseline;
  606. font-size:$font-size-28;
  607. color:$text-color;
  608. margin-left:10rpx;
  609. .txt{
  610. color: #FB4343;
  611. padding-right: 10rpx;
  612. }
  613. }
  614. .cell-tit{
  615. flex: 1;
  616. font-size: $font-size-28;
  617. color: $text-color;
  618. margin-right:10rpx;
  619. }
  620. .cell-tip{
  621. font-size: $font-size-28;
  622. color: $text-color;
  623. }
  624. }
  625. .list-cell.last{
  626. border-bottom: none;
  627. }
  628. .uni-badge--small {
  629. -webkit-transform: scale(.8);
  630. -ms-transform: scale(.8);
  631. transform: scale(.8);
  632. -webkit-transform-origin: center center;
  633. -ms-transform-origin: center center;
  634. transform-origin: center center;
  635. }
  636. .uni-badge {
  637. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  638. -webkit-box-sizing: border-box;
  639. box-sizing: border-box;
  640. font-size: 12px;
  641. line-height: 1;
  642. display: inline-block;
  643. padding: 3px 6px;
  644. color: #333;
  645. border-radius: 100px;
  646. background-color: #f1f1f1;
  647. }
  648. .uni-badge-error {
  649. color: #fff;
  650. background-color: #dd524d;
  651. }
  652. </style>