user.vue 25 KB

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