user.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  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/user/myyue')">
  33. <view class="sy-item-val">{{ userInfo.now_money || '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/money/qudou')">
  38. <view class="sy-item-val">{{ userInfo.integral || '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/myAppointment')">
  43. <view class="sy-item-val">{{ userInfo.anticipate || '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. }
  386. if (e.data.is_auth == 2) {
  387. this.$api.msg('已通过实名认证,无需再实名认证');
  388. }
  389. if (e.data.is_auth == 3) {
  390. uni.showModal({
  391. title: '提示',
  392. content: '申请失败,原因' + e.data.off + '是否重新申请',
  393. success: function(res) {
  394. if (res.confirm) {
  395. uni.navigateTo({
  396. url
  397. });
  398. } else if (res.cancel) {
  399. console.log('用户点击取消');
  400. }
  401. }
  402. });
  403. }
  404. })
  405. .catch(e => {
  406. return;
  407. });
  408. } else if (url == '/pages/user/gzsq') {
  409. apply_status({})
  410. .then(e => {
  411. if (e.data.status != 0) {
  412. if (e.data.status == 3) {
  413. uni.showModal({
  414. title: '提示',
  415. content: '申请失败是否重新申请',
  416. success: function(res) {
  417. if (res.confirm) {
  418. uni.navigateTo({
  419. url
  420. });
  421. } else if (res.cancel) {
  422. console.log('用户点击取消');
  423. }
  424. }
  425. });
  426. } else {
  427. obj.$api.msg(e.data.str);
  428. }
  429. } else {
  430. uni.navigateTo({
  431. url
  432. });
  433. }
  434. })
  435. .catch(e => {});
  436. } else {
  437. uni.navigateTo({
  438. url,
  439. fail() {
  440. uni.switchTab({
  441. url
  442. });
  443. }
  444. });
  445. }
  446. }
  447. },
  448. useTool(e) {
  449. this.navTo(e.path);
  450. },
  451. // 签到弹窗
  452. goQd() {
  453. integral({})
  454. .then(e => {
  455. this.integral = console.log(e);
  456. // 改为已签到
  457. this.qded = true;
  458. this.today_integral = e.data.integral;
  459. this.actionDay++;
  460. this.sum_integral = +this.sum_integral + +e.data.integral;
  461. this.$refs.popupqd.open();
  462. })
  463. .catch(e => {
  464. console.log(e);
  465. });
  466. },
  467. // 关闭签到弹窗
  468. closeQd() {
  469. this.$refs.popupqd.close();
  470. },
  471. // 打开客服
  472. openKf() {
  473. this.$refs.popupkf.open();
  474. },
  475. // 关闭客服
  476. cancel() {
  477. this.$refs.popupkf.close();
  478. }
  479. }
  480. };
  481. </script>
  482. <style lang="scss">
  483. %flex-center {
  484. display: flex;
  485. flex-direction: column;
  486. justify-content: center;
  487. align-items: center;
  488. }
  489. %section {
  490. display: flex;
  491. justify-content: space-around;
  492. align-content: center;
  493. background: #fff;
  494. border-radius: 10rpx;
  495. }
  496. .container,
  497. page {
  498. min-height: 100%;
  499. height: auto;
  500. background-color: $page-color-base;
  501. }
  502. .vheigh {
  503. height: var(--status-bar-height);
  504. background-color: $base-color;
  505. }
  506. .user-section {
  507. height: 435rpx;
  508. padding: 15rpx 30rpx 0;
  509. position: relative;
  510. .bg {
  511. position: absolute;
  512. left: 0;
  513. top: 0;
  514. width: 100%;
  515. height: 100%;
  516. background-color: $base-color;
  517. }
  518. }
  519. .user-info-box {
  520. height: 180rpx;
  521. color: white;
  522. display: flex;
  523. align-items: center;
  524. justify-content: space-between;
  525. position: relative;
  526. z-index: 1;
  527. .detail {
  528. height: 130rpx;
  529. .portrait-box {
  530. height: 100%;
  531. .portrait {
  532. width: 130rpx;
  533. height: 100%;
  534. border: 5rpx solid #fff;
  535. border-radius: 50%;
  536. }
  537. }
  538. .info-box {
  539. margin-left: 20rpx;
  540. line-height: 1.5;
  541. .username {
  542. font-size: $font-lg + 6rpx;
  543. height: 100%;
  544. }
  545. }
  546. }
  547. .config {
  548. font-size: 48rpx;
  549. height: 130rpx;
  550. .setting {
  551. margin-right: 51rpx;
  552. }
  553. }
  554. }
  555. .vip-card-box {
  556. display: flex;
  557. flex-direction: column;
  558. color: #f7d680;
  559. height: 240rpx;
  560. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  561. border-radius: 16rpx 16rpx 0 0;
  562. overflow: hidden;
  563. position: relative;
  564. padding: 20rpx 24rpx;
  565. .card-bg {
  566. position: absolute;
  567. top: 20rpx;
  568. right: 0;
  569. width: 380rpx;
  570. height: 260rpx;
  571. }
  572. .b-btn {
  573. position: absolute;
  574. right: 20rpx;
  575. top: 16rpx;
  576. width: 132rpx;
  577. height: 40rpx;
  578. text-align: center;
  579. line-height: 40rpx;
  580. font-size: 22rpx;
  581. color: #36343c;
  582. border-radius: 20px;
  583. background: linear-gradient(left, #f9e6af, #ffd465);
  584. z-index: 1;
  585. }
  586. .tit {
  587. font-size: $font-base + 2rpx;
  588. color: #f7d680;
  589. margin-bottom: 28rpx;
  590. .iconfont {
  591. color: #f6e5a3;
  592. margin-right: 16rpx;
  593. }
  594. }
  595. .e-b {
  596. font-size: $font-sm;
  597. color: #d8cba9;
  598. margin-top: 10rpx;
  599. }
  600. }
  601. .cover-container {
  602. background: $page-color-base;
  603. margin-top: -150rpx;
  604. padding: 0 30rpx;
  605. position: relative;
  606. background: #f5f5f5;
  607. padding-bottom: 20rpx;
  608. .arc {
  609. position: absolute;
  610. left: 0;
  611. top: -34rpx;
  612. width: 100%;
  613. height: 36rpx;
  614. }
  615. }
  616. .tj-sction {
  617. @extend %section;
  618. .tj-item {
  619. @extend %flex-center;
  620. flex-direction: column;
  621. height: 140rpx;
  622. font-size: $font-sm;
  623. color: #75787d;
  624. }
  625. .num {
  626. font-size: $font-lg;
  627. color: $font-color-dark;
  628. margin-bottom: 8rpx;
  629. }
  630. }
  631. .item-box {
  632. border-radius: 10rpx;
  633. background-color: white;
  634. margin-top: 20rpx;
  635. .box-title {
  636. line-height: 1;
  637. padding: 30rpx;
  638. .title {
  639. font-size: $font-lg;
  640. font-weight: bold;
  641. }
  642. .link {
  643. font-size: $font-base - 2rpx;
  644. color: $font-color-light;
  645. }
  646. }
  647. .order-section {
  648. @extend %section;
  649. padding: 28rpx 0;
  650. .order-item {
  651. @extend %flex-center;
  652. width: 120rpx;
  653. height: 120rpx;
  654. border-radius: 10rpx;
  655. font-size: $font-sm;
  656. color: $font-color-dark;
  657. }
  658. .iconfont {
  659. font-size: 48rpx;
  660. margin-bottom: 18rpx;
  661. color: #fa436a;
  662. }
  663. .icon-shouhoutuikuan {
  664. font-size: 44rpx;
  665. }
  666. .icon {
  667. height: 50rpx;
  668. width: 48rpx;
  669. margin-bottom: 18rpx;
  670. background-size: 100%;
  671. background-repeat: no-repeat;
  672. background-position: center;
  673. .icon-img {
  674. width: 100%;
  675. height: 100%;
  676. }
  677. }
  678. }
  679. }
  680. .history-section {
  681. // padding: 30rpx 0 0;
  682. margin-top: 20rpx;
  683. background: #fff;
  684. border-radius: 10rpx;
  685. .sec-header {
  686. display: flex;
  687. align-items: center;
  688. font-size: $font-base;
  689. color: $font-color-dark;
  690. line-height: 40rpx;
  691. margin-left: 30rpx;
  692. padding-top: 30rpx;
  693. .iconfont {
  694. font-size: 44rpx;
  695. color: $color-red;
  696. margin-right: 16rpx;
  697. line-height: 40rpx;
  698. }
  699. }
  700. .h-list {
  701. white-space: nowrap;
  702. padding: 30rpx 30rpx 0;
  703. .h-list-image {
  704. display: inline-block;
  705. width: 160rpx;
  706. height: 160rpx;
  707. margin-right: 20rpx;
  708. border-radius: 10rpx;
  709. }
  710. }
  711. }
  712. .user-top {
  713. height:620rpx;
  714. position: relative;
  715. .user-top-bg {
  716. width: 750rpx;
  717. height: 660rpx;
  718. // width: 100%;
  719. // position: absolute;
  720. }
  721. .user-info {
  722. width: 750rpx;
  723. position: absolute;
  724. top: 66rpx;
  725. display: flex;
  726. flex-direction: column;
  727. justify-content: center;
  728. align-items: center;
  729. .avatar {
  730. position: relative;
  731. width: 134rpx;
  732. height: 134rpx;
  733. border-radius: 50%;
  734. .avatarimg {
  735. border-radius: 50%;
  736. width: 134rpx;
  737. height: 134rpx;
  738. }
  739. .real {
  740. position: absolute;
  741. bottom: 0;
  742. left: 10rpx;
  743. width: 120rpx;
  744. height: 34rpx;
  745. }
  746. }
  747. .name {
  748. margin-top: 20rpx;
  749. font-size: 32rpx;
  750. font-family: PingFang SC;
  751. font-weight: bold;
  752. color: #ffffff;
  753. }
  754. .phone {
  755. justify-content: start;
  756. margin-top: 13rpx;
  757. font-size: 30rpx;
  758. font-family: PingFang SC;
  759. font-weight: 500;
  760. color: #ffffff;
  761. .green {
  762. margin-left: 12rpx;
  763. position: relative;
  764. width: 100rpx;
  765. height: 40rpx;
  766. .green-bg {
  767. position: absolute;
  768. top: 0;
  769. left: 0;
  770. right: 0;
  771. width: 100%;
  772. height: 100%;
  773. }
  774. .green-title {
  775. line-height: 30rpx;
  776. text-align: center;
  777. position: relative;
  778. z-index: 10;
  779. font-size: 20rpx;
  780. font-family: PingFang SC;
  781. font-weight: 500;
  782. // color: #93794b;
  783. color: #fff;
  784. }
  785. }
  786. }
  787. .vip {
  788. margin-top: 20rpx;
  789. position: relative;
  790. width: 120rpx;
  791. height: 40rpx;
  792. .vip-bg {
  793. position: absolute;
  794. top: 0;
  795. left: 0;
  796. right: 0;
  797. width: 100%;
  798. height: 100%;
  799. }
  800. .vip-title {
  801. width: 120rpx;
  802. line-height: 40rpx;
  803. text-align: center;
  804. position: relative;
  805. z-index: 10;
  806. font-size: 20rpx;
  807. font-family: PingFang SC;
  808. font-weight: 500;
  809. color: #93794b;
  810. }
  811. }
  812. }
  813. .sy-box {
  814. position: absolute;
  815. bottom: 105rpx;
  816. height: 148rpx;
  817. width: 750rpx;
  818. .sy-item {
  819. flex-grow: 1;
  820. text-align: center;
  821. font-size: 28rpx;
  822. font-family: PingFang SC;
  823. font-weight: 500;
  824. color: #ffffff;
  825. .sy-item-val {}
  826. }
  827. .jg {
  828. width: 2rpx;
  829. height: 68rpx;
  830. background-color: #fff;
  831. }
  832. }
  833. }
  834. .qd-box {
  835. width: 690rpx;
  836. height: 210rpx;
  837. background: #ffffff;
  838. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  839. border-radius: 20rpx;
  840. margin: -105rpx auto 30rpx;
  841. position: relative;
  842. padding: 0 40rpx;
  843. font-size: 26rpx;
  844. font-family: PingFang SC;
  845. font-weight: 500;
  846. color: #666666;
  847. image {
  848. flex-shrink: 0;
  849. width: 65rpx;
  850. height: 68rpx;
  851. }
  852. .qd-info {
  853. flex-grow: 1;
  854. padding-left: 24rpx;
  855. line-height: 46rpx;
  856. }
  857. .qd-btn {
  858. width: 190rpx;
  859. height: 80rpx;
  860. line-height: 80rpx;
  861. border-radius: 20px;
  862. background: #dc262b;
  863. border-radius: 20rpx;
  864. text-align: center;
  865. font-size: 32rpx;
  866. font-family: PingFang SC;
  867. font-weight: 500;
  868. color: #ffffff;
  869. }
  870. .qded {
  871. background: #e8e8e8;
  872. color: #999999;
  873. }
  874. }
  875. .tool-box {
  876. padding-top: 30rpx;
  877. padding-bottom: 46rpx;
  878. width: 690rpx;
  879. background: #ffffff;
  880. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  881. border-radius: 20rpx;
  882. margin: 30rpx auto;
  883. flex-wrap: wrap;
  884. justify-content: flex-start;
  885. align-content: space-around;
  886. margin-top: -100rpx;
  887. z-index: 10;
  888. position: relative;
  889. .tool-item {
  890. width: 20%;
  891. height: 120rpx;
  892. flex-shrink: 0;
  893. flex-direction: column;
  894. align-content: space-between;
  895. justify-content: center;
  896. font-size: 28rpx;
  897. font-family: PingFang SC;
  898. font-weight: 500;
  899. color: #0c1732;
  900. .tool-item-img {
  901. width: 68rpx;
  902. height: 90rpx;
  903. position: relative;
  904. flex-shrink: 0;
  905. .tool-logo {
  906. position: absolute;
  907. width: 56rpx;
  908. height: 56rpx;
  909. top: 0;
  910. left: 0;
  911. bottom: 0;
  912. right: 0;
  913. margin: auto;
  914. }
  915. }
  916. .tool-item-name {
  917. display: inline-block;
  918. font-size: 26rpx;
  919. }
  920. }
  921. }
  922. .tool-list {
  923. width: 690rpx;
  924. margin: auto;
  925. background: transparent;
  926. .item{
  927. background: #ffffff;
  928. border-radius: 20rpx;
  929. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  930. margin-bottom: 10rpx;
  931. }
  932. }
  933. .popup-box {
  934. width: 522rpx;
  935. height: 605rpx;
  936. background-color: #ffffff;
  937. border-radius: 20rpx;
  938. position: relative;
  939. .img {
  940. position: relative;
  941. top: -56rpx;
  942. left: 0;
  943. width: 522rpx;
  944. height: 132rpx;
  945. display: flex;
  946. justify-content: center;
  947. image {
  948. border-radius: 20rpx 20rpx 0 0;
  949. width: 450rpx;
  950. height: 132rpx;
  951. }
  952. }
  953. .mian {
  954. margin-top: -44rpx;
  955. display: flex;
  956. flex-direction: column;
  957. align-items: center;
  958. // padding: 32rpx 32rpx;
  959. background-color: #ffffff;
  960. border-radius: 0 0 20rpx 20rpx;
  961. text-align: center;
  962. .delivery {
  963. font-size: 40rpx;
  964. color: #333333;
  965. display: flex;
  966. align-items: center;
  967. flex-direction: column;
  968. .title {}
  969. image {
  970. margin-top: 48rpx;
  971. width: 172rpx;
  972. height: 160rpx;
  973. }
  974. }
  975. .nocancel {
  976. font-size: 32rpx;
  977. color: #333333;
  978. margin-top: 14rpx;
  979. }
  980. .comfirm-box {
  981. margin-top: 52rpx;
  982. display: flex;
  983. // margin-bottom: 32rpx;
  984. // justify-content: space-around;
  985. .cancel {
  986. display: flex;
  987. align-items: center;
  988. justify-content: center;
  989. width: 197rpx;
  990. height: 74rpx;
  991. border: 1px solid #dcc786;
  992. border-radius: 38rpx;
  993. font-size: 32rpx;
  994. color: #605128;
  995. }
  996. .comfirm {
  997. margin-left: 32rpx;
  998. display: flex;
  999. align-items: center;
  1000. justify-content: center;
  1001. width: 197rpx;
  1002. height: 74rpx;
  1003. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  1004. border-radius: 38px;
  1005. font-size: 32rpx;
  1006. color: #605128;
  1007. }
  1008. }
  1009. }
  1010. }
  1011. .popup {
  1012. width: 560rpx;
  1013. padding-bottom: 45rpx;
  1014. background-color: #ffffff;
  1015. border-radius: 15rpx;
  1016. text-align: center;
  1017. line-height: 1;
  1018. .popup-dox {
  1019. position: relative;
  1020. .popup-logo {
  1021. margin: -160rpx auto 0;
  1022. width: 400rpx;
  1023. height: 200rpx;
  1024. }
  1025. }
  1026. .popup-title {
  1027. margin-top: 85rpx;
  1028. font-size: 40rpx;
  1029. font-family: PingFang SC;
  1030. font-weight: bold;
  1031. color: #2a2a2a;
  1032. text {
  1033. font-size: 56rpx;
  1034. color: #e83f30;
  1035. }
  1036. }
  1037. .popup-tip {
  1038. margin-top: 20rpx;
  1039. font-size: 28rpx;
  1040. font-family: PingFang SC;
  1041. font-weight: 500;
  1042. color: #8c8c8c;
  1043. text {
  1044. color: #e83f30;
  1045. }
  1046. }
  1047. .popup-btn {
  1048. margin: 58rpx auto 0;
  1049. width: 270rpx;
  1050. height: 66rpx;
  1051. background: #f0c838;
  1052. border-radius: 34rpx;
  1053. text-align: center;
  1054. line-height: 66rpx;
  1055. font-size: 36rpx;
  1056. font-family: Source Han Sans CN;
  1057. font-weight: 500;
  1058. color: #ffffff;
  1059. }
  1060. }
  1061. .page-btm {
  1062. background-color: #f5f5f5;
  1063. font-size: 20rpx;
  1064. text-align: center;
  1065. color: #d6d6d8;
  1066. }
  1067. </style>