user.vue 21 KB

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