user.vue 20 KB

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