user.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  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 title="收款信息" @click="navTo('/pages/collection/collection')"
  69. thumb="/static/icon/skxx.png"></uni-list-item>
  70. <uni-list-item title="实名认证" @click="navTo('/pages/user/approve')"
  71. thumb="/static/icon/bdsj.png"></uni-list-item>
  72. <uni-list-item title="收货地址" @click="navTo('/pages/set/address')"
  73. thumb="/static/icon/shdz.png"></uni-list-item>
  74. <uni-list-item title="客服" @click="openKf()" thumb="/static/icon/kf.png"></uni-list-item>
  75. <uni-list-item title="设置" @click="navTo('/pages/set/set')" thumb="/static/icon/uset.png"></uni-list-item>
  76. <!-- #ifdef H5 -->
  77. <uni-list-item title="绑定手机" @click="navTo('/pages/set/phone')"
  78. thumb="/static/icon/phone.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: 660rpx;
  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. // background-color: #bfa;
  819. .sy-item {
  820. flex-grow: 1;
  821. text-align: center;
  822. font-size: 28rpx;
  823. font-family: PingFang SC;
  824. font-weight: 500;
  825. color: #ffffff;
  826. .sy-item-val {}
  827. }
  828. .jg {
  829. width: 2rpx;
  830. height: 68rpx;
  831. background-color: #fff;
  832. }
  833. }
  834. }
  835. .qd-box {
  836. width: 690rpx;
  837. height: 210rpx;
  838. background: #ffffff;
  839. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  840. border-radius: 20rpx;
  841. margin: -105rpx auto 30rpx;
  842. position: relative;
  843. padding: 0 40rpx;
  844. font-size: 26rpx;
  845. font-family: PingFang SC;
  846. font-weight: 500;
  847. color: #666666;
  848. image {
  849. flex-shrink: 0;
  850. width: 65rpx;
  851. height: 68rpx;
  852. }
  853. .qd-info {
  854. flex-grow: 1;
  855. padding-left: 24rpx;
  856. line-height: 46rpx;
  857. }
  858. .qd-btn {
  859. width: 190rpx;
  860. height: 80rpx;
  861. line-height: 80rpx;
  862. border-radius: 20px;
  863. background: #dc262b;
  864. border-radius: 20rpx;
  865. text-align: center;
  866. font-size: 32rpx;
  867. font-family: PingFang SC;
  868. font-weight: 500;
  869. color: #ffffff;
  870. }
  871. .qded {
  872. background: #e8e8e8;
  873. color: #999999;
  874. }
  875. }
  876. .tool-box {
  877. padding: 60rpx 0 0;
  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. .tool-item {
  887. width: 25%;
  888. height: 120rpx;
  889. flex-shrink: 0;
  890. margin-bottom: 60rpx;
  891. flex-direction: column;
  892. align-content: space-between;
  893. justify-content: center;
  894. font-size: 28rpx;
  895. font-family: PingFang SC;
  896. font-weight: 500;
  897. color: #0c1732;
  898. .tool-item-img {
  899. width: 68rpx;
  900. height: 90rpx;
  901. position: relative;
  902. flex-shrink: 0;
  903. .tool-logo {
  904. position: absolute;
  905. width: 56rpx;
  906. height: 56rpx;
  907. top: 0;
  908. left: 0;
  909. bottom: 0;
  910. right: 0;
  911. margin: auto;
  912. }
  913. }
  914. .tool-item-name {
  915. display: inline-block;
  916. }
  917. }
  918. }
  919. .tool-list {
  920. width: 690rpx;
  921. margin: auto;
  922. background: #ffffff;
  923. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  924. border-radius: 20rpx;
  925. }
  926. .popup-box {
  927. width: 522rpx;
  928. height: 605rpx;
  929. background-color: #ffffff;
  930. border-radius: 20rpx;
  931. position: relative;
  932. .img {
  933. position: relative;
  934. top: -56rpx;
  935. left: 0;
  936. width: 522rpx;
  937. height: 132rpx;
  938. display: flex;
  939. justify-content: center;
  940. image {
  941. border-radius: 20rpx 20rpx 0 0;
  942. width: 450rpx;
  943. height: 132rpx;
  944. }
  945. }
  946. .mian {
  947. margin-top: -44rpx;
  948. display: flex;
  949. flex-direction: column;
  950. align-items: center;
  951. // padding: 32rpx 32rpx;
  952. background-color: #ffffff;
  953. border-radius: 0 0 20rpx 20rpx;
  954. text-align: center;
  955. .delivery {
  956. font-size: 40rpx;
  957. color: #333333;
  958. display: flex;
  959. align-items: center;
  960. flex-direction: column;
  961. .title {}
  962. image {
  963. margin-top: 48rpx;
  964. width: 172rpx;
  965. height: 160rpx;
  966. }
  967. }
  968. .nocancel {
  969. font-size: 32rpx;
  970. color: #333333;
  971. margin-top: 14rpx;
  972. }
  973. .comfirm-box {
  974. margin-top: 52rpx;
  975. display: flex;
  976. // margin-bottom: 32rpx;
  977. // justify-content: space-around;
  978. .cancel {
  979. display: flex;
  980. align-items: center;
  981. justify-content: center;
  982. width: 197rpx;
  983. height: 74rpx;
  984. border: 1px solid #dcc786;
  985. border-radius: 38rpx;
  986. font-size: 32rpx;
  987. color: #605128;
  988. }
  989. .comfirm {
  990. margin-left: 32rpx;
  991. display: flex;
  992. align-items: center;
  993. justify-content: center;
  994. width: 197rpx;
  995. height: 74rpx;
  996. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  997. border-radius: 38px;
  998. font-size: 32rpx;
  999. color: #605128;
  1000. }
  1001. }
  1002. }
  1003. }
  1004. .popup {
  1005. width: 560rpx;
  1006. padding-bottom: 45rpx;
  1007. background-color: #ffffff;
  1008. border-radius: 15rpx;
  1009. text-align: center;
  1010. line-height: 1;
  1011. .popup-dox {
  1012. position: relative;
  1013. .popup-logo {
  1014. margin: -160rpx auto 0;
  1015. width: 400rpx;
  1016. height: 200rpx;
  1017. }
  1018. }
  1019. .popup-title {
  1020. margin-top: 85rpx;
  1021. font-size: 40rpx;
  1022. font-family: PingFang SC;
  1023. font-weight: bold;
  1024. color: #2a2a2a;
  1025. text {
  1026. font-size: 56rpx;
  1027. color: #e83f30;
  1028. }
  1029. }
  1030. .popup-tip {
  1031. margin-top: 20rpx;
  1032. font-size: 28rpx;
  1033. font-family: PingFang SC;
  1034. font-weight: 500;
  1035. color: #8c8c8c;
  1036. text {
  1037. color: #e83f30;
  1038. }
  1039. }
  1040. .popup-btn {
  1041. margin: 58rpx auto 0;
  1042. width: 270rpx;
  1043. height: 66rpx;
  1044. background: #f0c838;
  1045. border-radius: 34rpx;
  1046. text-align: center;
  1047. line-height: 66rpx;
  1048. font-size: 36rpx;
  1049. font-family: Source Han Sans CN;
  1050. font-weight: 500;
  1051. color: #ffffff;
  1052. }
  1053. }
  1054. .page-btm {
  1055. background-color: #f5f5f5;
  1056. font-size: 20rpx;
  1057. text-align: center;
  1058. color: #d6d6d8;
  1059. }
  1060. </style>