user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  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')">立即注册</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')">
  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"></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. navigator(url){
  244. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  245. if(wxResponse == 1){
  246. if(this.hasLogin){
  247. this.$api.navigateTo(url)
  248. }else{
  249. this.$api.navigateTo('/pages/login/login?type=0')
  250. }
  251. }else{
  252. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  253. }
  254. })
  255. },
  256. hanldUnBindUpgrade(){//普通用户不升级会员机构
  257. cancelPrompt({ userId:this.userID}).then(response =>{
  258. this.isUpgradeAlert = false
  259. })
  260. },
  261. navigatorNex(url){
  262. authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
  263. if(wxResponse == 1){
  264. if(!this.hasLogin){
  265. this.$api.navigateTo(url)
  266. }
  267. }else{
  268. this.$api.navigateTo('/pages/authorization/authorization?type=1')
  269. }
  270. })
  271. },
  272. showBadge(n){
  273. let num ='';
  274. if(n>100){num = 99}else{num = n;}
  275. return num;
  276. },
  277. clubStatusText(state){
  278. let stateText;
  279. switch(state){
  280. case 90:
  281. stateText = ''
  282. break;
  283. case 1:
  284. stateText = '待审核'
  285. break;
  286. case 92:
  287. stateText = '审核不通过'
  288. break;
  289. }
  290. return stateText
  291. }
  292. },
  293. onPageScroll(e){//实时获取到滚动的值
  294. if(e.scrollTop>20){
  295. this.nvabarData.bgColor = '#FFFFFF'
  296. this.nvabarData.textColor = '#333333'
  297. }else{
  298. this.nvabarData.bgColor = ''
  299. this.nvabarData.textColor = '#FFFFFF'
  300. }
  301. },
  302. onPullDownRefresh() {//下拉刷新
  303. if(this.hasLogin){
  304. this.getUserInfo()
  305. uni.stopPullDownRefresh()
  306. }else{
  307. uni.stopPullDownRefresh()
  308. }
  309. },
  310. onShow(){
  311. if(this.hasLogin){
  312. this.$api.getStorage().then((resolve) =>{
  313. this.userID = resolve.userID
  314. this.getUserInfo()
  315. })
  316. }else{
  317. this.$store.commit('updateAllNum',0)
  318. }
  319. }
  320. }
  321. </script>
  322. <style lang="scss">
  323. @import "@/uni.scss";
  324. page{
  325. background-color: #F7F7F7;
  326. }
  327. .user{
  328. width: 100%;
  329. height: 100%;
  330. position:relative;
  331. background: rgba(247, 247, 247, 1);
  332. }
  333. .header{
  334. width: 100%;
  335. position: relative;
  336. background-size: cover;
  337. }
  338. .header-main{
  339. width: 702rpx;
  340. height: 130rpx;
  341. padding: 24rpx 24rpx;
  342. display: flex;
  343. .header-text{
  344. flex: 8;
  345. display: flex;
  346. flex-direction: column;
  347. .user-item{
  348. flex: 1;
  349. height: 64rpx;
  350. line-height: 64rpx;
  351. .u-tips{
  352. display: inline-block;
  353. float: left;
  354. width: 98rpx;
  355. height: 30rpx;
  356. border: 1px solid #FFFFFF;
  357. background: linear-gradient(128deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  358. border-radius: 16rpx;
  359. line-height: 30rpx;
  360. font-size: $font-size-20;
  361. text-align: center;
  362. color: #FFFFFF;
  363. margin-left: 10rpx;
  364. margin-top: 17rpx;
  365. }
  366. .u-viptips{
  367. display: inline-block;
  368. float: left;
  369. width: 98rpx;
  370. height: 30rpx;
  371. border: 1px solid #FFE600;
  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: #FFE600;
  378. margin-left: 10rpx;
  379. margin-top: 17rpx;
  380. }
  381. .u-h1{
  382. float: left;
  383. font-size: $font-size-36;
  384. color: #FFFFFF;
  385. text-align: left;
  386. -o-text-overflow: ellipsis;
  387. text-overflow: ellipsis;
  388. display: -webkit-box;
  389. word-break: break-all;
  390. -webkit-box-orient: vertical;
  391. -webkit-line-clamp: 1;
  392. overflow: hidden;
  393. }
  394. .u-p{
  395. font-size: $font-size-24;
  396. line-height: 64rpx;
  397. color: #FFFFFF;
  398. text-align: left;
  399. }
  400. }
  401. }
  402. .header-icon{
  403. flex: 2;
  404. margin-right: 20rpx;
  405. image{
  406. float: right;
  407. width: 128rpx;
  408. height: 128rpx;
  409. border-radius: 100%;
  410. border: 2rpx solid #FFFFFF;
  411. }
  412. }
  413. }
  414. .header-main-none{
  415. width: 702rpx;
  416. height: 152rpx;
  417. padding: 0 24rpx;
  418. display: flex;
  419. .header-text{
  420. flex: 8;
  421. display: flex;
  422. flex-direction: column;
  423. .user-item{
  424. flex: 1;
  425. height: 50rpx;
  426. line-height: 50rpx;
  427. .line{
  428. margin: 0 10rpx;
  429. }
  430. .u-h1{
  431. float: left;
  432. font-size: $font-size-36;
  433. color: #FFFFFF;
  434. text-align: left;
  435. -o-text-overflow: ellipsis;
  436. text-overflow: ellipsis;
  437. display: -webkit-box;
  438. word-break: break-all;
  439. -webkit-box-orient: vertical;
  440. -webkit-line-clamp: 1;
  441. overflow: hidden;
  442. }
  443. .u-p{
  444. font-size: $font-size-24;
  445. line-height: 50rpx;
  446. color: #EFEFEF;
  447. text-align: left;
  448. }
  449. .u-btn{
  450. width: 160rpx;
  451. height: 40rpx;
  452. background: rgba(255,255,255,.5);
  453. border-radius: 5rpx;
  454. line-height: 40rpx;
  455. text-align: center;
  456. font-size: $font-size-24;
  457. color: #FFFFFF;
  458. display: block;
  459. margin-top: 5rpx;
  460. padding-left: 6rpx;
  461. .icon-xiangyouhuabeifen{
  462. font-size: $font-size-24;
  463. }
  464. }
  465. }
  466. }
  467. .header-icon{
  468. flex: 2;
  469. display: flex;
  470. margin-right: 20rpx;
  471. align-items: center;
  472. justify-content: center;
  473. image{
  474. float: right;
  475. width: 128rpx;
  476. height: 128rpx;
  477. border-radius: 100%;
  478. border: 2rpx solid #FFFFFF;
  479. }
  480. }
  481. }
  482. .user-order{
  483. width: 654rpx;
  484. height: auto;
  485. padding: 0 24rpx;
  486. background-color: $bg-color;
  487. margin-bottom: 24rpx;
  488. position: absolute;
  489. bottom: -170rpx;
  490. left: 24rpx;
  491. border-radius: 20rpx;
  492. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  493. }
  494. .tab-title{
  495. font-size: $font-size-28;
  496. line-height: 80rpx;
  497. color: #333333;
  498. text-align:left;
  499. border-bottom: 1px solid #F8F8F8;
  500. position: relative;
  501. .cell-tit{
  502. font-size: $font-size-28;
  503. color: $text-color;
  504. }
  505. .cell-more{
  506. float: right;
  507. line-height: 80rpx;
  508. font-size: $font-size-24;
  509. color: $text-color;
  510. padding-right: 30rpx;
  511. }
  512. .iconfont{
  513. width: 30rpx;
  514. height: 80rpx;
  515. line-height: 80rpx;
  516. text-align: center;
  517. position: absolute;
  518. right: 0;
  519. top: 0;
  520. display: block;
  521. font-size: $font-size-28;
  522. }
  523. }
  524. .order-section{
  525. display: flex;
  526. justify-content: space-around;
  527. align-items: center;
  528. flex-wrap:wrap;
  529. height: 99rpx;
  530. padding: 24rpx 0;
  531. }
  532. .order-item{
  533. flex:1;
  534. display: flex;
  535. flex-direction: column;
  536. align-items: center;
  537. position: relative;
  538. &:last-child{
  539. margin-right: 0;
  540. }
  541. .order-icon{
  542. width: 52rpx;
  543. height: 52rpx;
  544. position: relative;
  545. image{
  546. width: 52rpx;
  547. height: 52rpx;
  548. }
  549. .icon-num{
  550. position: absolute;
  551. right:-24rpx;
  552. top: -9rpx;
  553. }
  554. .icon-num.goleft{
  555. right: -12rpx;
  556. }
  557. }
  558. .order-t{
  559. line-height: 50rpx;
  560. font-size: $font-size-24;
  561. color: $text-color;
  562. }
  563. }
  564. .foot-list{
  565. width: 702rpx;
  566. padding: 0 24rpx;
  567. padding-top: 168rpx;
  568. }
  569. .list-cell-item{
  570. width: 654rpx;
  571. height: auto;
  572. margin-bottom: 24rpx;
  573. padding:0 24rpx;
  574. background: $bg-color;
  575. border-radius: 20rpx;
  576. box-shadow:0px 3px 6px rgba(225,86,22,0.07);
  577. }
  578. .list-cell{
  579. display:flex;
  580. width: 100%;
  581. align-items:baseline;
  582. line-height:100rpx;
  583. position:relative;
  584. background: $bg-color;
  585. justify-content: center;
  586. // border-bottom: 1px solid #EBEBEB;
  587. &.cell-hover{
  588. background:#fafafa;
  589. }
  590. .cell-more{
  591. align-self: baseline;
  592. font-size:$font-size-28;
  593. color:$text-color;
  594. margin-left:10rpx;
  595. .txt{
  596. color: #FB4343;
  597. padding-right: 10rpx;
  598. }
  599. }
  600. .cell-tit{
  601. flex: 1;
  602. font-size: $font-size-28;
  603. color: $text-color;
  604. margin-right:10rpx;
  605. }
  606. .cell-tip{
  607. font-size: $font-size-28;
  608. color: $text-color;
  609. }
  610. }
  611. .list-cell.last{
  612. border-bottom: none;
  613. }
  614. .uni-badge--small {
  615. -webkit-transform: scale(.8);
  616. -ms-transform: scale(.8);
  617. transform: scale(.8);
  618. -webkit-transform-origin: center center;
  619. -ms-transform-origin: center center;
  620. transform-origin: center center;
  621. }
  622. .uni-badge {
  623. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  624. -webkit-box-sizing: border-box;
  625. box-sizing: border-box;
  626. font-size: 12px;
  627. line-height: 1;
  628. display: inline-block;
  629. padding: 3px 6px;
  630. color: #333;
  631. border-radius: 100px;
  632. background-color: #f1f1f1;
  633. }
  634. .uni-badge-error {
  635. color: #fff;
  636. background-color: #dd524d;
  637. }
  638. </style>