index.vue 18 KB

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