user.vue 20 KB

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