index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
  1. <template>
  2. <view>
  3. <zj-page-layout
  4. :isScroll="true"
  5. :isWxCustomPage="true"
  6. :isLoading="isLoading"
  7. :refresherTriggered="refresherTriggered"
  8. @refresherrefresh="refresherrefresh"
  9. >
  10. <!-- <template slot="header">
  11. <view class="header-container" :style="cuStyle">我的</view>
  12. </template> -->
  13. <view class="a-container">
  14. <view class="top-container">
  15. <view class="user" v-if="isLogin">
  16. <view class="left" @tap="navToPage('/packageMine/pages/userinfo')">
  17. <block v-if="userInfo.avatar">
  18. <image :src="userInfo.avatar" mode="aspectFill" v-if="userInfo.avatar.indexOf('http') >= 0"></image>
  19. <image :src="imageUrl + userInfo.avatar" mode="aspectFill" v-else></image>
  20. </block>
  21. <view class="main">
  22. <view class="name">{{ userInfo.nickName }}</view>
  23. <view class="text">点击修改个人资料<text class="iconfont icon-jinru"></text></view>
  24. </view>
  25. </view>
  26. <view class="right">
  27. <view class="it" v-if="(isServiceUser || isWorkerUser) && qrcode2" @tap="openCode">
  28. <text class="iconfont icon-erweima"></text>
  29. </view>
  30. <view class="it" @tap="navToPage('/packageMine/pages/notice/list')">
  31. <u-icon name="chat" size="30"></u-icon>
  32. <u-badge max="99" :value="noticeNum || 0" absolute :offset="[-2, -2]"></u-badge>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="user" @tap="navToPage('/pages/login/indexs')" v-else>
  37. <view class="left">
  38. <image :src="configInfo.minLogo3" mode="aspectFill"></image>
  39. <view class="main">
  40. <view class="name">请先登录</view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- <view class="stats">
  45. <view
  46. class="item"
  47. v-for="(item, index) in statsList.filter(o => o.show)"
  48. :key="index"
  49. @tap="navToPage(item.link)"
  50. >
  51. <view class="value">{{ item.num }}</view>
  52. <view class="label">{{ item.name }}</view>
  53. </view>
  54. </view> -->
  55. </view>
  56. <view class="all-container">
  57. <!-- <view class="profit-container card" v-if="isLogin && (isServiceUser || isWorkerUser)">
  58. <view class="home-title">
  59. <view class="left">分销收益</view>
  60. <view class="right" @tap="navToPage('/packageMine/pages/profit/list', 1)">
  61. <text class="text">明细</text>
  62. <text class="iconfont icon-jinru"></text>
  63. </view>
  64. </view>
  65. <view class="list">
  66. <view
  67. class="item"
  68. v-for="(item, index) in shareProfitList"
  69. :key="index"
  70. @tap="navToPage('/packageMine/pages/profit/list', 1)"
  71. >
  72. <view class="num">{{ item.num | priceFilter }}</view>
  73. <view class="title">{{ item.title }}</view>
  74. </view>
  75. </view>
  76. </view> -->
  77. <view class="profit-container card" v-if="isLogin && isWorkerUser">
  78. <view class="home-title">
  79. <view class="left">销售收益</view>
  80. <view class="right" @tap="navToPage('/packageMine/pages/salesProfit/index', 1)">
  81. <text class="text">明细</text>
  82. <text class="iconfont icon-jinru"></text>
  83. </view>
  84. </view>
  85. <view class="list">
  86. <view
  87. class="item"
  88. v-for="(item, index) in salesProfitList"
  89. :key="index"
  90. @tap="navToPage('/packageMine/pages/salesProfit/index', 1)"
  91. >
  92. <view class="num">{{ item.num | priceFilter }}</view>
  93. <view class="title">{{ item.title }}</view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- <view class="order-container card">
  98. <view class="home-title">
  99. <view class="left">我的订单</view>
  100. <view class="right" @tap="navToPage('/packageMine/pages/order/list?tab=', 1)">
  101. <text class="text">全部订单</text>
  102. <text class="iconfont icon-jinru"></text>
  103. </view>
  104. </view>
  105. <view class="list">
  106. <view
  107. class="item"
  108. v-for="(item, index) in orderList"
  109. :key="index"
  110. @tap="navToPage(`/packageMine/pages/order/list?tab=${item.key}`, 1)"
  111. >
  112. <view class="icon">
  113. <text class="iconfont" :class="item.icon"></text>
  114. <u-badge max="99" :value="item.num" :absolute="true" :offset="[-4, -4]"></u-badge>
  115. </view>
  116. <view class="title">{{ item.title }}</view>
  117. </view>
  118. </view>
  119. </view> -->
  120. <view class="menu-container card">
  121. <view class="home-title">
  122. <view class="left">更多服务</view>
  123. </view>
  124. <view class="list">
  125. <block v-for="(item, index) in menuList.filter(o => o.show)" :key="index">
  126. <button
  127. v-if="item.fn == 'phone'"
  128. open-type="getPhoneNumber"
  129. @getphonenumber="getPhoneNumber"
  130. class="item"
  131. >
  132. <view class="icon"><text class="iconfont" :class="item.icon"></text></view>
  133. <view class="title">{{ item.name }}</view>
  134. <view class="right"><text class="iconfont icon-jinru"></text></view>
  135. </button>
  136. <button v-else-if="item.fn == 'contact'" open-type="contact" class="item">
  137. <view class="icon"><text class="iconfont" :class="item.icon"></text></view>
  138. <view class="title">{{ item.name }}</view>
  139. <view class="right"><text class="iconfont icon-jinru"></text></view>
  140. </button>
  141. <view
  142. v-else-if="item.icon == 'coupon'"
  143. class="item"
  144. @tap="item.link ? navToPage(item.link, 1) : actionFn(item.fn)"
  145. >
  146. <view class="icon"><u-icon size="20" :name="item.icon"></u-icon></view>
  147. <view class="title">{{ item.name }}</view>
  148. <view class="right"><text class="iconfont icon-jinru"></text></view>
  149. </view>
  150. <view v-else class="item" @tap="item.link ? navToPage(item.link, 1) : actionFn(item.fn)">
  151. <view class="icon"><text class="iconfont" :class="item.icon"></text></view>
  152. <view class="title">{{ item.name }}</view>
  153. <view class="right"><text class="iconfont icon-jinru"></text></view>
  154. </view>
  155. </block>
  156. </view>
  157. </view>
  158. <!-- <no-data v-if="!isLogin" :showText="'请先登录'" @tap="navToPage('/pages/login/indexs')"></no-data> -->
  159. <!-- <view class="logout" @tap="toLogout()" v-if="isLogin">退出登录</view> -->
  160. </view>
  161. </view>
  162. </zj-page-layout>
  163. </view>
  164. </template>
  165. <script>
  166. import { getNoticeNum, getOrderNum, selectionChange } from '@/common/utils/util.js'
  167. import { getStorage } from '@/common/utils/storage.js'
  168. export default {
  169. data() {
  170. return {
  171. isLoading: true,
  172. refresherTriggered: false, // 下拉刷新状态
  173. imageUrl: this.$imageUrl,
  174. configInfo: {},
  175. userInfo: {}, // 信息详情
  176. shareProfitList: [
  177. { title: '今日分销收益', num: 0 },
  178. { title: '累计分销收益', num: 0 }
  179. ],
  180. salesProfitList: [
  181. { title: '已结算金额', num: 0 },
  182. { title: '待结算金额', num: 0 }
  183. ],
  184. orderList: [
  185. { title: '待付款', icon: 'icon-daifukuan', key: 'NOPAY', num: 0 },
  186. { title: '进行中', icon: 'icon-daifuwu', key: 'YFH', num: 0 },
  187. { title: '待评价', icon: 'icon-daipingjia1', key: 'OVER', num: 0 },
  188. { title: '售后/退款', icon: 'icon-shouhou', key: 'REFUND', num: 0 }
  189. ],
  190. statsList: [],
  191. menuList: [],
  192. noticeNum: 0,
  193. qrcode2: ''
  194. }
  195. },
  196. computed: {
  197. cuStyle() {
  198. return `height: ${this.CustomBar - this.StatusBar}px; padding-top: ${this.StatusBar}px;`
  199. },
  200. isLogin() {
  201. return this.$store.state.user.token ? true : false
  202. },
  203. isWorkerUser() {
  204. // 是否师傅
  205. // return true;
  206. return this.userInfo && this.userInfo.type === 'WORKER'
  207. },
  208. isServiceUser() {
  209. // 是否业务员
  210. // return true;
  211. return this.userInfo && this.userInfo.type === 'SERVICE'
  212. },
  213. isHeadUser() {
  214. // 是否团长
  215. // return false;
  216. return this.userInfo && this.userInfo.promotionGroupLeader
  217. }
  218. },
  219. async onShow() {
  220. selectionChange()
  221. this.configInfo = await this.$getConfigInfo()
  222. // if(this.isLogin) {
  223. this.userInfo = await this.$getUserInfo()
  224. await this.getCouponList()
  225. this.initList()
  226. await this.getCount()
  227. await this.getShareProfitCount()
  228. await this.getSalesProfitCount()
  229. await this.getStats()
  230. this.getweixinpeizhi()
  231. // }
  232. this.noticeNum = await getNoticeNum()
  233. getOrderNum()
  234. this.isLoading = false
  235. },
  236. methods: {
  237. // 触发下拉刷新
  238. async refresherrefresh(e) {
  239. this.refresherTriggered = true
  240. this.configInfo = await this.$getConfigInfo()
  241. // if(this.isLogin) {
  242. this.userInfo = await this.$getUserInfo()
  243. await this.getCouponList()
  244. this.initList()
  245. await this.getCount()
  246. await this.getShareProfitCount()
  247. await this.getSalesProfitCount()
  248. await this.getStats()
  249. // }
  250. this.noticeNum = await getNoticeNum()
  251. this.isLoading = false
  252. this.refresherTriggered = false
  253. },
  254. initList() {
  255. this.statsList = [
  256. {
  257. name: '优惠券',
  258. num: 0,
  259. link: '/packageMine/pages/coupon/list',
  260. show: true
  261. },
  262. {
  263. name: '收藏',
  264. num: 0,
  265. link: '/packageMine/pages/collection',
  266. show: true
  267. },
  268. {
  269. name: '收益',
  270. num: 0,
  271. link: '/packageMine/pages/profit/list',
  272. show: this.isServiceUser || this.isWorkerUser || this.isHeadUser
  273. }
  274. ]
  275. this.menuList = [
  276. // {
  277. // name: '我的租赁',
  278. // icon: 'coupon',
  279. // link: '/packageWorkorder/pages/tenancyOrderList',
  280. // show: this.userInfo.isShowLease
  281. // },
  282. {
  283. name: '绑定手机号',
  284. icon: 'icon-kefu',
  285. link: '/packageMine/pages/phone',
  286. show: !this.userInfo.mobile
  287. },
  288. // {
  289. // name: '商城二维码',
  290. // icon: 'icon-erweima',
  291. // link: '/packageMine/pages/mallCode',
  292. // show: this.isServiceUser || this.isWorkerUser
  293. // },
  294. // // {
  295. // // name: '关注公众号',
  296. // // icon: 'icon-gongzhonghao',
  297. // // fn: 'toWxLink',
  298. // // show: true
  299. // // },
  300. // {
  301. // name: '地址管理',
  302. // icon: 'icon-shouhuodizhi',
  303. // link: '/packageMine/pages/address/list',
  304. // show: true
  305. // },
  306. // {
  307. // name: '销售排行榜',
  308. // icon: 'icon-paihangbang',
  309. // link: '/packageMine/pages/ranking/list',
  310. // show: this.isServiceUser || this.isWorkerUser
  311. // },
  312. // // {
  313. // // name: '在线客服',
  314. // // icon: 'icon-kefu',
  315. // // fn: 'contact',
  316. // // show: true
  317. // // },
  318. {
  319. name: '师傅入驻',
  320. icon: 'icon-kehu',
  321. link: '/packageMine/pages/myWebsit',
  322. show: true
  323. },
  324. // {
  325. // name: '成为分销员',
  326. // icon: 'icon-kehu',
  327. // link: '/packageMine/pages/distributorEnter',
  328. // show: !this.isWorkerUser && !this.isServiceUser
  329. // },
  330. {
  331. name: '我的安维费',
  332. icon: 'icon-kehu',
  333. link: '/packageMine/pages/wodeanwei',
  334. show: this.isWorkerUser
  335. },
  336. {
  337. name: '中心文件',
  338. icon: 'icon-kehu',
  339. link: '/packageMine/pages/coreLssuedFile/index',
  340. show: this.isWorkerUser
  341. },
  342. {
  343. name: '师傅组别',
  344. icon: 'icon-kehu',
  345. link: '/packageMine/pages/masterGroup/index',
  346. show: this.isWorkerUser
  347. },
  348. {
  349. name: '我的保单',
  350. icon: 'icon-kehu',
  351. link: '/packageEnter/pages/insurance/myInsurance/index',
  352. show: this.isWorkerUser
  353. }
  354. ]
  355. },
  356. actionFn(fn) {
  357. if (!fn) return false
  358. this[fn]()
  359. },
  360. // 授权手机号
  361. getPhoneNumber(e) {
  362. if (!e.detail.iv) {
  363. return this.$toast('获取手机号失败')
  364. }
  365. uni.login({
  366. provider: 'weixin',
  367. success: loginRes => {
  368. this.$api
  369. .post('/user/auth', {
  370. code: loginRes.code,
  371. phoneCode: e.detail.code
  372. })
  373. .then(async res => {
  374. this.$store.commit('user/set_token', res.data.token)
  375. this.$store.commit('user/set_openId', res.data.openId)
  376. this.$store.commit('user/set_name', res.data.nickName)
  377. this.$store.commit('user/set_avatar', res.data.avatar)
  378. this.$store.commit('user/set_userId', res.data.userId)
  379. this.$store.commit('user/set_mobile', res.data.mobile)
  380. this.$successToast('授权成功')
  381. })
  382. }
  383. })
  384. },
  385. // 获取订单数量
  386. async getCount() {
  387. return new Promise((resolve, reject) => {
  388. this.$api
  389. .get('/order/count', {
  390. userId: this.$store.state.user.userId
  391. })
  392. .then(res => {
  393. const data = res.data || {}
  394. this.orderList[0].num = data.noPay
  395. this.orderList[1].num = data.yfh
  396. this.orderList[2].num = data.ywc
  397. this.orderList[3].num = data.sh
  398. resolve(data)
  399. })
  400. .catch(res => {
  401. resolve(1)
  402. })
  403. })
  404. },
  405. // 获取统计数量
  406. async getStats() {
  407. return new Promise((resolve, reject) => {
  408. this.$api
  409. .get('/user/my/count', {
  410. userId: this.$store.state.user.userId
  411. })
  412. .then(res => {
  413. const data = res.data || {}
  414. this.statsList[0].num = data.coupon || 0
  415. this.statsList[1].num = data.collect || 0
  416. this.statsList[2].num = data.amount || 0
  417. resolve(data)
  418. })
  419. .catch(res => {
  420. resolve(1)
  421. })
  422. })
  423. },
  424. // 获取收益统计
  425. async getShareProfitCount() {
  426. return new Promise((resolve, reject) => {
  427. this.$api
  428. .get('/user/profit', {
  429. userId: this.$store.state.user.userId
  430. })
  431. .then(res => {
  432. const data = res.data || {}
  433. this.shareProfitList[0].num = data.today
  434. this.shareProfitList[1].num = data.totalAmount
  435. resolve(data)
  436. })
  437. .catch(res => {
  438. resolve(1)
  439. })
  440. })
  441. },
  442. // 获取销售收益统计
  443. async getSalesProfitCount() {
  444. return new Promise((resolve, reject) => {
  445. this.$api
  446. .post('/withdrawal/amount/count')
  447. .then(res => {
  448. const data = res.data || {}
  449. this.salesProfitList[0].num = data.yjs
  450. this.salesProfitList[1].num = data.djs
  451. resolve(data)
  452. })
  453. .catch(res => {
  454. resolve(1)
  455. })
  456. })
  457. },
  458. // 获取可领优惠券列表
  459. async getCouponList() {
  460. return new Promise((resolve, reject) => {
  461. this.$api
  462. .get('/coupon/list/all', {
  463. userId: this.$store.state.user.userId
  464. })
  465. .finally(res => {
  466. resolve(1)
  467. })
  468. })
  469. },
  470. getweixinpeizhi() {
  471. this.$api.get('/common/wechat/detail').then(res => {
  472. this.qrcode2 = res.data.qrcode2
  473. })
  474. },
  475. openCode() {
  476. this.$api
  477. .post('/common/get/mp/qrcode', {
  478. companyWechatId: getStorage('user').companyWechatId || '',
  479. userId: this.$store.state.user.userId
  480. })
  481. .then(res => {
  482. uni.previewImage({
  483. current: res.data.ticket
  484. ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}`
  485. : this.qrcode2,
  486. urls: [
  487. res.data.ticket ? `https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=${res.data.ticket}` : this.qrcode2
  488. ]
  489. })
  490. })
  491. },
  492. // 跳转微信公众号链接
  493. toWxLink() {
  494. let link = this.configInfo.pubOfficeAddr
  495. if (!link) return false
  496. this.navToPage('/pages/index/webview?link=' + link)
  497. },
  498. navToPage(url) {
  499. this.$navToPage({
  500. url
  501. })
  502. },
  503. toLogout() {
  504. this.$modal({
  505. content: '确定退出登录?'
  506. })
  507. .then(() => {
  508. this.$store.dispatch('user/resetToken')
  509. console.log(this.configInfo)
  510. // this.crossPage.$emit('loginout', '', 'H5');
  511. this.shareProfitList.forEach(item => {
  512. item.num = 0
  513. })
  514. this.orderList.forEach(item => {
  515. item.num = 0
  516. })
  517. this.statsList.forEach(item => {
  518. item.num = 0
  519. })
  520. })
  521. .catch(() => {})
  522. }
  523. }
  524. }
  525. </script>
  526. <style scoped lang="scss">
  527. .a-container {
  528. padding-bottom: 30rpx;
  529. }
  530. .header-container {
  531. background: linear-gradient(262deg, #daf8fa 0%, #d3e6fc 84%, #d2e2fc 100%);
  532. display: flex;
  533. align-items: center;
  534. justify-content: center;
  535. font-weight: 500;
  536. }
  537. .top-container {
  538. background: linear-gradient(262deg, #daf8fa 0%, #d3e6fc 84%, #d2e2fc 100%);
  539. padding: 20rpx 20rpx 80rpx;
  540. .user {
  541. display: flex;
  542. align-items: center;
  543. justify-content: space-between;
  544. padding-right: 10rpx;
  545. .left {
  546. display: flex;
  547. align-items: center;
  548. image {
  549. width: 120rpx;
  550. height: 120rpx;
  551. border-radius: 50%;
  552. margin-right: 20rpx;
  553. }
  554. .main {
  555. display: flex;
  556. flex-direction: column;
  557. .name {
  558. font-size: 32rpx;
  559. line-height: 36rpx;
  560. font-weight: 500;
  561. }
  562. .text {
  563. font-size: 24rpx;
  564. color: #0b2853;
  565. line-height: 30rpx;
  566. margin-top: 12rpx;
  567. opacity: 0.5;
  568. .iconfont {
  569. font-size: 20rpx;
  570. margin-left: 8rpx;
  571. }
  572. }
  573. }
  574. }
  575. .right {
  576. display: flex;
  577. align-items: center;
  578. .it {
  579. margin-left: 40rpx;
  580. position: relative;
  581. &:first-child {
  582. margin-left: 0;
  583. }
  584. .iconfont {
  585. display: block;
  586. font-size: 44rpx;
  587. }
  588. }
  589. }
  590. }
  591. .stats {
  592. display: flex;
  593. align-items: center;
  594. margin-top: 20rpx;
  595. .item {
  596. flex: 1;
  597. display: flex;
  598. flex-direction: column;
  599. align-items: center;
  600. .value {
  601. font-weight: 600;
  602. font-size: 36rpx;
  603. }
  604. .label {
  605. margin-top: 8rpx;
  606. font-size: 22rpx;
  607. color: #0b2853;
  608. opacity: 0.5;
  609. }
  610. }
  611. }
  612. }
  613. .all-container {
  614. padding: 1rpx 20rpx 20rpx;
  615. margin-top: -80rpx;
  616. }
  617. .home-title {
  618. display: flex;
  619. align-items: center;
  620. justify-content: space-between;
  621. .left {
  622. font-size: 34rpx;
  623. color: $main-font;
  624. font-weight: bold;
  625. }
  626. .right {
  627. display: flex;
  628. align-items: center;
  629. .text {
  630. font-size: 28rpx;
  631. color: $sec-font;
  632. }
  633. .iconfont {
  634. font-size: 24rpx;
  635. color: $sec-font;
  636. margin-left: 8rpx;
  637. }
  638. }
  639. }
  640. .card {
  641. @include zj-card;
  642. background: #ffffff;
  643. border-radius: 20rpx;
  644. overflow: hidden;
  645. padding: 30rpx;
  646. margin-top: 20rpx;
  647. }
  648. .profit-container {
  649. .list {
  650. display: flex;
  651. margin-top: 30rpx;
  652. .item {
  653. flex: 1;
  654. display: flex;
  655. flex-direction: column;
  656. align-items: center;
  657. .num {
  658. font-size: 36rpx;
  659. font-weight: 500;
  660. }
  661. .title {
  662. font-size: 24rpx;
  663. margin-top: 8rpx;
  664. }
  665. }
  666. }
  667. }
  668. .order-container {
  669. .list {
  670. display: flex;
  671. margin-top: 30rpx;
  672. .item {
  673. flex: 1;
  674. display: flex;
  675. flex-direction: column;
  676. align-items: center;
  677. .icon {
  678. position: relative;
  679. .iconfont {
  680. font-size: 52rpx;
  681. }
  682. }
  683. .title {
  684. font-size: 26rpx;
  685. margin-top: 10rpx;
  686. }
  687. }
  688. }
  689. }
  690. .menu-container {
  691. .list {
  692. margin-top: 20rpx;
  693. .item {
  694. padding: 0;
  695. background: none;
  696. text-align: left;
  697. display: flex;
  698. align-items: center;
  699. height: 100rpx;
  700. border-bottom: 1px solid #f5f5f5;
  701. color: #333333;
  702. &:last-child {
  703. border: none;
  704. }
  705. &::after {
  706. border: none;
  707. }
  708. .icon {
  709. margin-right: 20rpx;
  710. .iconfont {
  711. color: $reg-font;
  712. font-size: 40rpx;
  713. }
  714. }
  715. .title {
  716. flex: 1;
  717. font-size: 30rpx;
  718. }
  719. .right {
  720. .iconfont {
  721. font-size: 28rpx;
  722. color: $sec-font;
  723. }
  724. }
  725. }
  726. }
  727. }
  728. .logout {
  729. @include zj-card;
  730. background: #ffffff;
  731. border-radius: 20rpx;
  732. height: 100rpx;
  733. line-height: 100rpx;
  734. text-align: center;
  735. margin-top: 30rpx;
  736. font-size: 32rpx;
  737. font-weight: 400;
  738. color: $theme-color;
  739. }
  740. </style>