user.vue 26 KB

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