user.vue 24 KB

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