user.vue 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="top-image">
  5. <image src="../../static/icon/user-top.png" mode=""></image>
  6. </view>
  7. <view class="" style="height: 100rpx;"></view>
  8. <view class="user-box">
  9. <view class="user-info flex">
  10. <image class="avatar" :src="userInfo.avatar" mode="" v-if="userInfo.avatar"
  11. @click="navTo('/pages/set/userinfo')"></image>
  12. <image class="avatar" src="../../static/error/missing-face.png" mode="" v-else
  13. @click="navTo('/pages/set/userinfo')"></image>
  14. <view class="user-name-id">
  15. <view class="user-name clamp2">{{ userInfo.nickname || '游客'}}</view>
  16. <view class="user-id" v-if="userInfo && userInfo.uid">
  17. UID: {{userInfo.uid}}
  18. </view>
  19. <view class="user-shop flex" v-if="userInfo.uid">
  20. <view class="user-shop-item" v-if="userInfo.level> 0 " style="width: 180rpx;">
  21. <image class="user-shop-icon" :src="showLevel(userInfo.level)" mode=""
  22. style="width: 180rpx;"></image>
  23. <!-- <view class="user-shopname" style="padding-left: 70rpx;">
  24. {{userInfo.level_name}}
  25. </view> -->
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="user-money flex">
  31. <view class="user-money-item" @click="navTo('/pages/user/yue')">
  32. <view class="user-money-num">{{ userInfo.now_money*1 || 0 }}</view>
  33. <view class="user-money-font"> 我的余额</view>
  34. </view>
  35. <view class="user-xian"></view>
  36. <view class="user-money-item" @click="navTo('/pages/user/award')">
  37. <view class="user-money-num">{{ userInfo.brokerage_price*1 || 0 }}</view>
  38. <view class="user-money-font">我的佣金</view>
  39. </view>
  40. <view class="user-xian"></view>
  41. <view class="user-money-item" @click="navTo('/pages/user/jf')">
  42. <view class="user-money-num">{{ userInfo.contribute*1 || 0 }}</view>
  43. <view class="user-money-font">我的贡献值</view>
  44. </view>
  45. <template v-if="userInfo.uid && userInfo.adminid" @click="navTo('/pages/user/jf')">
  46. <!-- <template > -->
  47. <view class="user-xian"></view>
  48. <view class="user-money-item" @click="navTo('/pages/user/jhz')">
  49. <view class="user-money-num">{{ userInfo.month_performance || 0 }}</view>
  50. <view class="user-money-font">进货额</view>
  51. </view>
  52. </template>
  53. </view>
  54. </view>
  55. <!-- -->
  56. <view class="main-box">
  57. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  58. <view class="title-left">
  59. <view class="title-font">我的订单</view>
  60. </view>
  61. <image class="title-right" src="../../static/icon/back.png" mode=""></image>
  62. </view>
  63. <view class="main flex">
  64. <view class="oitem" @click="navTo('/pages/order/order?state=0')">
  65. <image class="oitem-image" src="../../static/icon/o1.png" mode=""></image>
  66. <view class="oitem-font">待付款</view>
  67. </view>
  68. <view class="oitem" @click="navTo('/pages/order/order?state=1')">
  69. <image class="oitem-image" src="../../static/icon/o2.png" mode=""></image>
  70. <view class="oitem-font">待发货</view>
  71. </view>
  72. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  73. <image class="oitem-image" src="../../static/icon/o3.png" mode=""></image>
  74. <view class="oitem-font">待收货</view>
  75. </view>
  76. <view class="oitem" @click="navTo('/pages/order/order?state=3')">
  77. <image class="oitem-image" src="../../static/icon/o4.png" mode=""></image>
  78. <view class="oitem-font">已完成</view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="user-list flex" @click="smsh" v-if="userInfo && userInfo.uid && userInfo.adminid">
  83. <image src="../../static/icon/scend.png" mode="" class="left-img"></image>
  84. <view class="">
  85. 扫码核销
  86. </view>
  87. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  88. </view>
  89. <view class="user-list flex" @click="gorz" v-if="userInfo && userInfo.uid && userInfo.is_real != 2">
  90. <image src="../../static/icon/u1.png" mode="" class="left-img"></image>
  91. <view class="">
  92. 实名认证
  93. </view>
  94. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  95. </view>
  96. <!-- <view class="user-list flex" @click="navTo('/pages/user/sqdl')">
  97. <image src="../../static/icon/u2.png" mode="" class="left-img"></image>
  98. <view class="">
  99. 银行卡绑定
  100. </view>
  101. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  102. </view> -->
  103. <view class="user-list flex" @click="navTo('/pages/user/userCard')">
  104. <image src="../../static/icon/u2.png" mode="" class="left-img"></image>
  105. <view class="">
  106. 我的卡券
  107. </view>
  108. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  109. </view>
  110. <view class="user-list flex" @click="navTo('/pages/user/shareQrCode')">
  111. <image src="../../static/icon/u3.png" mode="" class="left-img"></image>
  112. <view class="">
  113. 推广海报
  114. </view>
  115. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  116. </view>
  117. <view class="user-list flex" @click="navTo('/pages/user/team')">
  118. <image src="../../static/icon/gn1.png" mode="" class="left-img"></image>
  119. <view class="">
  120. 我的推广
  121. </view>
  122. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  123. </view>
  124. <view class="user-list flex" @click="navTo('/pages/set/address')">
  125. <image src="../../static/icon/u4.png" mode="" class="left-img"></image>
  126. <view class="">
  127. 收货地址
  128. </view>
  129. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  130. </view>
  131. <view class="user-list flex" @click="openKf()">
  132. <image src="../../static/icon/u5.png" mode="" class="left-img"></image>
  133. <view class="">
  134. 客服
  135. </view>
  136. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  137. </view>
  138. <view class="user-list flex" @click="navTo('/pages/set/set')">
  139. <image src="../../static/icon/u6.png" mode="" class="left-img"></image>
  140. <view class="">
  141. 设置
  142. </view>
  143. <image src="../../static/icon/back.png" mode="" class="right-img"></image>
  144. </view>
  145. <view class="" style="height: 20rpx;">
  146. </view>
  147. <uni-popup ref="popupkf" type="center">
  148. <view class="popup-box">
  149. <view class="img">
  150. <image src="../../static/img/img009.png" mode=""></image>
  151. </view>
  152. <view class="mian">
  153. <view class="delivery">
  154. <view class="title">已经为您定制专属客服</view>
  155. <image src="../../static/img/img010.png" mode=""></image>
  156. </view>
  157. <view class="nocancel">客服VX:{{ text }}</view>
  158. <view class="comfirm-box">
  159. <view class="cancel" @click="cancel">取消</view>
  160. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  161. </view>
  162. </view>
  163. </view>
  164. </uni-popup>
  165. <!-- 核销弹窗 -->
  166. <uni-popup ref="popuphx" class="agree-wrapper">
  167. <view class="hx-wrapper">
  168. <view class="hx-img">
  169. <image src="../../static/img/hxbg.png" mode=""></image>
  170. </view>
  171. <view class="hx-body">
  172. <view class="hx-title">
  173. 扫码核销
  174. </view>
  175. <input type="text" v-model="hxcode" placeholder="请输入核销码" placeholder-class="hx-placeholder" />
  176. <view class="hx-btn" @click="qhx">
  177. 立即核销
  178. </view>
  179. </view>
  180. <view class="hx-close" @click="close">
  181. <image src="../../static/icon/close.png" mode=""></image>
  182. </view>
  183. </view>
  184. </uni-popup>
  185. </view>
  186. </template>
  187. <script>
  188. import {
  189. orderVerific
  190. } from '@/api/index.js'
  191. import {
  192. toScanCode
  193. } from '@/components/scan.js'
  194. // #ifdef H5
  195. import weixinObj from "@/plugin/jweixin-module/index.js";
  196. // #endif
  197. import {
  198. mapState,
  199. mapMutations
  200. } from 'vuex';
  201. import uniList from '@/components/uni-list/uni-list.vue';
  202. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  203. import {
  204. orderData,
  205. getUserInfo,
  206. check,
  207. getLevelList,
  208. goHx
  209. } from '@/api/user.js';
  210. import {
  211. saveUrl,
  212. interceptor
  213. } from '@/utils/loginUtils.js';
  214. let startY = 0,
  215. moveY = 0,
  216. pageAtTop = true;
  217. export default {
  218. components: {
  219. uniList,
  220. uniListItem
  221. },
  222. data() {
  223. return {
  224. jhe: 0,//进货额
  225. listList: [], //等级列表
  226. current: 2,
  227. id: '', //是否已签到
  228. store_name: '',
  229. achievement: '',
  230. code: '',
  231. levelList: [],
  232. text: '', //客服微信
  233. hxcode: '', //核销码
  234. hxLoading: false
  235. };
  236. },
  237. onShow() {
  238. // 判断是否已经登录
  239. // if (this.hasLogin) {
  240. // this.loadBaseData();
  241. // }
  242. this.loadBaseData();
  243. },
  244. filters: {
  245. phone(e) {
  246. var subStr1 = e.substr(0, 3);
  247. var subStr2 = e.substr(e.length - 4, 4);
  248. var subStr = subStr1 + '...' + subStr2;
  249. e = subStr;
  250. return e;
  251. }
  252. },
  253. onReady() {
  254. // 初始化获取页面宽度
  255. uni.createSelectorQuery()
  256. .select('.container')
  257. .fields({
  258. size: true
  259. },
  260. data => {
  261. // 计算最多下拉的高度
  262. this.userDowm = Math.floor((data.width / 750) * 185);
  263. // 计算最大触发修改高度事件
  264. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  265. }
  266. )
  267. .exec();
  268. },
  269. computed: {
  270. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  271. },
  272. methods: {
  273. ...mapMutations('user', ['setUserInfo']),
  274. getLevelList() {
  275. getLevelList().then(res => {
  276. console.log(res);
  277. this.listList = res.data.list
  278. })
  279. },
  280. showLevel(val) {
  281. let data = this.listList.find(item => item.grade == val)
  282. console.log(data);
  283. if (data) {
  284. return data.icon
  285. } else {
  286. return ''
  287. }
  288. },
  289. close() {
  290. this.hxcode = ''
  291. this.$refs.popuphx.close()
  292. },
  293. qhx() {
  294. let that = this
  295. if (that.hxLoading) {
  296. return
  297. }
  298. if (that.hxcode == '') {
  299. return that.$api.msg('请输入核销码')
  300. }
  301. that.hxLoading = true
  302. goHx({
  303. verify_code: that.hxcode,
  304. }).then(res => {
  305. uni.showToast({
  306. title: '核销成功',
  307. mask: true,
  308. duration: 1500
  309. });
  310. that.close()
  311. that.hxLoading = false
  312. }).catch(err => [
  313. that.hxLoading = false
  314. ])
  315. },
  316. // 扫码
  317. smsh() {
  318. let that = this
  319. // #ifdef H5
  320. try {
  321. weixinObj.scanQRCode({
  322. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  323. scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
  324. success: function(res) {
  325. that.hxcode = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
  326. that.$refs.popuphx.open()
  327. }
  328. });
  329. } catch (err) {
  330. that.$refs.popuphx.open()
  331. }
  332. // #endif
  333. // #ifndef H5
  334. uni.scanCode({
  335. success: (res) => {
  336. this.hxcode = res.result
  337. this.$refs.popuphx.open()
  338. }
  339. })
  340. // #endif
  341. },
  342. gorz() {
  343. if (!this.hasLogin) {
  344. saveUrl();
  345. interceptor();
  346. } else {
  347. // uni.navigateTo({
  348. // url
  349. // });
  350. if (this.userInfo.is_real == 0) {
  351. this.navTo('/pages/user/smrz')
  352. } else if (this.userInfo.is_real == 1) {
  353. uni.showModal({
  354. title: "提示",
  355. content: '您提交的资料正在审核中,请耐心等待审核'
  356. })
  357. }
  358. }
  359. },
  360. sqdl() {
  361. if (this.hasLogin) {
  362. if (this.userInfo.enroll_status == 1) {
  363. uni.showModal({
  364. title: "提示",
  365. content: '您提交的申请正在审核中,请耐心等待审核'
  366. })
  367. } else {
  368. this.navTo('/pages/user/sqdl')
  369. }
  370. } else {
  371. this.navTo('/pages/user/sqdl')
  372. }
  373. },
  374. sao() {
  375. let obj = this;
  376. // #ifndef H5
  377. uni.scanCode({
  378. success(e) {
  379. obj.code = e.result;
  380. obj.$refs.popuphx.open();
  381. console.log(obj.$refs.popuphx);
  382. }
  383. });
  384. // #endif
  385. },
  386. comfirm(text) {
  387. console.log(text);
  388. const result = this.uniCopy(text);
  389. if (result === false) {
  390. uni.showToast({
  391. title: '不支持'
  392. });
  393. } else {
  394. uni.showToast({
  395. title: '复制成功',
  396. icon: 'none'
  397. });
  398. }
  399. this.$refs.popupkf.close();
  400. },
  401. uniCopy(content) {
  402. /**
  403. * 小程序端 和 app端的复制逻辑
  404. */
  405. //#ifndef H5
  406. uni.setClipboardData({
  407. data: content,
  408. success: function() {
  409. console.log('success');
  410. return true;
  411. }
  412. });
  413. //#endif
  414. /**
  415. * H5端的复制逻辑
  416. */
  417. // #ifdef H5
  418. if (!document.queryCommandSupported('copy')) {
  419. //为了兼容有些浏览器 queryCommandSupported 的判断
  420. // 不支持
  421. return false;
  422. }
  423. let textarea = document.createElement('textarea');
  424. textarea.value = content;
  425. textarea.readOnly = 'readOnly';
  426. document.body.appendChild(textarea);
  427. textarea.select(); // 选择对象
  428. textarea.setSelectionRange(0, content.length); //核心
  429. let result = document.execCommand('copy'); // 执行浏览器复制命令
  430. textarea.remove();
  431. return result;
  432. // #endif
  433. },
  434. // 加载初始数据
  435. loadBaseData() {
  436. const obj = this
  437. getUserInfo({})
  438. .then(({
  439. data
  440. }) => {
  441. obj.setUserInfo(data);
  442. obj.getLevelList()
  443. })
  444. .catch(e => {
  445. console.log(e);
  446. });
  447. },
  448. /**
  449. * 统一跳转接口,拦截未登录路由
  450. * navigator标签现在默认没有转场动画,所以用view
  451. */
  452. navTo(url) {
  453. console.log(url);
  454. if (!this.hasLogin) {
  455. // 保存地址
  456. saveUrl();
  457. // 登录拦截
  458. interceptor();
  459. } else {
  460. uni.navigateTo({
  461. url
  462. });
  463. }
  464. },
  465. close() {
  466. this.$refs.popuphx.close();
  467. this.code = '';
  468. },
  469. // 打开客服
  470. openKf() {
  471. this.$refs.popupkf.open();
  472. },
  473. // 关闭客服
  474. cancel() {
  475. this.$refs.popupkf.close();
  476. },
  477. // 打开绑定
  478. open() {
  479. this.$refs.gspass.open();
  480. },
  481. cast() {
  482. set_waiter({
  483. uid: this.id
  484. })
  485. .then(e => {
  486. this.$api.msg('绑定成功');
  487. this.$refs.gspass.close();
  488. this.id = '';
  489. })
  490. .catch(err => {
  491. this.$refs.gspass.close();
  492. this.id = '';
  493. });
  494. },
  495. cancelpass() {
  496. this.$refs.gspass.close();
  497. this.id = '';
  498. }
  499. }
  500. };
  501. </script>
  502. <style lang="scss">
  503. %flex-center {
  504. display: flex;
  505. flex-direction: column;
  506. justify-content: center;
  507. align-items: center;
  508. }
  509. %section {
  510. display: flex;
  511. justify-content: space-around;
  512. align-content: center;
  513. background: #fff;
  514. border-radius: 10rpx;
  515. }
  516. .container,
  517. page {
  518. min-height: 100%;
  519. height: auto;
  520. background-color: $page-color-base;
  521. }
  522. .vheigh {
  523. height: var(--status-bar-height);
  524. background-color: $base-color;
  525. }
  526. .top-image {
  527. position: absolute;
  528. top: 0;
  529. left: 0;
  530. right: 0;
  531. height: 228rpx;
  532. image {
  533. width: 100%;
  534. height: 100%;
  535. }
  536. }
  537. .popup-box {
  538. width: 522rpx;
  539. height: 605rpx;
  540. background-color: #ffffff;
  541. border-radius: 20rpx;
  542. position: relative;
  543. .img {
  544. position: relative;
  545. top: -56rpx;
  546. left: 0;
  547. width: 522rpx;
  548. height: 132rpx;
  549. display: flex;
  550. justify-content: center;
  551. image {
  552. border-radius: 20rpx 20rpx 0 0;
  553. width: 450rpx;
  554. height: 132rpx;
  555. }
  556. }
  557. .mian {
  558. margin-top: -44rpx;
  559. display: flex;
  560. flex-direction: column;
  561. align-items: center;
  562. // padding: 32rpx 32rpx;
  563. background-color: #ffffff;
  564. border-radius: 0 0 20rpx 20rpx;
  565. text-align: center;
  566. .delivery {
  567. font-size: 40rpx;
  568. color: #333333;
  569. display: flex;
  570. align-items: center;
  571. flex-direction: column;
  572. image {
  573. margin-top: 48rpx;
  574. width: 172rpx;
  575. height: 160rpx;
  576. }
  577. }
  578. .nocancel {
  579. font-size: 32rpx;
  580. color: #333333;
  581. margin-top: 14rpx;
  582. }
  583. .comfirm-box {
  584. margin-top: 52rpx;
  585. display: flex;
  586. // margin-bottom: 32rpx;
  587. // justify-content: space-around;
  588. .cancel {
  589. display: flex;
  590. align-items: center;
  591. justify-content: center;
  592. width: 197rpx;
  593. height: 74rpx;
  594. border: 1px solid #dcc786;
  595. border-radius: 38rpx;
  596. font-size: 32rpx;
  597. color: #605128;
  598. }
  599. .comfirm {
  600. margin-left: 32rpx;
  601. display: flex;
  602. align-items: center;
  603. justify-content: center;
  604. width: 197rpx;
  605. height: 74rpx;
  606. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  607. border-radius: 38px;
  608. font-size: 32rpx;
  609. color: #605128;
  610. }
  611. }
  612. }
  613. }
  614. .user-box {
  615. position: relative;
  616. z-index: 2;
  617. width: 690rpx;
  618. margin: 0 auto;
  619. /* #ifdef MP-WEIXIN */
  620. margin: -100rpx auto 0;
  621. /* #endif */
  622. background: #ffffff;
  623. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  624. border-radius: 20rpx;
  625. display: flex;
  626. flex-direction: column;
  627. align-items: center;
  628. padding: 54rpx 0 30rpx;
  629. line-height: 1;
  630. position: relative;
  631. .u-set {
  632. position: absolute;
  633. top: 85rpx;
  634. right: 40rpx;
  635. width: 44rpx;
  636. height: 44rpx;
  637. }
  638. .user-info {
  639. flex-direction: column;
  640. justify-content: flex-start;
  641. width: 100%;
  642. padding-left: 40rpx;
  643. .avatar {
  644. border-radius: 50%;
  645. width: 132rpx;
  646. height: 132rpx;
  647. background-color: #eee;
  648. margin-right: 18rpx;
  649. }
  650. .user-uid {
  651. padding-top: 10rpx;
  652. font-size: 24rpx;
  653. font-weight: 500;
  654. color: #666666;
  655. }
  656. }
  657. .user-name {
  658. text-align: center;
  659. width: 300rpx;
  660. margin-top: 14rpx;
  661. // font-size: 30rpx;
  662. font-size: $ltl-size-big;
  663. font-family: PingFang SC;
  664. font-weight: bold;
  665. color: #333333;
  666. }
  667. .user-id {
  668. text-align: center;
  669. font-size: 28rpx;
  670. padding: 10rpx 0;
  671. }
  672. .user-shop {
  673. margin-top: 10rpx;
  674. display: flex;
  675. justify-content: flex-start;
  676. align-items: center;
  677. .user-shop-item {
  678. position: relative;
  679. margin: 0 auto;
  680. width: 180rpx;
  681. height: 55rpx;
  682. .user-shop-icon {
  683. position: absolute;
  684. top: 0;
  685. left: 0;
  686. right: 0;
  687. width: 180rpx;
  688. height: 55rpx;
  689. }
  690. .user-shopname {
  691. padding-left: 60rpx;
  692. position: relative;
  693. z-index: 2;
  694. font-size: 30rpx;
  695. font-weight: 500;
  696. color: #977843;
  697. line-height: 55rpx;
  698. text-align: left;
  699. }
  700. }
  701. }
  702. }
  703. .main-box {
  704. margin: 20rpx auto 0;
  705. width: 710rpx;
  706. background: #ffffff;
  707. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  708. border-radius: 20rpx;
  709. .title {
  710. display: flex;
  711. justify-content: space-between;
  712. align-items: center;
  713. padding: 24rpx;
  714. border-bottom: 1px solid #eeeeee;
  715. .title-left {
  716. display: flex;
  717. align-items: center;
  718. .title-icon {
  719. width: 32rpx;
  720. height: 32rpx;
  721. }
  722. .title-font {
  723. margin-left: 20rpx;
  724. font-size: 30rpx;
  725. font-family: PingFang SC;
  726. font-weight: bold;
  727. color: #333333;
  728. }
  729. }
  730. .title-right {
  731. width: 14rpx;
  732. height: 24rpx;
  733. }
  734. }
  735. .main {
  736. padding: 50rpx 0 30rpx;
  737. .jg {
  738. width: 1px;
  739. height: 100rpx;
  740. background: #eeeeee;
  741. }
  742. .item {
  743. padding-bottom: 20rpx;
  744. width: 25%;
  745. display: flex;
  746. flex-direction: column;
  747. align-items: center;
  748. .item-num {
  749. font-size: 36rpx;
  750. font-family: PingFang SC;
  751. font-weight: bold;
  752. color: #333333;
  753. }
  754. .item-font {
  755. margin-top: 18rpx;
  756. font-size: 22rpx;
  757. font-family: PingFang SC;
  758. font-weight: 500;
  759. color: #666666;
  760. }
  761. }
  762. .oitem {
  763. width: 33%;
  764. display: flex;
  765. flex-direction: column;
  766. align-items: center;
  767. .oitem-image {
  768. height: 40rpx;
  769. width: 42rpx;
  770. }
  771. .oitem-font {
  772. margin-top: 20rpx;
  773. font-size: 24rpx;
  774. font-family: PingFang SC;
  775. font-weight: 500;
  776. color: #333333;
  777. }
  778. }
  779. }
  780. }
  781. .tool-list {
  782. width: 690rpx;
  783. margin: 20rpx auto 0;
  784. background: #ffffff;
  785. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  786. border-radius: 20rpx;
  787. }
  788. .psw-wrapper {
  789. width: 548rpx;
  790. padding: 20rpx 0;
  791. background-color: #ffffff;
  792. border-radius: 15rpx 15rpx;
  793. .psw-title {
  794. width: 100%;
  795. font-size: 35rpx;
  796. padding: 0 0 40rpx;
  797. text-align: center;
  798. font-weight: 800;
  799. }
  800. .psw-content {
  801. width: 100%;
  802. font-size: 32rpx;
  803. text-align: center;
  804. }
  805. .psw-price {
  806. font-weight: bold;
  807. font-size: 68rpx;
  808. text-align: center;
  809. padding-top: 10rpx;
  810. }
  811. .psw-jg {
  812. height: 1px;
  813. width: 500rpx;
  814. background-color: #eee;
  815. margin: auto;
  816. }
  817. .psw-paytype {
  818. justify-content: space-between;
  819. padding: 10rpx 25rpx 30rpx;
  820. font-size: 26rpx;
  821. }
  822. .psw-ipt {
  823. display: block;
  824. background-color: #dce3ed;
  825. height: 90rpx;
  826. width: 464rpx;
  827. padding-left: 30rpx;
  828. margin: 0 auto;
  829. font-size: 80rpx;
  830. }
  831. .psw-btn text {
  832. display: inline-block;
  833. text-align: center;
  834. width: 50%;
  835. padding-top: 29rpx;
  836. font-size: 35rpx;
  837. }
  838. .psw-qd {
  839. color: #ff4c4c;
  840. }
  841. }
  842. .hx-wrapper {
  843. width: 536rpx;
  844. height: 630rpx;
  845. position: relative;
  846. // background-color: #fff;
  847. .hx-img {
  848. width: 536rpx;
  849. height: 281rpx;
  850. image {
  851. width: 536rpx;
  852. height: 281rpx;
  853. }
  854. }
  855. .hx-close {
  856. position: absolute;
  857. left: 243rpx;
  858. bottom: -80rpx;
  859. width: 52rpx;
  860. height: 52rpx;
  861. image {
  862. width: 52rpx;
  863. height: 52rpx;
  864. }
  865. }
  866. .hx-body {
  867. width: 536rpx;
  868. height: 349rpx;
  869. background-color: #fff;
  870. border-radius: 0 0 10rpx 10rpx;
  871. .hx-title {
  872. width: 536rpx;
  873. font-size: 36rpx;
  874. font-weight: 500;
  875. color: #333333;
  876. line-height: 1;
  877. padding-top: 42rpx;
  878. text-align: center;
  879. }
  880. input {
  881. width: 439rpx;
  882. height: 68rpx;
  883. background: #dbf3e9;
  884. border-radius: 10rpx;
  885. margin: 39rpx auto 0;
  886. padding-left: 26rpx;
  887. .hx-placeholder {
  888. font-size: 26rpx;
  889. font-weight: 500;
  890. color: #ff4c4c;
  891. }
  892. }
  893. .hx-btn {
  894. margin: 44rpx auto 0;
  895. width: 353rpx;
  896. height: 71rpx;
  897. background: $base-color;
  898. border-radius: 34rpx;
  899. font-size: 36rpx;
  900. font-weight: 500;
  901. color: #f8f9f9;
  902. line-height: 71rpx;
  903. text-align: center;
  904. }
  905. }
  906. }
  907. .user-list {
  908. width: 691rpx;
  909. height: 104rpx;
  910. background: #FFFFFF;
  911. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  912. border-radius: 28rpx;
  913. margin: 20rpx auto;
  914. padding: 0 25rpx;
  915. .left-img {
  916. width: 40rpx;
  917. height: 40rpx;
  918. }
  919. view {
  920. padding-left: 20rpx;
  921. flex-grow: 1;
  922. font-size: 29rpx;
  923. font-weight: bold;
  924. color: #5D5D5D;
  925. }
  926. .right-img {
  927. width: 13rpx;
  928. height: 23rpx;
  929. }
  930. }
  931. .sqdl {
  932. display: block;
  933. width: 689rpx;
  934. margin: 20rpx auto 20rpx;
  935. }
  936. .user-money {
  937. width: 100%;
  938. margin-top: 50rpx;
  939. justify-content: center;
  940. .user-money-item {
  941. width: 50%;
  942. display: flex;
  943. flex-direction: column;
  944. justify-content: center;
  945. align-items: center;
  946. .user-money-num {
  947. font-size: 36rpx;
  948. font-weight: bold;
  949. }
  950. .user-money-font {
  951. margin-top: 20rpx;
  952. font-size: 24rpx;
  953. font-weight: 500;
  954. }
  955. }
  956. .user-xian {
  957. width: 1px;
  958. height: 77rpx;
  959. background: #eeeeee;
  960. }
  961. }
  962. </style>