user.vue 21 KB

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