user.vue 24 KB

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