user.vue 19 KB

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