user.vue 21 KB

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