user.vue 24 KB

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