index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  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/promoter-list/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/users/user_goods_collection/index')">
  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/users/user_info/index')">
  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, mapMutations } 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. ...mapMutations(['UPDATE_USERINFO']),
  277. authTo(url) {
  278. if (this.isLogin) {
  279. uni.navigateTo({
  280. url
  281. });
  282. } else {
  283. this.openAuto();
  284. }
  285. },
  286. toService(mer) {
  287. uni.navigateTo({
  288. url: '/pages/admin/business/index?is_sys=' + (mer ? '0' : '1')
  289. });
  290. },
  291. // 菜单显示
  292. filterMenus: function(item) {
  293. let that = this;
  294. if (item.url == '/pages/users/user_money/index') item.isShow = that.balance_func_status == 1;
  295. else if (item.url == '/pages/users/user_spread_user/index') {
  296. if (that.extension_status == 0) {
  297. item.isShow = false;
  298. } else if (that.extension_status == 1) {
  299. if (that.is_promoter == 1) {
  300. item.isShow = that.is_promoter == 1 && that.extension_status == 1;
  301. } else if (that.is_promoter == 0) {
  302. item.isShow = that.is_promoter == 0 && that.extension_status == 1;
  303. item.url = '/pages/users/distributor/index';
  304. }
  305. }
  306. } else if (item.url == '/pages/store/settled/index') item.isShow = that.mer_intention_open == 1 && that.hide_mer_status != 1;
  307. else if (item.url == '/pages/users/user_grade/index') item.isShow = that.member_status == 1;
  308. else if (item.url == '/pages/users/user_integral/index') item.isShow = that.integral_status == 1;
  309. else item.isShow = true;
  310. },
  311. showMenu(menu) {
  312. return !menu || ['integral', 'service', 'admin_order', 'verify_order', 'intention', 'promoter', 'balance'].indexOf(menu) === -1;
  313. },
  314. goUrl(url) {
  315. if (url.indexOf('http') != -1) {
  316. // #ifdef H5
  317. location.href = url;
  318. // #endif
  319. } else {
  320. if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index', '/pages/plant_grass/index'].indexOf(url) == -1) {
  321. uni.navigateTo({
  322. url: url
  323. });
  324. } else {
  325. uni.switchTab({
  326. url: url
  327. });
  328. }
  329. }
  330. },
  331. // 去聊天列表
  332. goChat() {
  333. let type = this.userInfo.service ? 1 : 0;
  334. uni.navigateTo({
  335. url: `/pages/chat/customer_list/index?type=${type}`
  336. });
  337. },
  338. // 记录会员访问
  339. setVisit() {
  340. setVisit({
  341. url: '/pages/user/index'
  342. }).then(res => {});
  343. },
  344. // 打开授权
  345. openAuto() {
  346. this.isAuto = true;
  347. this.isShowAuth = true;
  348. },
  349. // 授权回调
  350. onLoadFun() {
  351. this.getUserInfo();
  352. this.getMyMenus();
  353. this.orderNum();
  354. this.isShowAuth = false;
  355. },
  356. Setting: function() {
  357. uni.openSetting({
  358. success: function(res) {}
  359. });
  360. },
  361. // 授权关闭
  362. authColse: function(e) {
  363. this.isShowAuth = e;
  364. },
  365. // 绑定手机
  366. bindPhone() {
  367. uni.navigateTo({
  368. url: '/pages/users/user_phone/index'
  369. });
  370. },
  371. /**
  372. * 获取个人用户信息
  373. */
  374. getUserInfo: function() {
  375. let that = this;
  376. getUserInfo().then(res => {
  377. this.UPDATE_USERINFO(res.data);
  378. (that.userInfo = res.data), (that.is_promoter = res.data.is_promoter);
  379. that.extension_status = res.data.extension_status;
  380. that.getMyMenus();
  381. });
  382. },
  383. // 订单数字
  384. orderNum() {
  385. orderData().then(({ data }) => {
  386. this.orderMenu.forEach((item, index) => {
  387. console.log('item');
  388. switch (item.title) {
  389. case '待付款':
  390. item.num = data.noPay;
  391. break;
  392. case '待发货':
  393. item.num = data.noPostage;
  394. break;
  395. case '待收货':
  396. item.num = data.noDeliver;
  397. break;
  398. case '待评价':
  399. item.num = data.noComment;
  400. break;
  401. case '售后/退款':
  402. item.num = data.refund;
  403. break;
  404. }
  405. });
  406. });
  407. },
  408. /**
  409. *
  410. * 获取个人中心图标
  411. */
  412. getMyMenus: function() {
  413. let that = this;
  414. if (this.MyMenus.length) return;
  415. getMenuList().then(res => {
  416. that.personalMenu = [];
  417. res.data.menu.forEach((item, index) => {
  418. that.filterMenus(item);
  419. that.personalMenu.push(item);
  420. });
  421. that.imgUrls = res.data.banner;
  422. });
  423. },
  424. // 编辑页面
  425. goEdit() {
  426. if (this.isLogin) {
  427. uni.navigateTo({
  428. url: '/pages/users/user_info/index'
  429. });
  430. } else {
  431. this.openAuto();
  432. }
  433. },
  434. goSetting() {
  435. if (this.isLogin) {
  436. uni.navigateTo({
  437. url: '/pages/users/user_setting/index'
  438. });
  439. } else {
  440. this.openAuto();
  441. }
  442. },
  443. // 签到
  444. goSignIn() {
  445. uni.navigateTo({
  446. url: '/pages/users/user_sgin/index'
  447. });
  448. },
  449. // goMenuPage
  450. goMenuPage(url) {
  451. if (this.isLogin) {
  452. uni.navigateTo({
  453. url
  454. });
  455. } else {
  456. this.openAuto();
  457. }
  458. },
  459. // 复制客服微信
  460. comfirm(text) {
  461. console.log(text);
  462. const result = this.uniCopy(text);
  463. if (result === false) {
  464. uni.showToast({
  465. title: '不支持'
  466. });
  467. } else {
  468. uni.showToast({
  469. title: '复制成功',
  470. icon: 'none'
  471. });
  472. }
  473. this.$refs.popupkf.close();
  474. },
  475. // 打开客服
  476. openKf() {
  477. this.$refs.popupkf.open();
  478. },
  479. // 关闭客服
  480. cancel() {
  481. this.$refs.popupkf.close();
  482. }
  483. }
  484. };
  485. </script>
  486. <style lang="scss">
  487. %flex-center {
  488. display: flex;
  489. flex-direction: column;
  490. justify-content: center;
  491. align-items: center;
  492. }
  493. %section {
  494. display: flex;
  495. justify-content: space-around;
  496. align-content: center;
  497. background: #fff;
  498. border-radius: 10rpx;
  499. }
  500. .container,
  501. page {
  502. min-height: 100%;
  503. height: auto;
  504. background-color: $page-color-base;
  505. }
  506. .vheigh {
  507. height: var(--status-bar-height);
  508. background-color: $base-color;
  509. }
  510. .top-image {
  511. position: absolute;
  512. top: 0;
  513. left: 0;
  514. right: 0;
  515. height: 230rpx;
  516. image {
  517. width: 100%;
  518. height: 100%;
  519. }
  520. }
  521. .tool-list {
  522. width: 690rpx;
  523. margin: auto;
  524. margin-top: 20rpx;
  525. background: #ffffff;
  526. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  527. border-radius: 20rpx;
  528. }
  529. .popup-box {
  530. width: 522rpx;
  531. height: 605rpx;
  532. background-color: #ffffff;
  533. border-radius: 20rpx;
  534. position: relative;
  535. .img {
  536. position: relative;
  537. top: -56rpx;
  538. left: 0;
  539. width: 522rpx;
  540. height: 132rpx;
  541. display: flex;
  542. justify-content: center;
  543. image {
  544. border-radius: 20rpx 20rpx 0 0;
  545. width: 450rpx;
  546. height: 132rpx;
  547. }
  548. }
  549. .mian {
  550. margin-top: -44rpx;
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. // padding: 32rpx 32rpx;
  555. background-color: #ffffff;
  556. border-radius: 0 0 20rpx 20rpx;
  557. text-align: center;
  558. .delivery {
  559. font-size: 40rpx;
  560. color: #333333;
  561. display: flex;
  562. align-items: center;
  563. flex-direction: column;
  564. image {
  565. margin-top: 48rpx;
  566. width: 172rpx;
  567. height: 160rpx;
  568. }
  569. }
  570. .nocancel {
  571. font-size: 32rpx;
  572. color: #333333;
  573. margin-top: 14rpx;
  574. }
  575. .comfirm-box {
  576. margin-top: 52rpx;
  577. display: flex;
  578. // margin-bottom: 32rpx;
  579. // justify-content: space-around;
  580. .cancel {
  581. display: flex;
  582. align-items: center;
  583. justify-content: center;
  584. width: 197rpx;
  585. height: 74rpx;
  586. border: 1px solid #dcc786;
  587. border-radius: 38rpx;
  588. font-size: 32rpx;
  589. color: #605128;
  590. }
  591. .comfirm {
  592. margin-left: 32rpx;
  593. display: flex;
  594. align-items: center;
  595. justify-content: center;
  596. width: 197rpx;
  597. height: 74rpx;
  598. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  599. border-radius: 38px;
  600. font-size: 32rpx;
  601. color: #605128;
  602. }
  603. }
  604. }
  605. }
  606. .popup {
  607. width: 560rpx;
  608. padding-bottom: 45rpx;
  609. background-color: #ffffff;
  610. border-radius: 15rpx;
  611. text-align: center;
  612. line-height: 1;
  613. .popup-dox {
  614. position: relative;
  615. .popup-logo {
  616. margin: -160rpx auto 0;
  617. width: 400rpx;
  618. height: 200rpx;
  619. }
  620. }
  621. .popup-title {
  622. margin-top: 85rpx;
  623. font-size: 40rpx;
  624. font-family: PingFang SC;
  625. font-weight: bold;
  626. color: #2a2a2a;
  627. text {
  628. font-size: 56rpx;
  629. color: #e83f30;
  630. }
  631. }
  632. .popup-tip {
  633. margin-top: 20rpx;
  634. font-size: 28rpx;
  635. font-family: PingFang SC;
  636. font-weight: 500;
  637. color: #8c8c8c;
  638. text {
  639. color: #e83f30;
  640. }
  641. }
  642. .popup-btn {
  643. margin: 58rpx auto 0;
  644. width: 270rpx;
  645. height: 66rpx;
  646. background: #f0c838;
  647. border-radius: 34rpx;
  648. text-align: center;
  649. line-height: 66rpx;
  650. font-size: 36rpx;
  651. font-family: Source Han Sans CN;
  652. font-weight: 500;
  653. color: #ffffff;
  654. }
  655. }
  656. .user-wrap {
  657. position: relative;
  658. z-index: 10;
  659. width: 690rpx;
  660. height: 283rpx;
  661. background: #ffffff;
  662. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  663. border-radius: 20rpx;
  664. padding: 34rpx 0 40rpx;
  665. margin: auto;
  666. .info-left {
  667. padding-left: 34rpx;
  668. .user-name {
  669. display: flex;
  670. align-items: center;
  671. image {
  672. width: 120rpx;
  673. height: 120rpx;
  674. border-radius: 50%;
  675. }
  676. .user-font {
  677. padding-left: 34rpx;
  678. .name {
  679. width: 250rpx;
  680. font-size: 40rpx;
  681. font-family: Source Han Sans CN;
  682. font-weight: 400;
  683. color: #333333;
  684. }
  685. .phone {
  686. margin-top: 10rpx;
  687. font-size: 20rpx;
  688. font-family: PingFang SC;
  689. font-weight: 500;
  690. color: #999999;
  691. }
  692. }
  693. }
  694. .kpi {
  695. width: 178rpx;
  696. height: 60rpx;
  697. position: relative;
  698. image {
  699. position: absolute;
  700. top: 0;
  701. left: 0;
  702. width: 178rpx;
  703. height: 60rpx;
  704. }
  705. .user-level {
  706. position: absolute;
  707. top: 0;
  708. right: 0;
  709. height: 60rpx;
  710. line-height: 60rpx;
  711. width: 120rpx;
  712. // background-color: red;
  713. font-size: 28rpx;
  714. font-weight: 500;
  715. color: #93794b;
  716. text-align: right;
  717. padding-right: 24rpx;
  718. }
  719. }
  720. }
  721. .info-right {
  722. display: flex;
  723. align-items: center;
  724. margin-top: 54rpx;
  725. padding: 0 34rpx;
  726. .iright-icon {
  727. width: 32rpx;
  728. height: 32rpx;
  729. }
  730. .iright-font {
  731. margin-left: 12rpx;
  732. font-size: 28rpx;
  733. font-family: PingFang SC;
  734. font-weight: bold;
  735. color: #333333;
  736. }
  737. }
  738. }
  739. .user-set {
  740. justify-content: flex-end;
  741. height: 100rpx;
  742. view {
  743. flex-shrink: 0;
  744. }
  745. padding: 30rpx;
  746. image {
  747. height: 40rpx;
  748. width: 40rpx;
  749. }
  750. }
  751. .main-box {
  752. margin: 20rpx auto 0;
  753. width: 710rpx;
  754. background: #ffffff;
  755. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  756. border-radius: 20rpx;
  757. .title {
  758. display: flex;
  759. justify-content: space-between;
  760. align-items: center;
  761. padding: 24rpx;
  762. border-bottom: 1px solid #eeeeee;
  763. .title-left {
  764. display: flex;
  765. align-items: center;
  766. .title-icon {
  767. width: 32rpx;
  768. height: 32rpx;
  769. }
  770. .title-font {
  771. margin-left: 20rpx;
  772. font-size: 28rpx;
  773. font-family: PingFang SC;
  774. font-weight: bold;
  775. color: #333333;
  776. }
  777. }
  778. .title-right {
  779. width: 14rpx;
  780. height: 24rpx;
  781. }
  782. }
  783. .main {
  784. padding: 50rpx 0 30rpx;
  785. .jg {
  786. width: 1px;
  787. height: 100rpx;
  788. background: #eeeeee;
  789. }
  790. .item {
  791. padding-bottom: 20rpx;
  792. width: 25%;
  793. display: flex;
  794. flex-direction: column;
  795. align-items: center;
  796. .item-num {
  797. font-size: 36rpx;
  798. font-family: PingFang SC;
  799. font-weight: bold;
  800. color: #333333;
  801. }
  802. .item-font {
  803. margin-top: 18rpx;
  804. font-size: 22rpx;
  805. font-family: PingFang SC;
  806. font-weight: 500;
  807. color: #666666;
  808. }
  809. }
  810. .oitem {
  811. width: 25%;
  812. display: flex;
  813. flex-direction: column;
  814. align-items: center;
  815. .oitem-image {
  816. height: 50rpx;
  817. width: 48rpx;
  818. }
  819. .oitem-font {
  820. margin-top: 20rpx;
  821. font-size: 24rpx;
  822. font-family: PingFang SC;
  823. font-weight: 500;
  824. color: #333333;
  825. }
  826. }
  827. }
  828. }
  829. .gpai {
  830. width: 100rpx;
  831. line-height: 40rpx;
  832. border-radius: 25rpx;
  833. position: absolute;
  834. top: 120rpx;
  835. left: 40rpx;
  836. font-size: 24rpx;
  837. color: #c6914e;
  838. text-align: center;
  839. background-color: #f2d4ae;
  840. }
  841. .my-tools {
  842. width: 710rpx;
  843. // height: 418rpx;
  844. background: #ffffff;
  845. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  846. border-radius: 20rpx;
  847. margin: 20rpx auto;
  848. // background-color: red;
  849. .my-order {
  850. height: 73rpx;
  851. width: 100%;
  852. border-bottom: 2rpx solid #f5f5f5;
  853. display: flex;
  854. align-items: center;
  855. justify-content: flex-start;
  856. .order {
  857. font-size: 30rpx;
  858. font-family: PingFang SC;
  859. font-weight: bold;
  860. color: #333333;
  861. margin-left: 36rpx;
  862. margin-right: 520rpx;
  863. }
  864. image {
  865. width: 12rpx;
  866. height: 22rpx;
  867. }
  868. }
  869. .tool {
  870. flex-wrap: wrap;
  871. justify-content: flex-start;
  872. align-items: center;
  873. .tool-item {
  874. width: 25%;
  875. height: 160rpx;
  876. // background-color: #bfa;
  877. display: flex;
  878. align-items: center;
  879. flex-direction: column;
  880. justify-content: center;
  881. .tool-img {
  882. width: 42rpx;
  883. height: 42rpx;
  884. image {
  885. width: 100%;
  886. height: 100%;
  887. }
  888. }
  889. .tool-name {
  890. padding-top: 20rpx;
  891. font-size: 24rpx;
  892. font-family: PingFang SC;
  893. font-weight: 500;
  894. color: #333333;
  895. }
  896. }
  897. }
  898. }
  899. </style>