user.vue 20 KB

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