user.vue 20 KB

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