user.vue 20 KB

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