user.vue 22 KB

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