user.vue 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="user-top">
  5. <!-- #ifndef APP-PLUS -->
  6. <!-- <image src="http://yiqugo.oss-cn-hangzhou.aliyuncs.com/bf48a202304061504282861.png" mode=""
  7. class="user-top-bg"></image> -->
  8. <image src="../../static/img/use-bg.png" mode=""
  9. class="user-top-bg"></image>
  10. <!-- #endif -->
  11. <!-- #ifdef APP-PLUS -->
  12. <image src="../../static/img/user-bg.png" mode="" class="user-top-bg"></image>
  13. <!-- #endif -->
  14. <view class="user-info" @click="navTo('/pages/set/set')">
  15. <view class="avatar">
  16. <image class="avatarimg" :src="userInfo.avatar || '/static/error/missing-face.png'" mode=""></image>
  17. <image v-if="sm != 0" class="real" src="../../static/img/real.png" mode=""></image>
  18. </view>
  19. <view class="name">{{ userInfo.nickname || '游客' }}</view>
  20. <!-- <view class="phone flex" v-if="userInfo.uid">
  21. <view class="phone-font">ID号:{{ userInfo.uid }}</view>
  22. </view> -->
  23. <view class="vip" v-if="userInfo.level_name">
  24. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  25. <view class="vip-title">{{ userInfo.level_name }}</view>
  26. </view>
  27. </view>
  28. <view class="sy-box flex">
  29. <view class="sy-item" @click="navTo('/pages/user/mygs')">
  30. <view class="sy-item-val">{{ userInfo.profit > 0 ? userInfo.profit : '0' }}</view>
  31. <view class="sy-item-name">我的收益</view>
  32. </view>
  33. <!-- <view class="jg"></view> -->
  34. <!-- <view class="sy-item" @click="navTo('/pages/user/myyue')">
  35. <view class="sy-item-val">{{ userInfo.now_money || '0.00' }}</view>
  36. <view class="sy-item-name">我的余额</view>
  37. </view> -->
  38. <view class="jg"></view>
  39. <view class="sy-item" @click="navTo('/pages/money/qudou')">
  40. <view class="sy-item-val">{{ userInfo.integral || '0.00' }}</view>
  41. <view class="sy-item-name">我的趣豆</view>
  42. </view>
  43. <view class="jg"></view>
  44. <view class="sy-item" @click="navTo('/pages/user/myAppointment')">
  45. <view class="sy-item-val">{{ userInfo.anticipate || '0.00' }}</view>
  46. <view class="sy-item-name">我的易趣卷</view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- <view class="qd-box flex">
  51. <image src="../../static/icon/uqd.png" mode=""></image>
  52. <view class="qd-info">
  53. <view class="" style="font-weight: bold;color: #0C1732;">签到领取积分</view>
  54. <view class="">已连续签到{{ actionDay }}天</view>
  55. <view class="">累计签到奖励{{ sum_integral }}趣豆</view>
  56. </view>
  57. <view class="qd-btn" :class="{ qded: qded }" @click="qded ? '' : goQd()">{{ qded ? '已签到' : '立即签到' }}</view>
  58. </view> -->
  59. <view class="tool-box flex">
  60. <view class="tool-item flex" v-for="itemt in toolList" :key="itemt.id" @click="useTool(itemt)"
  61. v-if="itemt.id != 't7' || userInfo.staff">
  62. <view class="tool-item-img">
  63. <image :src="itemt.img" mode="widthFix" :style="{ width: itemt.width, height: itemt.height }"
  64. class="tool-logo"></image>
  65. </view>
  66. <view class="tool-item-name">{{ itemt.name }}</view>
  67. </view>
  68. </view>
  69. <uni-list class="tool-list">
  70. <uni-list-item class="item" title="收款信息" @click="navTo('/pages/collection/collection')"
  71. thumb="/static/icon/user_page.png"></uni-list-item>
  72. <uni-list-item class="item" title="实名认证" @click="navTo('/pages/user/approve')"
  73. thumb="/static/icon/user_name.png"></uni-list-item>
  74. <uni-list-item class="item" title="收货地址" @click="navTo('/pages/set/address')"
  75. thumb="/static/icon/user_address.png"></uni-list-item>
  76. <uni-list-item class="item" title="客服" @click="openKf()" thumb="/static/icon/user_serve.png"></uni-list-item>
  77. <uni-list-item class="item" title="设置" @click="navTo('/pages/set/set')" thumb="/static/icon/user_set.png"></uni-list-item>
  78. <!-- #ifdef H5 -->
  79. <uni-list-item class="item" title="绑定手机" @click="navTo('/pages/set/phone')"
  80. thumb="/static/icon/user_bind.png"></uni-list-item>
  81. <!-- #endif -->
  82. <!-- <uni-list-item title="关于我们" @click="navTo('/pages/user/about')" thumb="/static/icon/img09.png"></uni-list-item> -->
  83. </uni-list>
  84. <view class="page-btm" style="padding-top: 20rpx;">©2022 杭州尚视拍卖有限公司 版权所有</view>
  85. <view class="page-btm" style="padding-bottom: 10rpx;">浙ICP备2022017146号-2</view>
  86. <uni-popup ref="popupkf" type="center">
  87. <view class="popup-box">
  88. <view class="img">
  89. <image src="../../static/img/img009.png" mode=""></image>
  90. </view>
  91. <view class="mian">
  92. <view class="delivery">
  93. <view class="title">已经为您定制专属客服</view>
  94. <image src="../../static/img/img010.png" mode=""></image>
  95. </view>
  96. <view class="nocancel">客服VX:{{ text }}</view>
  97. <view class="comfirm-box">
  98. <view class="cancel" @click="cancel">取消</view>
  99. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  100. </view>
  101. </view>
  102. </view>
  103. </uni-popup>
  104. <uni-popup ref="popupqd" type="center">
  105. <view class="popup">
  106. <view class="popup-dox">
  107. <image class="popup-logo" src="../../static/img/sign-popup.png"></image>
  108. </view>
  109. <view class="popup-title">
  110. 获得
  111. <text>{{ today_integral }}</text>
  112. 趣豆
  113. </view>
  114. <view class="popup-btn" @click="closeQd">知道了</view>
  115. </view>
  116. <!-- <view class="close_icon" @click="close">
  117. <image src="../../static/img/Close.png"></image>
  118. </view> -->
  119. </uni-popup>
  120. <u-tabbar activeColor="#f42b4e" v-model="current" :list="tabbar"></u-tabbar>
  121. </view>
  122. </template>
  123. <script>
  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 uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
  134. import {
  135. orderData,
  136. getUserInfo,
  137. rate,
  138. apply_status
  139. } from '@/api/user.js';
  140. import {
  141. signList,
  142. integral,
  143. signUser
  144. } from '@/api/functionalUnit.js';
  145. import {
  146. saveUrl,
  147. interceptor
  148. } from '@/utils/loginUtils.js';
  149. let startY = 0,
  150. moveY = 0,
  151. pageAtTop = true;
  152. export default {
  153. components: {
  154. uniList,
  155. uniListItem
  156. },
  157. data() {
  158. return {
  159. sm: 0, //是否已实名认证
  160. money: '', //保存当前月份
  161. year: '', //保存当前年份
  162. day: '', //保存当前日期
  163. current: 4,
  164. tabbar: tabbar1,
  165. qded: false, //是否已签到
  166. text: '', //客服微信
  167. actionDay: 0, //连续签到天数
  168. sum_integral: 0, //累计获得积分
  169. today_integral: '', //签到获得的数值
  170. tom_integral: '', //明天签到获得的数值
  171. tom_type: '', //签到获得的数值单位
  172. userDowm: 0, //卡片升级专属高度
  173. userMaxDowm: 0, //卡片最高高度
  174. toolList: [
  175. // {
  176. // id: 't1',
  177. // name: '新人通道',
  178. // width: '56rpx',
  179. // heigt: '54rpx',
  180. // img: '../../static/icon/tool-1.png',
  181. // path: '/pages/user/xrtd'
  182. // },
  183. {
  184. id: 't2',
  185. name: '邀请好友',
  186. width: '56rpx',
  187. heigt: '57rpx',
  188. img: '../../static/icon/tool-2.png',
  189. path: '/pages/user/shareQrCode'
  190. },
  191. {
  192. id: 't3',
  193. name: '我的粉丝',
  194. width: '68rpx',
  195. heigt: '53rpx',
  196. img: '../../static/icon/tool-3.png',
  197. path: '/pages/user/myfans'
  198. },
  199. {
  200. id: 't4',
  201. name: '我的订单',
  202. width: '55rpx',
  203. heigt: '54rpx',
  204. img: '../../static/icon/tool-4.png',
  205. path: '/pages/order/index'
  206. },
  207. {
  208. id: 't5',
  209. name: '我的商品',
  210. width: '50rpx',
  211. heigt: '58rpx',
  212. img: '../../static/icon/tool-5.png',
  213. path: '/pages/user/myproduct'
  214. },
  215. {
  216. id: 't6',
  217. name: '馆长申请',
  218. width: '59rpx',
  219. heigt: '56rpx',
  220. img: '../../static/icon/tool-6.png',
  221. path: '/pages/user/gzsq'
  222. },
  223. {
  224. id: 't7',
  225. name: '我的金豆',
  226. width: '59rpx',
  227. heigt: '56rpx',
  228. img: '../../static/icon/jindou.png',
  229. path: '/pages/user/myyue'
  230. }
  231. ]
  232. };
  233. },
  234. onShow() {
  235. // 判断是否已经登录
  236. if (this.hasLogin) {
  237. this.loadBaseData();
  238. // this.signUser();
  239. // this.loadList();
  240. // this.getData();
  241. // this.isSm();
  242. }
  243. },
  244. onReady() {
  245. // 初始化获取页面宽度
  246. uni.createSelectorQuery()
  247. .select('.container')
  248. .fields({
  249. size: true
  250. },
  251. data => {
  252. // 计算最多下拉的高度
  253. this.userDowm = Math.floor((data.width / 750) * 185);
  254. // 计算最大触发修改高度事件
  255. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  256. }
  257. )
  258. .exec();
  259. },
  260. computed: {
  261. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  262. },
  263. methods: {
  264. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  265. getData(current) {
  266. const date = current ? new Date(current) : new Date();
  267. this.year = date.getFullYear(); //保存当前年份
  268. this.month = date.getMonth() + 1; //保存当前月份
  269. this.day = date.getDate(); //保存当前日期
  270. },
  271. isSm() {
  272. rate({}).then(e => {
  273. if (e.data.is_auth == 2) {
  274. this.sm = 1;
  275. }
  276. });
  277. },
  278. comfirm(text) {
  279. let obj = this;
  280. let content = text; //需要复制的内容
  281. console.log('复制的内容:', content);
  282. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  283. const result = uniCopy(content);
  284. if (result === false) {
  285. uni.showToast({
  286. title: '不支持'
  287. });
  288. } else {
  289. uni.showToast({
  290. title: '复制成功',
  291. icon: 'none'
  292. });
  293. }
  294. },
  295. // 获取签到列表
  296. loadList() {
  297. let obj = this;
  298. let present = this.day; //保存当前天数用于后续计算
  299. let actionDay = 0; //用于计算活跃天数
  300. let arr = []; //保存返回数组;
  301. signList({
  302. page: 1,
  303. limit: 31
  304. }).then(e => {
  305. arr = e.data.map((e, ind) => {
  306. let time = e.add_time.split('-');
  307. let day = parseInt(time[2].replace(/^0/i, ''));
  308. let year = time[0];
  309. let month = +time[1];
  310. if (obj.year == year && obj.month == month) {
  311. return day;
  312. }
  313. });
  314. // 判断今天是否已经签到
  315. if (arr[0] == this.day) {
  316. this.qded = true;
  317. }
  318. });
  319. },
  320. //获取签到用户信息
  321. signUser() {
  322. signUser({
  323. all: 1
  324. }).then(({
  325. data
  326. }) => {
  327. this.actionDay = data.sign_num; //连续签到天数
  328. this.sum_integral = data.sum_integral; //累计总积分
  329. });
  330. },
  331. // 加载初始数据
  332. loadBaseData() {
  333. getUserInfo({})
  334. .then(({
  335. data
  336. }) => {
  337. this.setUserInfo(data);
  338. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  339. orderData({})
  340. .then(({
  341. data
  342. }) => {
  343. this.setOrderInfo(data);
  344. })
  345. .catch(e => {
  346. this.setOrderInfo({
  347. complete_count: 0, //完成
  348. received_count: 0, //待收货
  349. unshipped_count: 0, //待发货
  350. order_count: 0, //订单总数
  351. unpaid_count: 0 //待付款
  352. });
  353. });
  354. })
  355. .catch(e => {
  356. console.log(e);
  357. });
  358. },
  359. /**
  360. * 统一跳转接口,拦截未登录路由
  361. * navigator标签现在默认没有转场动画,所以用view
  362. */
  363. navTo(url) {
  364. const obj = this;
  365. if (!this.hasLogin) {
  366. // 保存地址
  367. saveUrl();
  368. // 登录拦截
  369. interceptor();
  370. } else {
  371. if (url == '/pages/user/approve') {
  372. rate({})
  373. .then(e => {
  374. console.log(e);
  375. if (e.data.is_auth == null) {
  376. uni.navigateTo({
  377. url
  378. });
  379. }
  380. if (e.data.is_auth == 0) {
  381. uni.navigateTo({
  382. url
  383. });
  384. }
  385. if (e.data.is_auth == 1) {
  386. this.$api.msg('正在审核中请耐心等待');
  387. }
  388. if (e.data.is_auth == 2) {
  389. this.$api.msg('已通过实名认证,无需再实名认证');
  390. }
  391. if (e.data.is_auth == 3) {
  392. uni.showModal({
  393. title: '提示',
  394. content: '申请失败,原因' + e.data.off + '是否重新申请',
  395. success: function(res) {
  396. if (res.confirm) {
  397. uni.navigateTo({
  398. url
  399. });
  400. } else if (res.cancel) {
  401. console.log('用户点击取消');
  402. }
  403. }
  404. });
  405. }
  406. })
  407. .catch(e => {
  408. return;
  409. });
  410. } else if (url == '/pages/user/gzsq') {
  411. apply_status({})
  412. .then(e => {
  413. if (e.data.status != 0) {
  414. if (e.data.status == 3) {
  415. uni.showModal({
  416. title: '提示',
  417. content: '申请失败是否重新申请',
  418. success: function(res) {
  419. if (res.confirm) {
  420. uni.navigateTo({
  421. url
  422. });
  423. } else if (res.cancel) {
  424. console.log('用户点击取消');
  425. }
  426. }
  427. });
  428. } else {
  429. obj.$api.msg(e.data.str);
  430. }
  431. } else {
  432. uni.navigateTo({
  433. url
  434. });
  435. }
  436. })
  437. .catch(e => {});
  438. } else {
  439. uni.navigateTo({
  440. url,
  441. fail() {
  442. uni.switchTab({
  443. url
  444. });
  445. }
  446. });
  447. }
  448. }
  449. },
  450. useTool(e) {
  451. this.navTo(e.path);
  452. },
  453. // 签到弹窗
  454. goQd() {
  455. integral({})
  456. .then(e => {
  457. this.integral = console.log(e);
  458. // 改为已签到
  459. this.qded = true;
  460. this.today_integral = e.data.integral;
  461. this.actionDay++;
  462. this.sum_integral = +this.sum_integral + +e.data.integral;
  463. this.$refs.popupqd.open();
  464. })
  465. .catch(e => {
  466. console.log(e);
  467. });
  468. },
  469. // 关闭签到弹窗
  470. closeQd() {
  471. this.$refs.popupqd.close();
  472. },
  473. // 打开客服
  474. openKf() {
  475. this.$refs.popupkf.open();
  476. },
  477. // 关闭客服
  478. cancel() {
  479. this.$refs.popupkf.close();
  480. }
  481. }
  482. };
  483. </script>
  484. <style lang="scss">
  485. %flex-center {
  486. display: flex;
  487. flex-direction: column;
  488. justify-content: center;
  489. align-items: center;
  490. }
  491. %section {
  492. display: flex;
  493. justify-content: space-around;
  494. align-content: center;
  495. background: #fff;
  496. border-radius: 10rpx;
  497. }
  498. .container,
  499. page {
  500. min-height: 100%;
  501. height: auto;
  502. background-color: $page-color-base;
  503. }
  504. .vheigh {
  505. height: var(--status-bar-height);
  506. background-color: $base-color;
  507. }
  508. .user-section {
  509. height: 435rpx;
  510. padding: 15rpx 30rpx 0;
  511. position: relative;
  512. .bg {
  513. position: absolute;
  514. left: 0;
  515. top: 0;
  516. width: 100%;
  517. height: 100%;
  518. background-color: $base-color;
  519. }
  520. }
  521. .user-info-box {
  522. height: 180rpx;
  523. color: white;
  524. display: flex;
  525. align-items: center;
  526. justify-content: space-between;
  527. position: relative;
  528. z-index: 1;
  529. .detail {
  530. height: 130rpx;
  531. .portrait-box {
  532. height: 100%;
  533. .portrait {
  534. width: 130rpx;
  535. height: 100%;
  536. border: 5rpx solid #fff;
  537. border-radius: 50%;
  538. }
  539. }
  540. .info-box {
  541. margin-left: 20rpx;
  542. line-height: 1.5;
  543. .username {
  544. font-size: $font-lg + 6rpx;
  545. height: 100%;
  546. }
  547. }
  548. }
  549. .config {
  550. font-size: 48rpx;
  551. height: 130rpx;
  552. .setting {
  553. margin-right: 51rpx;
  554. }
  555. }
  556. }
  557. .vip-card-box {
  558. display: flex;
  559. flex-direction: column;
  560. color: #f7d680;
  561. height: 240rpx;
  562. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  563. border-radius: 16rpx 16rpx 0 0;
  564. overflow: hidden;
  565. position: relative;
  566. padding: 20rpx 24rpx;
  567. .card-bg {
  568. position: absolute;
  569. top: 20rpx;
  570. right: 0;
  571. width: 380rpx;
  572. height: 260rpx;
  573. }
  574. .b-btn {
  575. position: absolute;
  576. right: 20rpx;
  577. top: 16rpx;
  578. width: 132rpx;
  579. height: 40rpx;
  580. text-align: center;
  581. line-height: 40rpx;
  582. font-size: 22rpx;
  583. color: #36343c;
  584. border-radius: 20px;
  585. background: linear-gradient(left, #f9e6af, #ffd465);
  586. z-index: 1;
  587. }
  588. .tit {
  589. font-size: $font-base + 2rpx;
  590. color: #f7d680;
  591. margin-bottom: 28rpx;
  592. .iconfont {
  593. color: #f6e5a3;
  594. margin-right: 16rpx;
  595. }
  596. }
  597. .e-b {
  598. font-size: $font-sm;
  599. color: #d8cba9;
  600. margin-top: 10rpx;
  601. }
  602. }
  603. .cover-container {
  604. background: $page-color-base;
  605. margin-top: -150rpx;
  606. padding: 0 30rpx;
  607. position: relative;
  608. background: #f5f5f5;
  609. padding-bottom: 20rpx;
  610. .arc {
  611. position: absolute;
  612. left: 0;
  613. top: -34rpx;
  614. width: 100%;
  615. height: 36rpx;
  616. }
  617. }
  618. .tj-sction {
  619. @extend %section;
  620. .tj-item {
  621. @extend %flex-center;
  622. flex-direction: column;
  623. height: 140rpx;
  624. font-size: $font-sm;
  625. color: #75787d;
  626. }
  627. .num {
  628. font-size: $font-lg;
  629. color: $font-color-dark;
  630. margin-bottom: 8rpx;
  631. }
  632. }
  633. .item-box {
  634. border-radius: 10rpx;
  635. background-color: white;
  636. margin-top: 20rpx;
  637. .box-title {
  638. line-height: 1;
  639. padding: 30rpx;
  640. .title {
  641. font-size: $font-lg;
  642. font-weight: bold;
  643. }
  644. .link {
  645. font-size: $font-base - 2rpx;
  646. color: $font-color-light;
  647. }
  648. }
  649. .order-section {
  650. @extend %section;
  651. padding: 28rpx 0;
  652. .order-item {
  653. @extend %flex-center;
  654. width: 120rpx;
  655. height: 120rpx;
  656. border-radius: 10rpx;
  657. font-size: $font-sm;
  658. color: $font-color-dark;
  659. }
  660. .iconfont {
  661. font-size: 48rpx;
  662. margin-bottom: 18rpx;
  663. color: #fa436a;
  664. }
  665. .icon-shouhoutuikuan {
  666. font-size: 44rpx;
  667. }
  668. .icon {
  669. height: 50rpx;
  670. width: 48rpx;
  671. margin-bottom: 18rpx;
  672. background-size: 100%;
  673. background-repeat: no-repeat;
  674. background-position: center;
  675. .icon-img {
  676. width: 100%;
  677. height: 100%;
  678. }
  679. }
  680. }
  681. }
  682. .history-section {
  683. // padding: 30rpx 0 0;
  684. margin-top: 20rpx;
  685. background: #fff;
  686. border-radius: 10rpx;
  687. .sec-header {
  688. display: flex;
  689. align-items: center;
  690. font-size: $font-base;
  691. color: $font-color-dark;
  692. line-height: 40rpx;
  693. margin-left: 30rpx;
  694. padding-top: 30rpx;
  695. .iconfont {
  696. font-size: 44rpx;
  697. color: $color-red;
  698. margin-right: 16rpx;
  699. line-height: 40rpx;
  700. }
  701. }
  702. .h-list {
  703. white-space: nowrap;
  704. padding: 30rpx 30rpx 0;
  705. .h-list-image {
  706. display: inline-block;
  707. width: 160rpx;
  708. height: 160rpx;
  709. margin-right: 20rpx;
  710. border-radius: 10rpx;
  711. }
  712. }
  713. }
  714. .user-top {
  715. height:620rpx;
  716. position: relative;
  717. .user-top-bg {
  718. width: 750rpx;
  719. height: 660rpx;
  720. // width: 100%;
  721. // position: absolute;
  722. }
  723. .user-info {
  724. width: 750rpx;
  725. position: absolute;
  726. top: 66rpx;
  727. display: flex;
  728. flex-direction: column;
  729. justify-content: center;
  730. align-items: center;
  731. .avatar {
  732. position: relative;
  733. width: 134rpx;
  734. height: 134rpx;
  735. border-radius: 50%;
  736. .avatarimg {
  737. border-radius: 50%;
  738. width: 134rpx;
  739. height: 134rpx;
  740. }
  741. .real {
  742. position: absolute;
  743. bottom: 0;
  744. left: 10rpx;
  745. width: 120rpx;
  746. height: 34rpx;
  747. }
  748. }
  749. .name {
  750. margin-top: 20rpx;
  751. font-size: 32rpx;
  752. font-family: PingFang SC;
  753. font-weight: bold;
  754. color: #ffffff;
  755. }
  756. .phone {
  757. justify-content: start;
  758. margin-top: 13rpx;
  759. font-size: 30rpx;
  760. font-family: PingFang SC;
  761. font-weight: 500;
  762. color: #ffffff;
  763. .green {
  764. margin-left: 12rpx;
  765. position: relative;
  766. width: 100rpx;
  767. height: 40rpx;
  768. .green-bg {
  769. position: absolute;
  770. top: 0;
  771. left: 0;
  772. right: 0;
  773. width: 100%;
  774. height: 100%;
  775. }
  776. .green-title {
  777. line-height: 30rpx;
  778. text-align: center;
  779. position: relative;
  780. z-index: 10;
  781. font-size: 20rpx;
  782. font-family: PingFang SC;
  783. font-weight: 500;
  784. // color: #93794b;
  785. color: #fff;
  786. }
  787. }
  788. }
  789. .vip {
  790. margin-top: 20rpx;
  791. position: relative;
  792. width: 120rpx;
  793. height: 40rpx;
  794. .vip-bg {
  795. position: absolute;
  796. top: 0;
  797. left: 0;
  798. right: 0;
  799. width: 100%;
  800. height: 100%;
  801. }
  802. .vip-title {
  803. width: 120rpx;
  804. line-height: 40rpx;
  805. text-align: center;
  806. position: relative;
  807. z-index: 10;
  808. font-size: 20rpx;
  809. font-family: PingFang SC;
  810. font-weight: 500;
  811. color: #93794b;
  812. }
  813. }
  814. }
  815. .sy-box {
  816. position: absolute;
  817. bottom: 105rpx;
  818. height: 148rpx;
  819. width: 750rpx;
  820. .sy-item {
  821. flex-grow: 1;
  822. text-align: center;
  823. font-size: 28rpx;
  824. font-family: PingFang SC;
  825. font-weight: 500;
  826. color: #ffffff;
  827. .sy-item-val {}
  828. }
  829. .jg {
  830. width: 2rpx;
  831. height: 68rpx;
  832. background-color: #fff;
  833. }
  834. }
  835. }
  836. .qd-box {
  837. width: 690rpx;
  838. height: 210rpx;
  839. background: #ffffff;
  840. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  841. border-radius: 20rpx;
  842. margin: -105rpx auto 30rpx;
  843. position: relative;
  844. padding: 0 40rpx;
  845. font-size: 26rpx;
  846. font-family: PingFang SC;
  847. font-weight: 500;
  848. color: #666666;
  849. image {
  850. flex-shrink: 0;
  851. width: 65rpx;
  852. height: 68rpx;
  853. }
  854. .qd-info {
  855. flex-grow: 1;
  856. padding-left: 24rpx;
  857. line-height: 46rpx;
  858. }
  859. .qd-btn {
  860. width: 190rpx;
  861. height: 80rpx;
  862. line-height: 80rpx;
  863. border-radius: 20px;
  864. background: #dc262b;
  865. border-radius: 20rpx;
  866. text-align: center;
  867. font-size: 32rpx;
  868. font-family: PingFang SC;
  869. font-weight: 500;
  870. color: #ffffff;
  871. }
  872. .qded {
  873. background: #e8e8e8;
  874. color: #999999;
  875. }
  876. }
  877. .tool-box {
  878. padding-top: 30rpx;
  879. padding-bottom: 46rpx;
  880. width: 690rpx;
  881. background: #ffffff;
  882. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  883. border-radius: 20rpx;
  884. margin: 30rpx auto;
  885. flex-wrap: wrap;
  886. justify-content: flex-start;
  887. align-content: space-around;
  888. margin-top: -100rpx;
  889. z-index: 10;
  890. position: relative;
  891. .tool-item {
  892. width: 20%;
  893. height: 120rpx;
  894. flex-shrink: 0;
  895. flex-direction: column;
  896. align-content: space-between;
  897. justify-content: center;
  898. font-size: 28rpx;
  899. font-family: PingFang SC;
  900. font-weight: 500;
  901. color: #0c1732;
  902. .tool-item-img {
  903. width: 68rpx;
  904. height: 90rpx;
  905. position: relative;
  906. flex-shrink: 0;
  907. .tool-logo {
  908. position: absolute;
  909. width: 56rpx;
  910. height: 56rpx;
  911. top: 0;
  912. left: 0;
  913. bottom: 0;
  914. right: 0;
  915. margin: auto;
  916. }
  917. }
  918. .tool-item-name {
  919. display: inline-block;
  920. font-size: 26rpx;
  921. }
  922. }
  923. }
  924. .tool-list {
  925. width: 690rpx;
  926. margin: auto;
  927. background: transparent;
  928. .item{
  929. background: #ffffff;
  930. border-radius: 20rpx;
  931. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  932. margin-bottom: 10rpx;
  933. }
  934. }
  935. .popup-box {
  936. width: 522rpx;
  937. height: 605rpx;
  938. background-color: #ffffff;
  939. border-radius: 20rpx;
  940. position: relative;
  941. .img {
  942. position: relative;
  943. top: -56rpx;
  944. left: 0;
  945. width: 522rpx;
  946. height: 132rpx;
  947. display: flex;
  948. justify-content: center;
  949. image {
  950. border-radius: 20rpx 20rpx 0 0;
  951. width: 450rpx;
  952. height: 132rpx;
  953. }
  954. }
  955. .mian {
  956. margin-top: -44rpx;
  957. display: flex;
  958. flex-direction: column;
  959. align-items: center;
  960. // padding: 32rpx 32rpx;
  961. background-color: #ffffff;
  962. border-radius: 0 0 20rpx 20rpx;
  963. text-align: center;
  964. .delivery {
  965. font-size: 40rpx;
  966. color: #333333;
  967. display: flex;
  968. align-items: center;
  969. flex-direction: column;
  970. .title {}
  971. image {
  972. margin-top: 48rpx;
  973. width: 172rpx;
  974. height: 160rpx;
  975. }
  976. }
  977. .nocancel {
  978. font-size: 32rpx;
  979. color: #333333;
  980. margin-top: 14rpx;
  981. }
  982. .comfirm-box {
  983. margin-top: 52rpx;
  984. display: flex;
  985. // margin-bottom: 32rpx;
  986. // justify-content: space-around;
  987. .cancel {
  988. display: flex;
  989. align-items: center;
  990. justify-content: center;
  991. width: 197rpx;
  992. height: 74rpx;
  993. border: 1px solid #dcc786;
  994. border-radius: 38rpx;
  995. font-size: 32rpx;
  996. color: #605128;
  997. }
  998. .comfirm {
  999. margin-left: 32rpx;
  1000. display: flex;
  1001. align-items: center;
  1002. justify-content: center;
  1003. width: 197rpx;
  1004. height: 74rpx;
  1005. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  1006. border-radius: 38px;
  1007. font-size: 32rpx;
  1008. color: #605128;
  1009. }
  1010. }
  1011. }
  1012. }
  1013. .popup {
  1014. width: 560rpx;
  1015. padding-bottom: 45rpx;
  1016. background-color: #ffffff;
  1017. border-radius: 15rpx;
  1018. text-align: center;
  1019. line-height: 1;
  1020. .popup-dox {
  1021. position: relative;
  1022. .popup-logo {
  1023. margin: -160rpx auto 0;
  1024. width: 400rpx;
  1025. height: 200rpx;
  1026. }
  1027. }
  1028. .popup-title {
  1029. margin-top: 85rpx;
  1030. font-size: 40rpx;
  1031. font-family: PingFang SC;
  1032. font-weight: bold;
  1033. color: #2a2a2a;
  1034. text {
  1035. font-size: 56rpx;
  1036. color: #e83f30;
  1037. }
  1038. }
  1039. .popup-tip {
  1040. margin-top: 20rpx;
  1041. font-size: 28rpx;
  1042. font-family: PingFang SC;
  1043. font-weight: 500;
  1044. color: #8c8c8c;
  1045. text {
  1046. color: #e83f30;
  1047. }
  1048. }
  1049. .popup-btn {
  1050. margin: 58rpx auto 0;
  1051. width: 270rpx;
  1052. height: 66rpx;
  1053. background: #f0c838;
  1054. border-radius: 34rpx;
  1055. text-align: center;
  1056. line-height: 66rpx;
  1057. font-size: 36rpx;
  1058. font-family: Source Han Sans CN;
  1059. font-weight: 500;
  1060. color: #ffffff;
  1061. }
  1062. }
  1063. .page-btm {
  1064. background-color: #f5f5f5;
  1065. font-size: 20rpx;
  1066. text-align: center;
  1067. color: #d6d6d8;
  1068. }
  1069. </style>