user.vue 22 KB

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