index.vue 23 KB

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