user.vue 19 KB

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