user.vue 24 KB

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