user.vue 20 KB

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