user.vue 22 KB

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