user.vue 26 KB

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