user.vue 22 KB

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