index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="top-image"><image src="../../static/user/user-top.png" mode=""></image></view>
  5. <view class="user-set flex">
  6. <view class="set-logo"><!-- <image src="../../static/user/user1.png" mode=""></image> --></view>
  7. <!-- <view class="xx-logo"><image src="../../static/user/user2.png" mode=""></image></view> -->
  8. </view>
  9. <view class="user-wrap">
  10. <view class="info-left flex">
  11. <view class="user-name">
  12. <image :src="userInfo.avatar" mode="" v-if="userInfo.avatar"></image>
  13. <image src="../../static/error/missing-face.png" mode="" v-else></image>
  14. <view class="user-font">
  15. <view class="name clamp">{{ userInfo.nickname }}</view>
  16. <view class="phone">{{ userInfo.phone }}</view>
  17. <view class="phone" v-if="userInfo.uid">邀请码:{{ userInfo.uid }}</view>
  18. </view>
  19. </view>
  20. <view class="kpi" v-if="userInfo && userInfo.level">
  21. <image src="../../static/img/menber-bg.png" mode=""></image>
  22. <view class="user-level">V{{ userInfo.level }}会员</view>
  23. </view>
  24. </view>
  25. <view class="flex">
  26. <view class="info-right" @click="authTo('/pages/users/user_money/index')">
  27. <image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
  28. <view class="iright-font">钱包余额:{{ userInfo.now_money || 0 }}</view>
  29. </view>
  30. <view class="info-right" @click="authTo('/pages/users/user_payment/index')">
  31. <image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
  32. <view class="iright-font">充值钱包</view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="main-box">
  37. <view class="title flex">
  38. <view class="title-left">
  39. <!-- <image class="title-icon" src="../../static/user/user4.png" mode=""></image> -->
  40. <view class="title-font">我的资产</view>
  41. </view>
  42. <!-- <image class="title-right" src="../../static/img/back.png" mode=""></image> -->
  43. </view>
  44. <view class="main flex">
  45. <view class="item" @click="authTo('/pages/user/myjf')">
  46. <view class="item-num">{{ userInfo.dynamic_integral * 1 || 0 }}</view>
  47. <view class="item-font">动态积分</view>
  48. </view>
  49. <view class="jg"></view>
  50. <view class="item" @click="authTo('/pages/user/mygwjf')">
  51. <view class="item-num">{{ userInfo.integral * 1 || 0 }}</view>
  52. <view class="item-font">静态积分</view>
  53. </view>
  54. <view class="jg"></view>
  55. <view class="item" @click="authTo('/pages/user/mythq')">
  56. <view class="item-num">{{ userInfo.consumption * 1 || 0 }}</view>
  57. <view class="item-font">消费券</view>
  58. </view>
  59. <view class="jg"></view>
  60. <view class="item" @click="authTo('/pages/user/myggz')">
  61. <view class="item-num">{{ userInfo.contribution * 1 || 0 }}</view>
  62. <view class="item-font">贡献值</view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="main-box">
  67. <view class="title flex" @click="authTo('/pages/users/order_list/index')">
  68. <view class="title-left">
  69. <!-- <image class="title-icon" src="../../static/user/user5.png" mode=""></image> -->
  70. <view class="title-font">我的订单</view>
  71. </view>
  72. <image class="title-right" src="../../static/img/back.png" mode=""></image>
  73. </view>
  74. <view class="main flex">
  75. <view class="oitem" @click="authTo('/pages/users/order_list/index?state=0')">
  76. <image class="oitem-image" src="../../static/user/user6.png" mode=""></image>
  77. <view class="oitem-font">待付款</view>
  78. </view>
  79. <view class="oitem" @click="authTo('/pages/users/order_list/index?state=1')">
  80. <image class="oitem-image" src="../../static/user/user7.png" mode=""></image>
  81. <view class="oitem-font">待发货</view>
  82. </view>
  83. <view class="oitem" @click="authTo('/pages/users/order_list/index?state=2')">
  84. <image class="oitem-image" src="../../static/user/user8.png" mode=""></image>
  85. <view class="oitem-font">待收货</view>
  86. </view>
  87. <view class="oitem" @click="authTo('/pages/users/order_list/index?state=3')">
  88. <image class="oitem-image" src="../../static/user/user9.png" mode=""></image>
  89. <view class="oitem-font">已完成</view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="my-tools">
  94. <view class="my-order">
  95. <view class="order">我的功能</view>
  96. <!-- <image src="../../static/img/xiangxia.png" mode="scaleToFill"></image> -->
  97. </view>
  98. <view class="tool flex">
  99. <view class="tool-item" @click="authTo('/pages/users/user_spread_user/index')">
  100. <view class="tool-img"><image src="../../static/icon/gn1.png" mode=""></image></view>
  101. <view class="tool-name">我的推广</view>
  102. </view>
  103. <view class="tool-item" @click="authTo('/pages/users/user_spread_code/index')">
  104. <view class="tool-img"><image src="../../static/icon/gn2.png" mode=""></image></view>
  105. <view class="tool-name">邀请有礼</view>
  106. </view>
  107. <view class="tool-item" @click="authTo('/pages/user/favorites')">
  108. <view class="tool-img"><image src="../../static/icon/gn3.png" mode=""></image></view>
  109. <view class="tool-name">我的收藏</view>
  110. </view>
  111. <view class="tool-item" @click="authTo('/pages/users/retrievePassword/index')">
  112. <view class="tool-img"><image src="../../static/icon/i8.png" mode=""></image></view>
  113. <view class="tool-name">修改密码</view>
  114. </view>
  115. <view class="tool-item" @click="openKf()">
  116. <view class="tool-img"><image src="../../static/icon/gn5.png" mode=""></image></view>
  117. <view class="tool-name">客服中心</view>
  118. </view>
  119. <view class="tool-item" @click="authTo('/pages/users/user_address_list/index')">
  120. <view class="tool-img"><image src="../../static/icon/gn6.png" mode=""></image></view>
  121. <view class="tool-name">收货地址</view>
  122. </view>
  123. <view class="tool-item" @click="authTo('/pages/set/userinfo')">
  124. <view class="tool-img"><image src="../../static/icon/gn7.png" mode=""></image></view>
  125. <view class="tool-name">设置</view>
  126. </view>
  127. </view>
  128. </view>
  129. <view class="" style="height: 100rpx;"></view>
  130. <uni-popup ref="popupkf" type="center">
  131. <view class="popup-box">
  132. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  133. <view class="mian">
  134. <view class="delivery">
  135. <view class="title">已经为您定制专属客服</view>
  136. <image src="../../static/img/img010.png" mode=""></image>
  137. </view>
  138. <view class="nocancel">客服VX:{{ text }}</view>
  139. <view class="comfirm-box">
  140. <view class="cancel" @click="cancel">取消</view>
  141. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  142. </view>
  143. </view>
  144. </view>
  145. </uni-popup>
  146. <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse" :isGoIndex="false"></authorize>
  147. <!-- #ifndef H5 -->
  148. <passwordPopup></passwordPopup>
  149. <!-- #endif -->
  150. </view>
  151. </template>
  152. <script>
  153. import { getMenuList, getUserInfo, setVisit } from '@/api/user.js';
  154. import { orderData } from '@/api/order.js';
  155. import { mapGetters } from 'vuex';
  156. import authorize from '@/components/Authorize';
  157. // #ifndef H5
  158. import passwordPopup from '@/components/passwordPopup';
  159. // #endif
  160. import { configMap } from '@/utils';
  161. import Auth from '../../libs/wechat';
  162. import { HTTP_REQUEST_URL } from '@/config/app';
  163. const app = getApp();
  164. export default {
  165. components: {
  166. // #ifndef H5
  167. passwordPopup,
  168. // #endif
  169. authorize
  170. },
  171. computed: configMap(
  172. {
  173. mer_intention_open: 0,
  174. hide_mer_status: 1,
  175. recharge_switch: 0,
  176. integral_status: 0,
  177. member_status: 0,
  178. balance_func_status: 0,
  179. copyright_status: '',
  180. copyright_image: '',
  181. copyright_context: ''
  182. },
  183. mapGetters(['isLogin', 'viewColor', 'keyColor'])
  184. ),
  185. data() {
  186. return {
  187. text: '15606861277', //客服微信
  188. domain: HTTP_REQUEST_URL,
  189. showSkeleton: true, //骨架屏显示隐藏
  190. isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
  191. orderMenu: [
  192. {
  193. img: '/static/diy/order1',
  194. title: '待付款',
  195. url: '/pages/users/order_list/index?status=0',
  196. num: 0
  197. },
  198. {
  199. img: '/static/diy/order2',
  200. title: '待发货',
  201. url: '/pages/users/order_list/index?status=1',
  202. num: 0
  203. },
  204. {
  205. img: '/static/diy/order3',
  206. title: '待收货',
  207. url: '/pages/users/order_list/index?status=2',
  208. num: 0
  209. },
  210. {
  211. img: '/static/diy/order4',
  212. title: '待评价',
  213. url: '/pages/users/order_list/index?status=3',
  214. num: 0
  215. },
  216. {
  217. img: '/static/diy/order5',
  218. title: '售后/退款',
  219. url: '/pages/users/refund/list',
  220. num: 0
  221. }
  222. ],
  223. imgUrls: [{ url: '', pic: '' }],
  224. userMenu: [],
  225. skeletonMenu: [],
  226. personalMenu: [
  227. { pic: '', name: '', isShow: true },
  228. { pic: '', name: '', isShow: true },
  229. { pic: '', name: '', isShow: true },
  230. { pic: '', name: '', isShow: true },
  231. { pic: '', name: '', isShow: true },
  232. { pic: '', name: '', isShow: true },
  233. { pic: '', name: '', isShow: true },
  234. { pic: '', name: '', isShow: true },
  235. { pic: '', name: '', isShow: true },
  236. { pic: '', name: '', isShow: true },
  237. { pic: '', name: '', isShow: true },
  238. { pic: '', name: '', isShow: true }
  239. ],
  240. autoplay: true,
  241. circular: true,
  242. interval: 3000,
  243. duration: 500,
  244. isAuto: false, //没有授权的不会自动授权
  245. isShowAuth: false, //是否隐藏授权
  246. orderStatusNum: {},
  247. userInfo: { aratar: '/static/f.png' },
  248. MyMenus: [],
  249. is_promoter: 0, //推广人开关 1开
  250. extension_status: 0
  251. };
  252. },
  253. onLoad() {
  254. setTimeout(() => {
  255. this.showSkeleton = false;
  256. }, 500);
  257. },
  258. onReady() {
  259. this.isNodes++;
  260. },
  261. mounted: function() {},
  262. onShow: function() {
  263. let that = this;
  264. if (that.isLogin) {
  265. this.getUserInfo();
  266. this.orderNum();
  267. } else {
  268. this.userInfo = {};
  269. this.orderMenu.forEach(v => {
  270. v.num = 0;
  271. });
  272. this.getMyMenus();
  273. }
  274. },
  275. methods: {
  276. authTo(url) {
  277. if (this.isLogin) {
  278. uni.navigateTo({
  279. url
  280. });
  281. } else {
  282. this.openAuto();
  283. }
  284. },
  285. toService(mer) {
  286. uni.navigateTo({
  287. url: '/pages/admin/business/index?is_sys=' + (mer ? '0' : '1')
  288. });
  289. },
  290. // 菜单显示
  291. filterMenus: function(item) {
  292. let that = this;
  293. if (item.url == '/pages/users/user_money/index') item.isShow = that.balance_func_status == 1;
  294. else if (item.url == '/pages/users/user_spread_user/index') {
  295. if (that.extension_status == 0) {
  296. item.isShow = false;
  297. } else if (that.extension_status == 1) {
  298. if (that.is_promoter == 1) {
  299. item.isShow = that.is_promoter == 1 && that.extension_status == 1;
  300. } else if (that.is_promoter == 0) {
  301. item.isShow = that.is_promoter == 0 && that.extension_status == 1;
  302. item.url = '/pages/users/distributor/index';
  303. }
  304. }
  305. } else if (item.url == '/pages/store/settled/index') item.isShow = that.mer_intention_open == 1 && that.hide_mer_status != 1;
  306. else if (item.url == '/pages/users/user_grade/index') item.isShow = that.member_status == 1;
  307. else if (item.url == '/pages/users/user_integral/index') item.isShow = that.integral_status == 1;
  308. else item.isShow = true;
  309. },
  310. showMenu(menu) {
  311. return !menu || ['integral', 'service', 'admin_order', 'verify_order', 'intention', 'promoter', 'balance'].indexOf(menu) === -1;
  312. },
  313. goUrl(url) {
  314. if (url.indexOf('http') != -1) {
  315. // #ifdef H5
  316. location.href = url;
  317. // #endif
  318. } else {
  319. if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index', '/pages/plant_grass/index'].indexOf(url) == -1) {
  320. uni.navigateTo({
  321. url: url
  322. });
  323. } else {
  324. uni.switchTab({
  325. url: url
  326. });
  327. }
  328. }
  329. },
  330. // 去聊天列表
  331. goChat() {
  332. let type = this.userInfo.service ? 1 : 0;
  333. uni.navigateTo({
  334. url: `/pages/chat/customer_list/index?type=${type}`
  335. });
  336. },
  337. // 记录会员访问
  338. setVisit() {
  339. setVisit({
  340. url: '/pages/user/index'
  341. }).then(res => {});
  342. },
  343. // 打开授权
  344. openAuto() {
  345. this.isAuto = true;
  346. this.isShowAuth = true;
  347. },
  348. // 授权回调
  349. onLoadFun() {
  350. this.getUserInfo();
  351. this.getMyMenus();
  352. this.orderNum();
  353. this.isShowAuth = false;
  354. },
  355. Setting: function() {
  356. uni.openSetting({
  357. success: function(res) {}
  358. });
  359. },
  360. // 授权关闭
  361. authColse: function(e) {
  362. this.isShowAuth = e;
  363. },
  364. // 绑定手机
  365. bindPhone() {
  366. uni.navigateTo({
  367. url: '/pages/users/user_phone/index'
  368. });
  369. },
  370. /**
  371. * 获取个人用户信息
  372. */
  373. getUserInfo: function() {
  374. let that = this;
  375. getUserInfo().then(res => {
  376. (that.userInfo = res.data), (that.is_promoter = res.data.is_promoter);
  377. that.extension_status = res.data.extension_status;
  378. that.getMyMenus();
  379. });
  380. },
  381. // 订单数字
  382. orderNum() {
  383. orderData().then(({ data }) => {
  384. this.orderMenu.forEach((item, index) => {
  385. console.log('item');
  386. switch (item.title) {
  387. case '待付款':
  388. item.num = data.noPay;
  389. break;
  390. case '待发货':
  391. item.num = data.noPostage;
  392. break;
  393. case '待收货':
  394. item.num = data.noDeliver;
  395. break;
  396. case '待评价':
  397. item.num = data.noComment;
  398. break;
  399. case '售后/退款':
  400. item.num = data.refund;
  401. break;
  402. }
  403. });
  404. });
  405. },
  406. /**
  407. *
  408. * 获取个人中心图标
  409. */
  410. getMyMenus: function() {
  411. let that = this;
  412. if (this.MyMenus.length) return;
  413. getMenuList().then(res => {
  414. that.personalMenu = [];
  415. res.data.menu.forEach((item, index) => {
  416. that.filterMenus(item);
  417. that.personalMenu.push(item);
  418. });
  419. that.imgUrls = res.data.banner;
  420. });
  421. },
  422. // 编辑页面
  423. goEdit() {
  424. if (this.isLogin) {
  425. uni.navigateTo({
  426. url: '/pages/users/user_info/index'
  427. });
  428. } else {
  429. this.openAuto();
  430. }
  431. },
  432. goSetting() {
  433. if (this.isLogin) {
  434. uni.navigateTo({
  435. url: '/pages/users/user_setting/index'
  436. });
  437. } else {
  438. this.openAuto();
  439. }
  440. },
  441. // 签到
  442. goSignIn() {
  443. uni.navigateTo({
  444. url: '/pages/users/user_sgin/index'
  445. });
  446. },
  447. // goMenuPage
  448. goMenuPage(url) {
  449. if (this.isLogin) {
  450. uni.navigateTo({
  451. url
  452. });
  453. } else {
  454. this.openAuto();
  455. }
  456. },
  457. // 复制客服微信
  458. comfirm(text) {
  459. console.log(text);
  460. const result = this.uniCopy(text);
  461. if (result === false) {
  462. uni.showToast({
  463. title: '不支持'
  464. });
  465. } else {
  466. uni.showToast({
  467. title: '复制成功',
  468. icon: 'none'
  469. });
  470. }
  471. this.$refs.popupkf.close();
  472. },
  473. // 打开客服
  474. openKf() {
  475. this.$refs.popupkf.open();
  476. },
  477. // 关闭客服
  478. cancel() {
  479. this.$refs.popupkf.close();
  480. }
  481. }
  482. };
  483. </script>
  484. <style lang="scss">
  485. %flex-center {
  486. display: flex;
  487. flex-direction: column;
  488. justify-content: center;
  489. align-items: center;
  490. }
  491. %section {
  492. display: flex;
  493. justify-content: space-around;
  494. align-content: center;
  495. background: #fff;
  496. border-radius: 10rpx;
  497. }
  498. .container,
  499. page {
  500. min-height: 100%;
  501. height: auto;
  502. background-color: $page-color-base;
  503. }
  504. .vheigh {
  505. height: var(--status-bar-height);
  506. background-color: $base-color;
  507. }
  508. .top-image {
  509. position: absolute;
  510. top: 0;
  511. left: 0;
  512. right: 0;
  513. height: 230rpx;
  514. image {
  515. width: 100%;
  516. height: 100%;
  517. }
  518. }
  519. .tool-list {
  520. width: 690rpx;
  521. margin: auto;
  522. margin-top: 20rpx;
  523. background: #ffffff;
  524. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  525. border-radius: 20rpx;
  526. }
  527. .popup-box {
  528. width: 522rpx;
  529. height: 605rpx;
  530. background-color: #ffffff;
  531. border-radius: 20rpx;
  532. position: relative;
  533. .img {
  534. position: relative;
  535. top: -56rpx;
  536. left: 0;
  537. width: 522rpx;
  538. height: 132rpx;
  539. display: flex;
  540. justify-content: center;
  541. image {
  542. border-radius: 20rpx 20rpx 0 0;
  543. width: 450rpx;
  544. height: 132rpx;
  545. }
  546. }
  547. .mian {
  548. margin-top: -44rpx;
  549. display: flex;
  550. flex-direction: column;
  551. align-items: center;
  552. // padding: 32rpx 32rpx;
  553. background-color: #ffffff;
  554. border-radius: 0 0 20rpx 20rpx;
  555. text-align: center;
  556. .delivery {
  557. font-size: 40rpx;
  558. color: #333333;
  559. display: flex;
  560. align-items: center;
  561. flex-direction: column;
  562. image {
  563. margin-top: 48rpx;
  564. width: 172rpx;
  565. height: 160rpx;
  566. }
  567. }
  568. .nocancel {
  569. font-size: 32rpx;
  570. color: #333333;
  571. margin-top: 14rpx;
  572. }
  573. .comfirm-box {
  574. margin-top: 52rpx;
  575. display: flex;
  576. // margin-bottom: 32rpx;
  577. // justify-content: space-around;
  578. .cancel {
  579. display: flex;
  580. align-items: center;
  581. justify-content: center;
  582. width: 197rpx;
  583. height: 74rpx;
  584. border: 1px solid #dcc786;
  585. border-radius: 38rpx;
  586. font-size: 32rpx;
  587. color: #605128;
  588. }
  589. .comfirm {
  590. margin-left: 32rpx;
  591. display: flex;
  592. align-items: center;
  593. justify-content: center;
  594. width: 197rpx;
  595. height: 74rpx;
  596. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  597. border-radius: 38px;
  598. font-size: 32rpx;
  599. color: #605128;
  600. }
  601. }
  602. }
  603. }
  604. .popup {
  605. width: 560rpx;
  606. padding-bottom: 45rpx;
  607. background-color: #ffffff;
  608. border-radius: 15rpx;
  609. text-align: center;
  610. line-height: 1;
  611. .popup-dox {
  612. position: relative;
  613. .popup-logo {
  614. margin: -160rpx auto 0;
  615. width: 400rpx;
  616. height: 200rpx;
  617. }
  618. }
  619. .popup-title {
  620. margin-top: 85rpx;
  621. font-size: 40rpx;
  622. font-family: PingFang SC;
  623. font-weight: bold;
  624. color: #2a2a2a;
  625. text {
  626. font-size: 56rpx;
  627. color: #e83f30;
  628. }
  629. }
  630. .popup-tip {
  631. margin-top: 20rpx;
  632. font-size: 28rpx;
  633. font-family: PingFang SC;
  634. font-weight: 500;
  635. color: #8c8c8c;
  636. text {
  637. color: #e83f30;
  638. }
  639. }
  640. .popup-btn {
  641. margin: 58rpx auto 0;
  642. width: 270rpx;
  643. height: 66rpx;
  644. background: #f0c838;
  645. border-radius: 34rpx;
  646. text-align: center;
  647. line-height: 66rpx;
  648. font-size: 36rpx;
  649. font-family: Source Han Sans CN;
  650. font-weight: 500;
  651. color: #ffffff;
  652. }
  653. }
  654. .user-wrap {
  655. position: relative;
  656. z-index: 10;
  657. width: 690rpx;
  658. height: 283rpx;
  659. background: #ffffff;
  660. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  661. border-radius: 20rpx;
  662. padding: 34rpx 0 40rpx;
  663. margin: auto;
  664. .info-left {
  665. padding-left: 34rpx;
  666. .user-name {
  667. display: flex;
  668. align-items: center;
  669. image {
  670. width: 120rpx;
  671. height: 120rpx;
  672. border-radius: 50%;
  673. }
  674. .user-font {
  675. padding-left: 34rpx;
  676. .name {
  677. width: 250rpx;
  678. font-size: 40rpx;
  679. font-family: Source Han Sans CN;
  680. font-weight: 400;
  681. color: #333333;
  682. }
  683. .phone {
  684. margin-top: 10rpx;
  685. font-size: 20rpx;
  686. font-family: PingFang SC;
  687. font-weight: 500;
  688. color: #999999;
  689. }
  690. }
  691. }
  692. .kpi {
  693. width: 178rpx;
  694. height: 60rpx;
  695. position: relative;
  696. image {
  697. position: absolute;
  698. top: 0;
  699. left: 0;
  700. width: 178rpx;
  701. height: 60rpx;
  702. }
  703. .user-level {
  704. position: absolute;
  705. top: 0;
  706. right: 0;
  707. height: 60rpx;
  708. line-height: 60rpx;
  709. width: 120rpx;
  710. // background-color: red;
  711. font-size: 28rpx;
  712. font-weight: 500;
  713. color: #93794b;
  714. text-align: right;
  715. padding-right: 24rpx;
  716. }
  717. }
  718. }
  719. .info-right {
  720. display: flex;
  721. align-items: center;
  722. margin-top: 54rpx;
  723. padding: 0 34rpx;
  724. .iright-icon {
  725. width: 32rpx;
  726. height: 32rpx;
  727. }
  728. .iright-font {
  729. margin-left: 12rpx;
  730. font-size: 28rpx;
  731. font-family: PingFang SC;
  732. font-weight: bold;
  733. color: #333333;
  734. }
  735. }
  736. }
  737. .user-set {
  738. justify-content: flex-end;
  739. height: 100rpx;
  740. view {
  741. flex-shrink: 0;
  742. }
  743. padding: 30rpx;
  744. image {
  745. height: 40rpx;
  746. width: 40rpx;
  747. }
  748. }
  749. .main-box {
  750. margin: 20rpx auto 0;
  751. width: 710rpx;
  752. background: #ffffff;
  753. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  754. border-radius: 20rpx;
  755. .title {
  756. display: flex;
  757. justify-content: space-between;
  758. align-items: center;
  759. padding: 24rpx;
  760. border-bottom: 1px solid #eeeeee;
  761. .title-left {
  762. display: flex;
  763. align-items: center;
  764. .title-icon {
  765. width: 32rpx;
  766. height: 32rpx;
  767. }
  768. .title-font {
  769. margin-left: 20rpx;
  770. font-size: 28rpx;
  771. font-family: PingFang SC;
  772. font-weight: bold;
  773. color: #333333;
  774. }
  775. }
  776. .title-right {
  777. width: 14rpx;
  778. height: 24rpx;
  779. }
  780. }
  781. .main {
  782. padding: 50rpx 0 30rpx;
  783. .jg {
  784. width: 1px;
  785. height: 100rpx;
  786. background: #eeeeee;
  787. }
  788. .item {
  789. padding-bottom: 20rpx;
  790. width: 25%;
  791. display: flex;
  792. flex-direction: column;
  793. align-items: center;
  794. .item-num {
  795. font-size: 36rpx;
  796. font-family: PingFang SC;
  797. font-weight: bold;
  798. color: #333333;
  799. }
  800. .item-font {
  801. margin-top: 18rpx;
  802. font-size: 22rpx;
  803. font-family: PingFang SC;
  804. font-weight: 500;
  805. color: #666666;
  806. }
  807. }
  808. .oitem {
  809. width: 25%;
  810. display: flex;
  811. flex-direction: column;
  812. align-items: center;
  813. .oitem-image {
  814. height: 50rpx;
  815. width: 48rpx;
  816. }
  817. .oitem-font {
  818. margin-top: 20rpx;
  819. font-size: 24rpx;
  820. font-family: PingFang SC;
  821. font-weight: 500;
  822. color: #333333;
  823. }
  824. }
  825. }
  826. }
  827. .gpai {
  828. width: 100rpx;
  829. line-height: 40rpx;
  830. border-radius: 25rpx;
  831. position: absolute;
  832. top: 120rpx;
  833. left: 40rpx;
  834. font-size: 24rpx;
  835. color: #c6914e;
  836. text-align: center;
  837. background-color: #f2d4ae;
  838. }
  839. .my-tools {
  840. width: 710rpx;
  841. // height: 418rpx;
  842. background: #ffffff;
  843. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  844. border-radius: 20rpx;
  845. margin: 20rpx auto;
  846. // background-color: red;
  847. .my-order {
  848. height: 73rpx;
  849. width: 100%;
  850. border-bottom: 2rpx solid #f5f5f5;
  851. display: flex;
  852. align-items: center;
  853. justify-content: flex-start;
  854. .order {
  855. font-size: 30rpx;
  856. font-family: PingFang SC;
  857. font-weight: bold;
  858. color: #333333;
  859. margin-left: 36rpx;
  860. margin-right: 520rpx;
  861. }
  862. image {
  863. width: 12rpx;
  864. height: 22rpx;
  865. }
  866. }
  867. .tool {
  868. flex-wrap: wrap;
  869. justify-content: flex-start;
  870. align-items: center;
  871. .tool-item {
  872. width: 25%;
  873. height: 160rpx;
  874. // background-color: #bfa;
  875. display: flex;
  876. align-items: center;
  877. flex-direction: column;
  878. justify-content: center;
  879. .tool-img {
  880. width: 42rpx;
  881. height: 42rpx;
  882. image {
  883. width: 100%;
  884. height: 100%;
  885. }
  886. }
  887. .tool-name {
  888. padding-top: 20rpx;
  889. font-size: 24rpx;
  890. font-family: PingFang SC;
  891. font-weight: 500;
  892. color: #333333;
  893. }
  894. }
  895. }
  896. }
  897. </style>