user.vue 20 KB

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