user.vue 19 KB

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