user.vue 21 KB

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