user.vue 23 KB

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