user.vue 26 KB

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