user.vue 24 KB

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