user.vue 21 KB

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