user.vue 20 KB

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