user.vue 26 KB

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