user.vue 24 KB

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