user.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  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 == 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(param); //会所剩余余额
  337. moneyText = money +'.00'
  338. }else{
  339. money = this.$api.FormatMoney(param); //会所剩余余额
  340. moneyText = money
  341. }
  342. }
  343. console.log('moneyText',moneyText)
  344. return moneyText;
  345. },
  346. handleBeanlClick(){//关闭采美豆弹窗
  347. this.isActivityBean = false
  348. },
  349. navigator(url){
  350. if(this.hasLogin){
  351. this.$api.navigateTo(url)
  352. }else{
  353. this.$api.navigateTo('/pages/login/login?type=0')
  354. }
  355. },
  356. navigatorRegirst(url){
  357. if(!this.hasLogin){
  358. // 友盟埋点注册入口点击事件
  359. if(process.env.NODE_ENV != 'development'){
  360. this.$uma.trackEvent('Um_Event_zhuce', {
  361. Um_Key_PageName: '立即注册',
  362. Um_Key_SourcePage: '个人中心',
  363. })
  364. }
  365. this.$api.navigateTo(url)
  366. }
  367. },
  368. navigatorClubUpgrade(url){
  369. // 友盟埋点普通机构升级点击事件
  370. if(process.env.NODE_ENV != 'development'){
  371. this.$uma.trackEvent('Um_Event_ClubUpgrade', {
  372. Um_Key_ClubName: `${this.name}`,
  373. Um_Key_PageName: '普通机构升级入口',
  374. Um_Key_SourcePage: '个人中心',
  375. })
  376. }
  377. this.$api.navigateTo(url)
  378. },
  379. navigatorNex(url){
  380. if(!this.hasLogin){
  381. this.$api.navigateTo(url)
  382. }
  383. },
  384. showBadge(n){
  385. let num ='';
  386. if(n>100){num = 99}else{num = n;}
  387. return num;
  388. },
  389. clubStatusText(state){
  390. let stateText;
  391. switch(state){
  392. case 90:
  393. stateText = ''
  394. break;
  395. case 1:
  396. stateText = '正在审核中'
  397. break;
  398. case 92:
  399. stateText = '审核不通过'
  400. break;
  401. }
  402. return stateText
  403. }
  404. },
  405. onPageScroll(e){//实时获取到滚动的值
  406. if(e.scrollTop>20){
  407. this.isCmcustom = true
  408. this.nvabarData.bgColor = '#E37A4B'
  409. this.nvabarData.textColor = '#FFFFFF'
  410. }else{
  411. this.isCmcustom = false
  412. this.nvabarData.bgColor = ''
  413. this.nvabarData.textColor = '#FFFFFF'
  414. }
  415. },
  416. onPullDownRefresh() {//下拉刷新
  417. if(this.hasLogin){
  418. this.getClubObtainCenter()
  419. uni.stopPullDownRefresh()
  420. }else{
  421. uni.stopPullDownRefresh()
  422. }
  423. },
  424. onShow(){
  425. if(this.hasLogin){
  426. this.$api.getComStorage('userInfo').then((resolve) =>{
  427. this.userId = resolve.userId ? resolve.userId : 0
  428. this.getClubObtainCenter()
  429. this.GetInitBeansInfo()
  430. }).catch(reject =>{
  431. console.log('异常处理=========>',reject)
  432. })
  433. }else{
  434. this.getPhone()
  435. this.$store.commit('updateAllNum',0)
  436. }
  437. }
  438. }
  439. </script>
  440. <style lang="scss">
  441. @import "@/uni.scss";
  442. page{
  443. background-color: #F7F7F7;
  444. }
  445. .user{
  446. width: 100%;
  447. height: 100%;
  448. position:relative;
  449. background: rgba(247, 247, 247, 1);
  450. }
  451. .header{
  452. width: 100%;
  453. position: relative;
  454. background-size: cover;
  455. }
  456. .header-main{
  457. width: 702rpx;
  458. height: 130rpx;
  459. padding: 12rpx 24rpx;
  460. display: flex;
  461. .header-text{
  462. flex: 8;
  463. display: flex;
  464. flex-direction: column;
  465. box-sizing: border-box;
  466. padding-left: 20rpx;
  467. .user-item{
  468. flex: 1;
  469. height: 64rpx;
  470. line-height: 64rpx;
  471. &.amount{
  472. height: 135rpx;
  473. line-height: 135rpx;
  474. }
  475. .u-tips{
  476. display: inline-block;
  477. float: left;
  478. width: 98rpx;
  479. height: 30rpx;
  480. border: 1px solid #FFFFFF;
  481. background: linear-gradient(128deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  482. border-radius: 16rpx;
  483. line-height: 30rpx;
  484. font-size: $font-size-20;
  485. text-align: center;
  486. color: #FFFFFF;
  487. margin-left: 10rpx;
  488. margin-top: 50rpx;
  489. }
  490. .u-viptips{
  491. display: inline-block;
  492. float: left;
  493. width: 98rpx;
  494. height: 30rpx;
  495. border: 1px solid #FFE600;
  496. background: linear-gradient(128deg,rgba(242,143,49,1) 0%,rgba(225,86,22,1) 100%);
  497. border-radius: 16rpx;
  498. line-height: 30rpx;
  499. font-size: $font-size-20;
  500. text-align: center;
  501. color: #FFE600;
  502. margin-left: 10rpx;
  503. margin-top: 50rpx;
  504. }
  505. .u-h1{
  506. width: 300rpx;
  507. float: left;
  508. font-size: $font-size-34;
  509. color: #FFFFFF;
  510. text-align: left;
  511. -o-text-overflow: ellipsis;
  512. text-overflow: ellipsis;
  513. display: -webkit-box;
  514. word-break: break-all;
  515. -webkit-box-orient: vertical;
  516. -webkit-line-clamp: 1;
  517. overflow: hidden;
  518. }
  519. .u-p{
  520. font-size: $font-size-24;
  521. line-height: 30rpx;
  522. color: #FFFFFF;
  523. text-align: left;
  524. }
  525. }
  526. }
  527. .header-icon{
  528. flex: 2;
  529. image{
  530. float: right;
  531. width: 128rpx;
  532. height: 128rpx;
  533. border-radius: 100%;
  534. border: 2rpx solid #FFFFFF;
  535. }
  536. }
  537. }
  538. .header-main-none{
  539. width: 702rpx;
  540. height: 152rpx;
  541. padding: 0 24rpx;
  542. display: flex;
  543. .header-text{
  544. flex: 8;
  545. display: flex;
  546. flex-direction: column;
  547. .user-item{
  548. flex: 1;
  549. height: 50rpx;
  550. line-height: 50rpx;
  551. .line{
  552. margin: 0 10rpx;
  553. }
  554. .u-h1{
  555. float: left;
  556. font-size: $font-size-34;
  557. color: #FFFFFF;
  558. text-align: left;
  559. -o-text-overflow: ellipsis;
  560. text-overflow: ellipsis;
  561. display: -webkit-box;
  562. word-break: break-all;
  563. -webkit-box-orient: vertical;
  564. -webkit-line-clamp: 1;
  565. overflow: hidden;
  566. }
  567. .u-p{
  568. font-size: $font-size-24;
  569. line-height: 50rpx;
  570. color: #EFEFEF;
  571. text-align: left;
  572. }
  573. .u-btn{
  574. width: 160rpx;
  575. height: 40rpx;
  576. background: rgba(255,255,255,.8);
  577. border-radius: 8rpx;
  578. line-height: 40rpx;
  579. text-align: center;
  580. font-size: $font-size-24;
  581. color: $color-system;
  582. display: block;
  583. margin-top: 5rpx;
  584. padding-left: 6rpx;
  585. .icon-xiangyouhuabeifen{
  586. font-size: $font-size-24;
  587. }
  588. }
  589. }
  590. }
  591. .header-icon{
  592. flex: 2;
  593. display: flex;
  594. margin-right: 20rpx;
  595. align-items: center;
  596. justify-content: center;
  597. image{
  598. float: right;
  599. width: 128rpx;
  600. height: 128rpx;
  601. border-radius: 100%;
  602. border: 2rpx solid #FFFFFF;
  603. }
  604. }
  605. }
  606. .header-main-account{
  607. width: 100%;
  608. height: auto;
  609. box-sizing: border-box;
  610. padding:24rpx;
  611. .main-account{
  612. width: 100%;
  613. height: 168rpx;
  614. background-color: $bg-color;
  615. border-radius: 20rpx;
  616. box-sizing: border-box;
  617. padding:24rpx 0;
  618. .main-account-le{
  619. width: 200rpx;
  620. height: 100%;
  621. position: relative;
  622. float: left;
  623. &::before{
  624. content: '';
  625. width: 2rpx;
  626. height: 64rpx;
  627. background-color: #c4c4c4;
  628. position: absolute;
  629. right: 0;
  630. top: 30rpx;
  631. }
  632. .main-account-icon{
  633. width: 100%;
  634. height: 74rpx;
  635. line-height: 74rpx;
  636. text-align: center;
  637. .icon-zichan{
  638. font-size: 50rpx;
  639. color: #f94b4b;
  640. }
  641. }
  642. .main-account-text{
  643. width: 100%;
  644. height: 44rpx;
  645. line-height: 44rpx;
  646. font-size: $font-size-28;
  647. text-align: center;
  648. color: #333333;
  649. }
  650. }
  651. .main-account-ri{
  652. width: 502rpx;
  653. height: 100%;
  654. float: right;
  655. .main-account-ri-view{
  656. width: 33.33%;
  657. height: 100%;
  658. float: left;
  659. .main-account-icon{
  660. width: 100%;
  661. height: 74rpx;
  662. line-height: 74rpx;
  663. text-align: center;
  664. font-size: $font-size-32;
  665. color: #f94b4b;
  666. font-weight: bold;
  667. &.none{
  668. color: #333333;
  669. font: $font-size-36;
  670. font-weight: normal;
  671. }
  672. }
  673. .main-account-text{
  674. width: 100%;
  675. height: 44rpx;
  676. line-height: 44rpx;
  677. font-size: $font-size-28;
  678. text-align: center;
  679. color: #333333;
  680. }
  681. }
  682. }
  683. }
  684. }
  685. .header-main-order{
  686. width: 100%;
  687. height: auto;
  688. box-sizing: border-box;
  689. padding: 0 24rpx;
  690. margin-top: 26rpx;
  691. .user-order{
  692. width: 100%;
  693. height: auto;
  694. background-color: $bg-color;
  695. margin-bottom: 24rpx;
  696. border-radius: 20rpx;
  697. box-sizing: border-box;
  698. padding: 0 24rpx;
  699. }
  700. }
  701. .tab-title{
  702. font-size: $font-size-28;
  703. line-height: 80rpx;
  704. color: #333333;
  705. text-align:left;
  706. border-bottom: 1px solid #F8F8F8;
  707. position: relative;
  708. .cell-tit{
  709. font-size: $font-size-28;
  710. color: $text-color;
  711. }
  712. .cell-more{
  713. float: right;
  714. line-height: 80rpx;
  715. font-size: $font-size-24;
  716. color: $text-color;
  717. padding-right: 30rpx;
  718. }
  719. .iconfont{
  720. width: 30rpx;
  721. height: 80rpx;
  722. line-height: 80rpx;
  723. text-align: center;
  724. position: absolute;
  725. right: 0;
  726. top: 0;
  727. display: block;
  728. font-size: $font-size-28;
  729. }
  730. }
  731. .order-section{
  732. display: flex;
  733. justify-content: space-around;
  734. align-items: center;
  735. flex-wrap:wrap;
  736. height: 99rpx;
  737. padding: 24rpx 0;
  738. }
  739. .order-item{
  740. flex:1;
  741. display: flex;
  742. flex-direction: column;
  743. align-items: center;
  744. position: relative;
  745. &:last-child{
  746. margin-right: 0;
  747. }
  748. .order-icon{
  749. width: 52rpx;
  750. height: 52rpx;
  751. position: relative;
  752. image{
  753. width: 52rpx;
  754. height: 52rpx;
  755. }
  756. .icon-num{
  757. position: absolute;
  758. right:-24rpx;
  759. top: -9rpx;
  760. }
  761. .icon-num.goleft{
  762. right: -12rpx;
  763. }
  764. }
  765. .order-t{
  766. line-height: 50rpx;
  767. font-size: $font-size-24;
  768. color: $text-color;
  769. }
  770. }
  771. .header-main-last{
  772. width: 100%;
  773. height: 20rpx;
  774. float: left;
  775. box-sizing: border-box;
  776. }
  777. .header-main-listcell{
  778. width: 100%;
  779. height: auto;
  780. box-sizing: border-box;
  781. padding: 0 24rpx;
  782. margin-bottom: 60rpx;
  783. }
  784. .list-cell-avtiv{
  785. width: 702rpx;
  786. height: 240rpx;
  787. margin-bottom: 24rpx;
  788. image{
  789. width: 100%;
  790. height: 100%;
  791. display: block;
  792. }
  793. }
  794. .list-cell-item{
  795. width: 654rpx;
  796. height: auto;
  797. margin-bottom: 24rpx;
  798. padding:0 24rpx;
  799. background: $bg-color;
  800. border-radius: 20rpx;
  801. }
  802. .list-cell{
  803. width: 100%;
  804. line-height:100rpx;
  805. position:relative;
  806. background: $bg-color;
  807. border-bottom: 1px solid #EBEBEB;
  808. height: 100rpx;
  809. &:last-child{
  810. border-bottom: none;
  811. }
  812. &.cell-hover{
  813. background:#fafafa;
  814. }
  815. .cell-icon{
  816. width: 60rpx;
  817. height: 100rpx;
  818. text-align: center;
  819. box-sizing: border-box;
  820. padding: 32rpx 12rpx;
  821. float: left;
  822. .cell-icon-image{
  823. width: 36rpx;
  824. height: 36rpx;
  825. display: block;
  826. }
  827. }
  828. .cell-more{
  829. height: 100rpx;
  830. line-height: 100rpx;
  831. text-align: right;
  832. position: absolute;
  833. right: 0;
  834. top: 0;
  835. font-size:$font-size-28;
  836. color:#666666;
  837. &.cont{
  838. width: 250rpx;
  839. }
  840. .txt{
  841. color: #FB4343;
  842. padding-right: 10rpx;
  843. }
  844. }
  845. .cell-tit{
  846. width: 465rpx;
  847. display: block;
  848. float: left;
  849. font-size: $font-size-28;
  850. color: #666666;
  851. margin-right:10rpx;
  852. &.cont{
  853. width: 300rpx;
  854. }
  855. .cell-tips{
  856. width: 74rpx;
  857. height: 32rpx;
  858. line-height: 32rpx;
  859. padding: 0 7rpx;
  860. border-radius: 16rpx;
  861. background-color: #ffe6dc;
  862. color: $color-system;
  863. text-align: center;
  864. font-size: $font-size-20;
  865. margin-left: 8rpx;
  866. }
  867. }
  868. .cell-tip{
  869. font-size: $font-size-28;
  870. color: $text-color;
  871. }
  872. }
  873. .list-cell.last{
  874. border-bottom: none;
  875. }
  876. .uni-badge--small {
  877. -webkit-transform: scale(.8);
  878. -ms-transform: scale(.8);
  879. transform: scale(.8);
  880. -webkit-transform-origin: center center;
  881. -ms-transform-origin: center center;
  882. transform-origin: center center;
  883. }
  884. .uni-badge {
  885. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  886. -webkit-box-sizing: border-box;
  887. box-sizing: border-box;
  888. font-size: 12px;
  889. line-height: 1;
  890. display: inline-block;
  891. padding: 3px 6px;
  892. color: #333;
  893. border-radius: 100px;
  894. background-color: #f1f1f1;
  895. }
  896. .uni-badge-error {
  897. color: #fff;
  898. background-color: #dd524d;
  899. }
  900. </style>