user.vue 26 KB

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