user.vue 19 KB

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