user.vue 20 KB

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