user.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  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. weixindata().then(wxOjb => {
  241. console.log(wxOjb, '获取微信');
  242. wxOjb.scanQRCode({
  243. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  244. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  245. success: function(res) {
  246. obj.code = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
  247. obj.$refs.popuphx.open();
  248. }
  249. });
  250. });
  251. // #endif
  252. },
  253. qhx() {
  254. coupon_verific({
  255. verify_code: this.code
  256. })
  257. .then(e => {
  258. this.$api.msg('核销成功');
  259. obj.$refs.popuphx.close();
  260. console.log(e);
  261. })
  262. .catch(e => {
  263. console.log(e);
  264. });
  265. },
  266. close() {
  267. this.$refs.popuphx.close();
  268. this.code = '';
  269. },
  270. uniCopy(content) {
  271. /**
  272. * 小程序端 和 app端的复制逻辑
  273. */
  274. //#ifndef H5
  275. uni.setClipboardData({
  276. data: content,
  277. success: function() {
  278. console.log('success');
  279. return true;
  280. }
  281. });
  282. //#endif
  283. /**
  284. * H5端的复制逻辑
  285. */
  286. // #ifdef H5
  287. if (!document.queryCommandSupported('copy')) {
  288. //为了兼容有些浏览器 queryCommandSupported 的判断
  289. // 不支持
  290. return false;
  291. }
  292. let textarea = document.createElement('textarea');
  293. textarea.value = content;
  294. textarea.readOnly = 'readOnly';
  295. document.body.appendChild(textarea);
  296. textarea.select(); // 选择对象
  297. textarea.setSelectionRange(0, content.length); //核心
  298. let result = document.execCommand('copy'); // 执行浏览器复制命令
  299. textarea.remove();
  300. return result;
  301. // #endif
  302. },
  303. // 加载初始数据
  304. loadBaseData() {
  305. getUserInfo({})
  306. .then(({ data }) => {
  307. this.setUserInfo(data);
  308. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  309. orderData({})
  310. .then(({ data }) => {
  311. this.setOrderInfo(data);
  312. })
  313. .catch(e => {
  314. this.setOrderInfo({
  315. complete_count: 0, //完成
  316. received_count: 0, //待收货
  317. unshipped_count: 0, //待发货
  318. order_count: 0, //订单总数
  319. unpaid_count: 0 //待付款
  320. });
  321. });
  322. })
  323. .catch(e => {
  324. console.log(e);
  325. });
  326. },
  327. /**
  328. * 统一跳转接口,拦截未登录路由
  329. * navigator标签现在默认没有转场动画,所以用view
  330. */
  331. navTo(url) {
  332. console.log(url);
  333. if (!this.hasLogin) {
  334. // 保存地址
  335. saveUrl();
  336. // 登录拦截
  337. interceptor();
  338. } else {
  339. uni.navigateTo({
  340. url
  341. });
  342. }
  343. // uni.navigateTo({
  344. // url
  345. // });
  346. },
  347. useTool(e) {
  348. this.navTo(e.path);
  349. },
  350. // 签到弹窗
  351. goQd() {
  352. this.$refs.popupqd.open();
  353. this.qded = true;
  354. },
  355. // 关闭签到弹窗
  356. closeQd() {
  357. this.$refs.popupqd.close();
  358. },
  359. // 打开客服
  360. openKf() {
  361. this.$refs.popupkf.open();
  362. },
  363. // 关闭客服
  364. cancel() {
  365. this.$refs.popupkf.close();
  366. }
  367. }
  368. };
  369. </script>
  370. <style lang="scss">
  371. %flex-center {
  372. display: flex;
  373. flex-direction: column;
  374. justify-content: center;
  375. align-items: center;
  376. }
  377. %section {
  378. display: flex;
  379. justify-content: space-around;
  380. align-content: center;
  381. background: #fff;
  382. border-radius: 10rpx;
  383. }
  384. .container,
  385. page {
  386. min-height: 100%;
  387. height: auto;
  388. background-color: $page-color-base;
  389. }
  390. .vheigh {
  391. height: var(--status-bar-height);
  392. background-color: $base-color;
  393. }
  394. .top-image {
  395. position: absolute;
  396. top: 0;
  397. left: 0;
  398. right: 0;
  399. height: 230rpx;
  400. image {
  401. width: 100%;
  402. height: 100%;
  403. }
  404. }
  405. .tool-list {
  406. width: 690rpx;
  407. margin: auto;
  408. margin-top: 20rpx;
  409. background: #ffffff;
  410. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  411. border-radius: 20rpx;
  412. }
  413. .popup-box {
  414. width: 522rpx;
  415. height: 605rpx;
  416. background-color: #ffffff;
  417. border-radius: 20rpx;
  418. position: relative;
  419. .img {
  420. position: relative;
  421. top: -56rpx;
  422. left: 0;
  423. width: 522rpx;
  424. height: 132rpx;
  425. display: flex;
  426. justify-content: center;
  427. image {
  428. border-radius: 20rpx 20rpx 0 0;
  429. width: 450rpx;
  430. height: 132rpx;
  431. }
  432. }
  433. .mian {
  434. margin-top: -44rpx;
  435. display: flex;
  436. flex-direction: column;
  437. align-items: center;
  438. // padding: 32rpx 32rpx;
  439. background-color: #ffffff;
  440. border-radius: 0 0 20rpx 20rpx;
  441. text-align: center;
  442. .delivery {
  443. font-size: 40rpx;
  444. color: #333333;
  445. display: flex;
  446. align-items: center;
  447. flex-direction: column;
  448. image {
  449. margin-top: 48rpx;
  450. width: 172rpx;
  451. height: 160rpx;
  452. }
  453. }
  454. .nocancel {
  455. font-size: 32rpx;
  456. color: #333333;
  457. margin-top: 14rpx;
  458. }
  459. .comfirm-box {
  460. margin-top: 52rpx;
  461. display: flex;
  462. // margin-bottom: 32rpx;
  463. // justify-content: space-around;
  464. .cancel {
  465. display: flex;
  466. align-items: center;
  467. justify-content: center;
  468. width: 197rpx;
  469. height: 74rpx;
  470. border: 1px solid #dcc786;
  471. border-radius: 38rpx;
  472. font-size: 32rpx;
  473. color: #605128;
  474. }
  475. .comfirm {
  476. margin-left: 32rpx;
  477. display: flex;
  478. align-items: center;
  479. justify-content: center;
  480. width: 197rpx;
  481. height: 74rpx;
  482. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  483. border-radius: 38px;
  484. font-size: 32rpx;
  485. color: #605128;
  486. }
  487. }
  488. }
  489. }
  490. .popup {
  491. width: 560rpx;
  492. padding-bottom: 45rpx;
  493. background-color: #ffffff;
  494. border-radius: 15rpx;
  495. text-align: center;
  496. line-height: 1;
  497. .popup-dox {
  498. position: relative;
  499. .popup-logo {
  500. margin: -160rpx auto 0;
  501. width: 400rpx;
  502. height: 200rpx;
  503. }
  504. }
  505. .popup-title {
  506. margin-top: 85rpx;
  507. font-size: 40rpx;
  508. font-family: PingFang SC;
  509. font-weight: bold;
  510. color: #2a2a2a;
  511. text {
  512. font-size: 56rpx;
  513. color: #e83f30;
  514. }
  515. }
  516. .popup-tip {
  517. margin-top: 20rpx;
  518. font-size: 28rpx;
  519. font-family: PingFang SC;
  520. font-weight: 500;
  521. color: #8c8c8c;
  522. text {
  523. color: #e83f30;
  524. }
  525. }
  526. .popup-btn {
  527. margin: 58rpx auto 0;
  528. width: 270rpx;
  529. height: 66rpx;
  530. background: #f0c838;
  531. border-radius: 34rpx;
  532. text-align: center;
  533. line-height: 66rpx;
  534. font-size: 36rpx;
  535. font-family: Source Han Sans CN;
  536. font-weight: 500;
  537. color: #ffffff;
  538. }
  539. }
  540. .user-wrap {
  541. position: relative;
  542. z-index: 10;
  543. width: 690rpx;
  544. // height: 283rpx;
  545. background: #ffffff;
  546. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  547. border-radius: 20rpx;
  548. padding: 34rpx 0 0;
  549. margin: auto;
  550. .info-left {
  551. padding-left: 34rpx;
  552. .user-name {
  553. display: flex;
  554. align-items: center;
  555. image {
  556. width: 120rpx;
  557. height: 120rpx;
  558. border-radius: 50%;
  559. }
  560. .user-font {
  561. padding-left: 34rpx;
  562. .name {
  563. width: 250rpx;
  564. font-size: 40rpx;
  565. font-family: Source Han Sans CN;
  566. font-weight: 400;
  567. color: #333333;
  568. }
  569. .phone {
  570. margin-top: 10rpx;
  571. font-size: 20rpx;
  572. font-family: PingFang SC;
  573. font-weight: 500;
  574. color: #999999;
  575. }
  576. }
  577. }
  578. .kpi {
  579. background: #f5eede;
  580. border-radius: 30rpx 0px 0px 30rpx;
  581. padding: 18rpx 24rpx;
  582. font-size: 26rpx;
  583. font-family: PingFang SC;
  584. font-weight: bold;
  585. color: #c6914e;
  586. display: flex;
  587. image {
  588. width: 34rpx;
  589. margin-right: 8rpx;
  590. }
  591. }
  592. }
  593. .info-right {
  594. display: flex;
  595. align-items: center;
  596. margin-top: 54rpx;
  597. padding: 0 34rpx;
  598. .iright-icon {
  599. width: 32rpx;
  600. height: 32rpx;
  601. }
  602. .iright-font {
  603. margin-left: 12rpx;
  604. font-size: 28rpx;
  605. font-family: PingFang SC;
  606. font-weight: bold;
  607. color: #333333;
  608. }
  609. }
  610. }
  611. .user-set {
  612. justify-content: flex-end;
  613. // height: 40rpx;
  614. height: 150rpx;
  615. // padding-top: 40rpx;
  616. view {
  617. flex-shrink: 0;
  618. }
  619. padding: 30rpx;
  620. image {
  621. height: 40rpx;
  622. width: 40rpx;
  623. }
  624. }
  625. .main-box {
  626. margin: 20rpx auto 0;
  627. width: 690rpx;
  628. background: #ffffff;
  629. // box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  630. border-radius: 20rpx;
  631. .title {
  632. display: flex;
  633. justify-content: space-between;
  634. align-items: center;
  635. padding: 24rpx;
  636. border-bottom: 1px solid #eeeeee;
  637. .title-left {
  638. display: flex;
  639. align-items: center;
  640. .title-icon {
  641. width: 32rpx;
  642. height: 32rpx;
  643. }
  644. .title-font {
  645. margin-left: 20rpx;
  646. font-size: 28rpx;
  647. font-family: PingFang SC;
  648. font-weight: bold;
  649. color: #333333;
  650. }
  651. }
  652. .title-right {
  653. width: 14rpx;
  654. height: 24rpx;
  655. }
  656. }
  657. .main {
  658. padding: 50rpx 0 30rpx;
  659. .item {
  660. padding-bottom: 20rpx;
  661. width: 33%;
  662. display: flex;
  663. flex-direction: column;
  664. align-items: center;
  665. .item-num {
  666. font-size: 36rpx;
  667. font-family: PingFang SC;
  668. font-weight: bold;
  669. color: #333333;
  670. }
  671. .item-font {
  672. margin-top: 18rpx;
  673. font-size: 22rpx;
  674. font-family: PingFang SC;
  675. font-weight: 500;
  676. color: #666666;
  677. }
  678. }
  679. .oitem {
  680. width: 25%;
  681. display: flex;
  682. flex-direction: column;
  683. align-items: center;
  684. .oitem-image {
  685. height: 50rpx;
  686. width: 48rpx;
  687. }
  688. .oitem-font {
  689. margin-top: 20rpx;
  690. font-size: 24rpx;
  691. font-family: PingFang SC;
  692. font-weight: 500;
  693. color: #333333;
  694. }
  695. }
  696. }
  697. }
  698. .gpai {
  699. width: 100rpx;
  700. line-height: 40rpx;
  701. border-radius: 25rpx;
  702. position: absolute;
  703. top: 120rpx;
  704. left: 40rpx;
  705. font-size: 24rpx;
  706. color: #c6914e;
  707. text-align: center;
  708. background-color: #f2d4ae;
  709. }
  710. .shenqing {
  711. height: 100rpx;
  712. display: flex;
  713. justify-content: center;
  714. align-items: center;
  715. background-color: #ffd893;
  716. border-radius: 0 0 20rpx 20rpx;
  717. image {
  718. display: inline-block;
  719. margin: auto;
  720. height: 50rpx;
  721. }
  722. }
  723. .hx-wrapper {
  724. width: 536rpx;
  725. height: 630rpx;
  726. position: relative;
  727. // background-color: #fff;
  728. .hx-img {
  729. width: 536rpx;
  730. height: 281rpx;
  731. image {
  732. width: 536rpx;
  733. height: 281rpx;
  734. }
  735. }
  736. .hx-close {
  737. position: absolute;
  738. left: 243rpx;
  739. bottom: -80rpx;
  740. width: 52rpx;
  741. height: 52rpx;
  742. image {
  743. width: 52rpx;
  744. height: 52rpx;
  745. }
  746. }
  747. .hx-body {
  748. width: 536rpx;
  749. height: 349rpx;
  750. background-color: #fff;
  751. border-radius: 0 0 10rpx 10rpx;
  752. .hx-title {
  753. width: 536rpx;
  754. font-size: 36rpx;
  755. font-weight: 500;
  756. color: #333333;
  757. line-height: 1;
  758. padding-top: 42rpx;
  759. text-align: center;
  760. }
  761. input {
  762. width: 439rpx;
  763. height: 68rpx;
  764. background: #dbf3e9;
  765. border-radius: 10rpx;
  766. margin: 39rpx auto 0;
  767. padding-left: 26rpx;
  768. .hx-placeholder {
  769. font-size: 26rpx;
  770. font-weight: 500;
  771. color: #52c696;
  772. }
  773. }
  774. .hx-btn {
  775. margin: 44rpx auto 0;
  776. width: 353rpx;
  777. height: 71rpx;
  778. background: #52c696;
  779. border-radius: 34rpx;
  780. font-size: 36rpx;
  781. font-weight: 500;
  782. color: #f8f9f9;
  783. line-height: 71rpx;
  784. text-align: center;
  785. }
  786. }
  787. }
  788. </style>