user.vue 18 KB

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