user.vue 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  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 || '/static/error/missing-face.png'" mode=""></image>
  8. <view class="name">{{ userInfo.nickname || '游客' }}</view>
  9. <view class="phone" v-if="userInfo.uid">ID号:{{ userInfo.uid }}</view>
  10. <view class="vip" v-if="userInfo.level_name">
  11. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  12. <view class="vip-title">{{userInfo.level_name}}</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/myyue')">
  26. <view class="sy-item-val">
  27. {{userInfo.now_money}}
  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 == null){
  315. uni.navigateTo({
  316. url
  317. });
  318. }
  319. if(e.data.is_auth == 0){
  320. uni.navigateTo({
  321. url
  322. });
  323. }
  324. if(e.data.is_auth == 1){
  325. this.$api.msg('正在审核中请耐心等待')
  326. }
  327. if(e.data.is_auth == 2){
  328. this.$api.msg('已通过实名认证,无需再实名认证')
  329. }
  330. if(e.data.is_auth == 3) {
  331. uni.showModal({
  332. title: '提示',
  333. content:'申请失败,原因'+ e.data.off +'是否重新申请',
  334. success: function (res) {
  335. if (res.confirm) {
  336. uni.navigateTo({
  337. url
  338. });
  339. } else if (res.cancel) {
  340. console.log('用户点击取消');
  341. }
  342. }
  343. })
  344. }
  345. }).catch(e =>{
  346. return
  347. })
  348. } else if (url == '/pages/user/gzsq'){
  349. apply_status({}).then(e =>{
  350. if(e.data.status != 0){
  351. if(e.data.status == 3){
  352. uni.showModal({
  353. title: '提示',
  354. content:'申请失败是否重新申请',
  355. success: function (res) {
  356. if (res.confirm) {
  357. uni.navigateTo({
  358. url
  359. });
  360. } else if (res.cancel) {
  361. console.log('用户点击取消');
  362. }
  363. }
  364. })
  365. }else{
  366. obj.$api.msg(e.data.str)
  367. }
  368. } else {
  369. uni.navigateTo({
  370. url
  371. });
  372. }
  373. }).catch(e =>{
  374. })
  375. }else {
  376. uni.navigateTo({
  377. url
  378. });
  379. }
  380. }
  381. },
  382. useTool(e) {
  383. this.navTo(e.path)
  384. },
  385. // 签到弹窗
  386. goQd() {
  387. integral({})
  388. .then(e => {
  389. this.integral =
  390. console.log(e);
  391. // 改为已签到
  392. this.qded = true
  393. this.today_integral = e.data.integral
  394. this.actionDay++;
  395. this.sum_integral = +this.sum_integral + +e.data.integral
  396. this.$refs.popupqd.open()
  397. })
  398. .catch(e => {
  399. console.log(e);
  400. });
  401. },
  402. // 关闭签到弹窗
  403. closeQd() {
  404. this.$refs.popupqd.close()
  405. },
  406. // 打开客服
  407. openKf() {
  408. this.$refs.popupkf.open()
  409. },
  410. // 关闭客服
  411. cancel() {
  412. this.$refs.popupkf.close()
  413. },
  414. }
  415. };
  416. </script>
  417. <style lang="scss">
  418. %flex-center {
  419. display: flex;
  420. flex-direction: column;
  421. justify-content: center;
  422. align-items: center;
  423. }
  424. %section {
  425. display: flex;
  426. justify-content: space-around;
  427. align-content: center;
  428. background: #fff;
  429. border-radius: 10rpx;
  430. }
  431. .container,page {
  432. min-height: 100%;
  433. height: auto;
  434. background-color: $page-color-base;
  435. }
  436. .vheigh {
  437. height: var(--status-bar-height);
  438. background-color: $base-color;
  439. }
  440. .user-section {
  441. height: 435rpx;
  442. padding: 15rpx 30rpx 0;
  443. position: relative;
  444. .bg {
  445. position: absolute;
  446. left: 0;
  447. top: 0;
  448. width: 100%;
  449. height: 100%;
  450. background-color: $base-color;
  451. }
  452. }
  453. .user-info-box {
  454. height: 180rpx;
  455. color: white;
  456. display: flex;
  457. align-items: center;
  458. justify-content: space-between;
  459. position: relative;
  460. z-index: 1;
  461. .detail {
  462. height: 130rpx;
  463. .portrait-box {
  464. height: 100%;
  465. .portrait {
  466. width: 130rpx;
  467. height: 100%;
  468. border: 5rpx solid #fff;
  469. border-radius: 50%;
  470. }
  471. }
  472. .info-box {
  473. margin-left: 20rpx;
  474. line-height: 1.5;
  475. .username {
  476. font-size: $font-lg + 6rpx;
  477. height: 100%;
  478. }
  479. }
  480. }
  481. .config {
  482. font-size: 48rpx;
  483. height: 130rpx;
  484. .setting {
  485. margin-right: 51rpx;
  486. }
  487. }
  488. }
  489. .vip-card-box {
  490. display: flex;
  491. flex-direction: column;
  492. color: #f7d680;
  493. height: 240rpx;
  494. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  495. border-radius: 16rpx 16rpx 0 0;
  496. overflow: hidden;
  497. position: relative;
  498. padding: 20rpx 24rpx;
  499. .card-bg {
  500. position: absolute;
  501. top: 20rpx;
  502. right: 0;
  503. width: 380rpx;
  504. height: 260rpx;
  505. }
  506. .b-btn {
  507. position: absolute;
  508. right: 20rpx;
  509. top: 16rpx;
  510. width: 132rpx;
  511. height: 40rpx;
  512. text-align: center;
  513. line-height: 40rpx;
  514. font-size: 22rpx;
  515. color: #36343c;
  516. border-radius: 20px;
  517. background: linear-gradient(left, #f9e6af, #ffd465);
  518. z-index: 1;
  519. }
  520. .tit {
  521. font-size: $font-base + 2rpx;
  522. color: #f7d680;
  523. margin-bottom: 28rpx;
  524. .iconfont {
  525. color: #f6e5a3;
  526. margin-right: 16rpx;
  527. }
  528. }
  529. .e-b {
  530. font-size: $font-sm;
  531. color: #d8cba9;
  532. margin-top: 10rpx;
  533. }
  534. }
  535. .cover-container {
  536. background: $page-color-base;
  537. margin-top: -150rpx;
  538. padding: 0 30rpx;
  539. position: relative;
  540. background: #f5f5f5;
  541. padding-bottom: 20rpx;
  542. .arc {
  543. position: absolute;
  544. left: 0;
  545. top: -34rpx;
  546. width: 100%;
  547. height: 36rpx;
  548. }
  549. }
  550. .tj-sction {
  551. @extend %section;
  552. .tj-item {
  553. @extend %flex-center;
  554. flex-direction: column;
  555. height: 140rpx;
  556. font-size: $font-sm;
  557. color: #75787d;
  558. }
  559. .num {
  560. font-size: $font-lg;
  561. color: $font-color-dark;
  562. margin-bottom: 8rpx;
  563. }
  564. }
  565. .item-box {
  566. border-radius: 10rpx;
  567. background-color: white;
  568. margin-top: 20rpx;
  569. .box-title {
  570. line-height: 1;
  571. padding: 30rpx;
  572. .title {
  573. font-size: $font-lg;
  574. font-weight: bold;
  575. }
  576. .link {
  577. font-size: $font-base - 2rpx;
  578. color: $font-color-light;
  579. }
  580. }
  581. .order-section {
  582. @extend %section;
  583. padding: 28rpx 0;
  584. .order-item {
  585. @extend %flex-center;
  586. width: 120rpx;
  587. height: 120rpx;
  588. border-radius: 10rpx;
  589. font-size: $font-sm;
  590. color: $font-color-dark;
  591. }
  592. .iconfont {
  593. font-size: 48rpx;
  594. margin-bottom: 18rpx;
  595. color: #fa436a;
  596. }
  597. .icon-shouhoutuikuan {
  598. font-size: 44rpx;
  599. }
  600. .icon {
  601. height: 50rpx;
  602. width: 48rpx;
  603. margin-bottom: 18rpx;
  604. background-size: 100%;
  605. background-repeat: no-repeat;
  606. background-position: center;
  607. .icon-img {
  608. width: 100%;
  609. height: 100%;
  610. }
  611. }
  612. }
  613. }
  614. .history-section {
  615. // padding: 30rpx 0 0;
  616. margin-top: 20rpx;
  617. background: #fff;
  618. border-radius: 10rpx;
  619. .sec-header {
  620. display: flex;
  621. align-items: center;
  622. font-size: $font-base;
  623. color: $font-color-dark;
  624. line-height: 40rpx;
  625. margin-left: 30rpx;
  626. padding-top: 30rpx;
  627. .iconfont {
  628. font-size: 44rpx;
  629. color: $color-red;
  630. margin-right: 16rpx;
  631. line-height: 40rpx;
  632. }
  633. }
  634. .h-list {
  635. white-space: nowrap;
  636. padding: 30rpx 30rpx 0;
  637. .h-list-image {
  638. display: inline-block;
  639. width: 160rpx;
  640. height: 160rpx;
  641. margin-right: 20rpx;
  642. border-radius: 10rpx;
  643. }
  644. }
  645. }
  646. .user-top {
  647. height: 660rpx;
  648. position: relative;
  649. .user-top-bg {
  650. width: 750rpx;
  651. height: 660rpx;
  652. // width: 100%;
  653. // position: absolute;
  654. }
  655. .user-info {
  656. width: 750rpx;
  657. position: absolute;
  658. top: 66rpx;
  659. display: flex;
  660. flex-direction: column;
  661. justify-content: center;
  662. align-items: center;
  663. .avtar {
  664. width: 134rpx;
  665. height: 134rpx;
  666. border-radius: 50%;
  667. }
  668. .name {
  669. margin-top: 20rpx;
  670. font-size: 32rpx;
  671. font-family: PingFang SC;
  672. font-weight: bold;
  673. color: #FFFFFF;
  674. }
  675. .phone {
  676. margin-top: 13rpx;
  677. font-size: 30rpx;
  678. font-family: PingFang SC;
  679. font-weight: 500;
  680. color: #FFFFFF;
  681. }
  682. .vip {
  683. margin-top: 20rpx;
  684. position: relative;
  685. width: 120rpx;
  686. height: 40rpx;
  687. .vip-bg {
  688. position: absolute;
  689. top: 0;
  690. left: 0;
  691. right: 0;
  692. width: 100%;
  693. height: 100%;
  694. }
  695. .vip-title {
  696. width: 120rpx;
  697. line-height: 40rpx;
  698. text-align: center;
  699. position: relative;
  700. z-index: 10;
  701. font-size: 20rpx;
  702. font-family: PingFang SC;
  703. font-weight: 500;
  704. color: #93794b;
  705. }
  706. }
  707. }
  708. .sy-box {
  709. position: absolute;
  710. bottom: 105rpx;
  711. height: 148rpx;
  712. width: 750rpx;
  713. // background-color: #bfa;
  714. .sy-item {
  715. flex-grow: 1;
  716. text-align: center;
  717. font-size: 28rpx;
  718. font-family: PingFang SC;
  719. font-weight: 500;
  720. color: #FFFFFF;
  721. .sy-item-val {
  722. }
  723. }
  724. .jg {
  725. width: 2rpx;
  726. height: 68rpx;
  727. background-color: #fff;
  728. }
  729. }
  730. }
  731. .qd-box {
  732. width: 690rpx;
  733. height: 210rpx;
  734. background: #FFFFFF;
  735. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  736. border-radius: 20rpx;
  737. margin: -105rpx auto 30rpx;
  738. position: relative;
  739. padding: 0 40rpx;
  740. font-size: 26rpx;
  741. font-family: PingFang SC;
  742. font-weight: 500;
  743. color: #666666;
  744. image {
  745. flex-shrink: 0;
  746. width: 65rpx;
  747. height: 68rpx;
  748. }
  749. .qd-info {
  750. flex-grow: 1;
  751. padding-left: 24rpx;
  752. line-height: 46rpx;
  753. }
  754. .qd-btn {
  755. width: 190rpx;
  756. height: 80rpx;
  757. line-height: 80rpx;
  758. border-radius: 20px;
  759. background: #DC262B;
  760. border-radius: 20rpx;
  761. text-align: center;
  762. font-size: 32rpx;
  763. font-family: PingFang SC;
  764. font-weight: 500;
  765. color: #FFFFFF;
  766. }
  767. .qded {
  768. background: #E8E8E8;
  769. color: #999999;
  770. }
  771. }
  772. .tool-box {
  773. padding: 60rpx 0 0;
  774. width: 690rpx;
  775. background: #FFFFFF;
  776. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  777. border-radius: 20rpx;
  778. margin: 30rpx auto;
  779. flex-wrap: wrap;
  780. justify-content: flex-start;
  781. align-content: space-around;
  782. .tool-item {
  783. width: 25%;
  784. height: 120rpx;
  785. flex-shrink: 0;
  786. margin-bottom: 60rpx;
  787. flex-direction: column;
  788. align-content: space-between;
  789. justify-content: center;
  790. font-size: 28rpx;
  791. font-family: PingFang SC;
  792. font-weight: 500;
  793. color: #0C1732;
  794. .tool-item-img {
  795. width: 68rpx;
  796. height: 90rpx;
  797. position: relative;
  798. flex-shrink: 0;
  799. .tool-logo {
  800. position: absolute;
  801. width: 56rpx;
  802. height: 56rpx;
  803. top: 0;
  804. left: 0;
  805. bottom: 0;
  806. right: 0;
  807. margin: auto;
  808. }
  809. }
  810. .tool-item-name {
  811. display: inline-block;
  812. }
  813. }
  814. }
  815. .tool-list {
  816. width: 690rpx;
  817. margin: auto;
  818. background: #FFFFFF;
  819. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  820. border-radius: 20rpx;
  821. }
  822. .popup-box {
  823. width: 522rpx;
  824. height: 605rpx;
  825. background-color: #ffffff;
  826. border-radius: 20rpx;
  827. position: relative;
  828. .img {
  829. position: relative;
  830. top: -56rpx;
  831. left: 0;
  832. width: 522rpx;
  833. height: 132rpx;
  834. display: flex;
  835. justify-content: center;
  836. image {
  837. border-radius: 20rpx 20rpx 0 0;
  838. width: 450rpx;
  839. height: 132rpx;
  840. }
  841. }
  842. .mian {
  843. margin-top: -44rpx;
  844. display: flex;
  845. flex-direction: column;
  846. align-items: center;
  847. // padding: 32rpx 32rpx;
  848. background-color: #ffffff;
  849. border-radius: 0 0 20rpx 20rpx;
  850. text-align: center;
  851. .delivery {
  852. font-size: 40rpx;
  853. color: #333333;
  854. display: flex;
  855. align-items: center;
  856. flex-direction: column;
  857. .title {}
  858. image {
  859. margin-top: 48rpx;
  860. width: 172rpx;
  861. height: 160rpx;
  862. }
  863. }
  864. .nocancel {
  865. font-size: 32rpx;
  866. color: #333333;
  867. margin-top: 14rpx;
  868. }
  869. .comfirm-box {
  870. margin-top: 52rpx;
  871. display: flex;
  872. // margin-bottom: 32rpx;
  873. // justify-content: space-around;
  874. .cancel {
  875. display: flex;
  876. align-items: center;
  877. justify-content: center;
  878. width: 197rpx;
  879. height: 74rpx;
  880. border: 1px solid #dcc786;
  881. border-radius: 38rpx;
  882. font-size: 32rpx;
  883. color: #605128;
  884. }
  885. .comfirm {
  886. margin-left: 32rpx;
  887. display: flex;
  888. align-items: center;
  889. justify-content: center;
  890. width: 197rpx;
  891. height: 74rpx;
  892. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  893. border-radius: 38px;
  894. font-size: 32rpx;
  895. color: #605128;
  896. }
  897. }
  898. }
  899. }
  900. .popup {
  901. width: 560rpx;
  902. padding-bottom: 45rpx;
  903. background-color: #ffffff;
  904. border-radius: 15rpx;
  905. text-align: center;
  906. line-height: 1;
  907. .popup-dox {
  908. position: relative;
  909. .popup-logo {
  910. margin: -160rpx auto 0;
  911. width: 400rpx;
  912. height: 200rpx;
  913. }
  914. }
  915. .popup-title {
  916. margin-top: 85rpx;
  917. font-size: 40rpx;
  918. font-family: PingFang SC;
  919. font-weight: bold;
  920. color: #2a2a2a;
  921. text {
  922. font-size: 56rpx;
  923. color: #e83f30;
  924. }
  925. }
  926. .popup-tip {
  927. margin-top: 20rpx;
  928. font-size: 28rpx;
  929. font-family: PingFang SC;
  930. font-weight: 500;
  931. color: #8c8c8c;
  932. text {
  933. color: #e83f30;
  934. }
  935. }
  936. .popup-btn {
  937. margin: 58rpx auto 0;
  938. width: 270rpx;
  939. height: 66rpx;
  940. background: #f0c838;
  941. border-radius: 34rpx;
  942. text-align: center;
  943. line-height: 66rpx;
  944. font-size: 36rpx;
  945. font-family: Source Han Sans CN;
  946. font-weight: 500;
  947. color: #ffffff;
  948. }
  949. }
  950. </style>