user.vue 24 KB

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