爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

903 lines
21 KiB

2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
2 months ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
  1. <template>
  2. <view class="container safe-area">
  3. <!-- 顶部banner -->
  4. <view class="banner">
  5. <swiper
  6. :indicator-dots="false"
  7. :autoplay="true"
  8. :interval="3000"
  9. :duration="500"
  10. circular
  11. style="width: 100%; height: 380rpx;"
  12. >
  13. <swiper-item v-for="(item, index) in bannerList" :key="item.id || index">
  14. <video
  15. v-if="item.type == 1"
  16. :src="item.voUrl"
  17. autoplay
  18. muted
  19. loop
  20. :controls="false"
  21. :show-play-btn="false"
  22. :show-center-play-btn="false"
  23. object-fit="cover"
  24. style="width: 100%; height: 100%;"
  25. ></video>
  26. <image v-else :src="item.image" mode="aspectFill" style="width: 100%; height: 100%;" />
  27. </swiper-item>
  28. </swiper>
  29. </view>
  30. <view class="content">
  31. <!-- 回收流程 -->
  32. <view class="process-section">
  33. <view class="section-header">
  34. <text class="title">回收流程</text>
  35. </view>
  36. <view class="process-grid">
  37. <view class="process-item" v-for="(item, index) in processes" :key="index">
  38. <image :src="item.icon" mode="aspectFit" class="process-icon"></image>
  39. <text class="process-text">{{item.text}}</text>
  40. <!-- <text class="process-number">{{index + 1}}</text> -->
  41. </view>
  42. </view>
  43. <button class="submit-btn" hover-class="submit-btn-hover" @click="getPickupto">
  44. <text class="submit-btn-hearder">快速免费上门</text>
  45. <text class="btn-desc">点击开始预约</text>
  46. <image src="/static/home/1745478917401 3.png" mode="aspectFit" class="arrow-icon"></image>
  47. <image src="/static/home/1745478917401 4.png" mode="aspectFit" class="arrow-icon-left"></image>
  48. </button>
  49. </view>
  50. <uv-divider :dashed="true" ></uv-divider>
  51. <!-- 服务城市 -->
  52. <view class="city-section" @click="goCity">
  53. <view class="city-header">
  54. <text>已开通包邮服务城市有哪些</text>
  55. <uni-icons type="right" size="16" color="#999"></uni-icons>
  56. </view>
  57. <text class="city-list">{{ cityListStr }}</text>
  58. </view>
  59. <view class="Xiadan-section">
  60. <image :src="addressCion" alt="" class="process-icon"/>
  61. <text class="left-text">不会下单联系客服了解回收流程</text>
  62. <view class="right" @click="goService">
  63. <image src="/static/home/联系客服.png" mode=""></image>
  64. <text>联系客服</text>
  65. </view>
  66. </view>
  67. <!-- 关于我们 -->
  68. <view class="about-section">
  69. <view class="section-header">
  70. <text class="title">关于我们</text>
  71. </view>
  72. <view class="about-footer" @click="goAbout">
  73. <view class="about-header">
  74. <image :src="sbkCion" mode="aspectFit" class="logo"></image>
  75. <!-- <text class="about-title">关于我们</text> -->
  76. </view>
  77. <view class="about-content">
  78. <text>免费寄送件验秒到账助环保</text>
  79. <text class="about-desc">让二手交易更轻松让地球多一份绿意</text>
  80. </view>
  81. <uni-icons type="right" size="16" color="#999"></uni-icons>
  82. </view>
  83. </view>
  84. <!-- 价格概览 -->
  85. <view class="price-section">
  86. <view class="section-header" @click="getPickupto">
  87. <text class="title">价格概览</text>
  88. <view class="more">
  89. <uni-icons type="right" size="14" color="#999"></uni-icons>
  90. <text>查看更多</text>
  91. </view>
  92. </view>
  93. <view class="price-grid">
  94. <view class="price-item" v-for="(item, index) in priceList" :key="item.id || index" @tap="goToRecycleCategory(item.id)">
  95. <image v-if="item.icon" :src="item.icon" mode="aspectFit" class="item-icon"></image>
  96. <view v-else class="item-icon placeholder"></view>
  97. <text class="item-name">{{item.name}}</text>
  98. <text class="item-price">¥ {{item.price}}
  99. <text class="item-price-right">/{{item.unit}}</text>
  100. </text>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 最近回收 -->
  105. <view class="recent-section">
  106. <view class="section-header">
  107. <text class="title">最近回收</text>
  108. </view>
  109. <view class="records-grid">
  110. <view
  111. class="record-item"
  112. v-for="(item, index) in records"
  113. :key="index"
  114. @tap="goToInspectionReport(item)"
  115. >
  116. <image :src="item.image" mode=""></image>
  117. <text class="location">{{item.name}}</text>
  118. <text class="user-id">****{{item.phone ? item.phone.slice(-4) : ''}}</text>
  119. <text class="user-id-f">成功完成衣物回收已到账</text>
  120. <text class="amount">+ ¥{{item.price}}</text>
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 回收去向 -->
  125. <view class="destination-section">
  126. <view class="section-header">
  127. <text class="title">回收去向</text>
  128. </view>
  129. <view class="destination-grid">
  130. <view class="destination-item " :class="`destination-item${index + 1}`" v-for="(item, index) in destinations" :key="index">
  131. <image :src="item.icon" mode="aspectFit" class="dest-icon"></image>
  132. <view class="dest-info">
  133. <text class="dest-title">{{item.title}}</text>
  134. <text class="dest-desc">{{item.desc}}</text>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 根据角色显示不同的导航栏 -->
  141. <uv-tabbar
  142. :value="value"
  143. :fixed="true"
  144. @change="changeTo"
  145. >
  146. <uv-tabbar-item text="首页" >
  147. <template v-slot:active-icon>
  148. <image class="icon" src="/static/home/首页-点击.png"></image>
  149. </template>
  150. <template v-slot:inactive-icon>
  151. <image class="icon" src="/static/home/首页-未点击.png"></image>
  152. </template>
  153. </uv-tabbar-item>
  154. <uv-tabbar-item text="回收" >
  155. <template v-slot:active-icon>
  156. <image class="icon" src="/static/home/回收-点击.png"></image>
  157. </template>
  158. <template v-slot:inactive-icon>
  159. <image class="icon" src="/static/home/回收-未点击.png"></image>
  160. </template>
  161. </uv-tabbar-item>
  162. <uv-tabbar-item text="我的" >
  163. <template v-slot:active-icon>
  164. <image class="icon" src="/static/home/我的-点击.png"></image>
  165. </template>
  166. <template v-slot:inactive-icon>
  167. <image class="icon" src="/static/home/我的-未点击.png"></image>
  168. </template>
  169. </uv-tabbar-item>
  170. </uv-tabbar>
  171. </view>
  172. </template>
  173. <script>
  174. import pullRefreshMixin from '../mixins/pullRefreshMixin.js'
  175. export default {
  176. mixins: [pullRefreshMixin],
  177. data() {
  178. return {
  179. value:0,
  180. processes: [
  181. ],
  182. priceList: [],
  183. records: [],
  184. destinations: [
  185. {
  186. icon: '/static/home/爱心援乡.png',
  187. title: '爱心援乡',
  188. desc: '精准帮扶贫困群体'
  189. },
  190. {
  191. icon: '/static/home/回塑新源.png',
  192. title: '回塑新源',
  193. desc: '塑料的第二次成型'
  194. },
  195. {
  196. icon: '/static/home/织物出海.png',
  197. title: '织物出海',
  198. desc: '分拣出最高价值'
  199. },
  200. {
  201. icon: '/static/home/碳循再生.png',
  202. title: '碳循再生',
  203. desc: '减碳从出发生系统'
  204. }
  205. ],
  206. bannerList: [],
  207. pricePreviewList: [],
  208. cityList: [],
  209. addressCion: '',
  210. sbkCion: '',
  211. }
  212. },
  213. computed: {
  214. cityListStr() {
  215. // 只取前8个城市,超出用...结尾
  216. const names = this.cityList.map(c => c.name)
  217. const max = 8
  218. if (names.length > max) {
  219. return names.slice(0, max).join('、') + '...'
  220. }
  221. return names.join('、')
  222. },
  223. address_cion() {
  224. console.log(getApp().globalData.configData,'home-getApp().globalData.configData')
  225. const item = getApp().globalData.configData.find(i => i.keyName === 'address_cion')
  226. return item ? item.keyContent : ''
  227. },
  228. sbk_cion() {
  229. const item = getApp().globalData.configData.find(i => i.keyName === 'sbk_cion')
  230. return item ? item.keyContent : ''
  231. }
  232. },
  233. methods: {
  234. changeTo(e){
  235. this.value = e
  236. console.log(e,'111')
  237. if(e==1){
  238. uni.reLaunch({
  239. url: '/pages/component/recycle'
  240. },true);
  241. }else if(e == 2){
  242. uni.reLaunch({
  243. url: '/pages/component/my'
  244. },true);
  245. }
  246. },
  247. goAbout(){
  248. uni.navigateTo({
  249. url: '/pages/subcomponent/about'
  250. })
  251. },
  252. goCity(){
  253. uni.navigateTo({
  254. url: '/pages/baoyou-city/baoyou-city'
  255. })
  256. },
  257. getPickupto(){
  258. uni.switchTab({
  259. url: '/pages/component/recycle'
  260. })
  261. },
  262. async onRefresh() {
  263. await new Promise(resolve => setTimeout(resolve, 1000))
  264. },
  265. getAreaList() {
  266. this.$api('getAreaList', {}, (res) => {
  267. console.log(res,'getAreaList');
  268. if (res.code == 200 && Array.isArray(res.result)) {
  269. // 按sort升序排序
  270. const sorted = res.result.slice().sort((a, b) => a.sort - b.sort)
  271. this.processes = sorted.map(item => ({
  272. // id: item.id,
  273. icon: item.image,
  274. text: item.title
  275. }))
  276. }
  277. })
  278. },
  279. goService(){
  280. uni.navigateTo({
  281. url: '/pages/subcomponent/admin_faq'
  282. })
  283. },
  284. goToRecycleCategory(id) {
  285. getApp().globalData.targetRecycleCategoryId = id
  286. console.log(getApp().globalData.targetRecycleCategoryId,'getApp().globalData.targetRecycleCategoryId')
  287. uni.switchTab({
  288. url: '/pages/component/recycle'
  289. })
  290. },
  291. getPricePreview() {
  292. const resList = this.pricePreviewList || []
  293. if (Array.isArray(resList)) {
  294. // 只取一级分类,按sort升序
  295. const firstLevel = resList.filter(item => item.pid === '0').sort((a, b) => a.sort - b.sort)
  296. // console.log(firstLevel,'firstLevel');
  297. this.priceList = firstLevel.map(item => {
  298. // 从静态表中找图片和价格
  299. // const staticItem = this.priceListStatic.find(s => s.name.replace(/\s/g, '') === item.title.replace(/\s/g, ''))
  300. // console.log(item,'item');
  301. return {
  302. id: item.id, // 保证有id
  303. icon: item.icon ? item.icon : '',
  304. name: item.title,
  305. price: item.priceNo ? item.priceNo : '',
  306. unit: item.unit ? item.unit : ''
  307. }
  308. })
  309. }
  310. },
  311. getRecentGoods() {
  312. this.$api('getRecentGoodsList', {}, res => {
  313. if (res && res.code === 200 && Array.isArray(res.result) && res.result.length > 0) {
  314. this.records = res.result.map(item => ({
  315. id: item.id,
  316. image: item.image,
  317. name: item.name,
  318. phone: item.phone,
  319. price: item.price
  320. }))
  321. } else {
  322. this.records = []
  323. }
  324. })
  325. },
  326. goToInspectionReport(item) {
  327. uni.navigateTo({
  328. url: `/pages/subcomponent/inspection-report?id=${item.id}`
  329. })
  330. },
  331. getFreeCityList() {
  332. this.$api('getFreeCityList', {}, res => {
  333. if (res && res.code === 200 && Array.isArray(res.result)) {
  334. // 只取一级城市(有children的name)
  335. this.cityList = res.result.map(item => ({ name: item.name })).filter(item => item.name)
  336. } else {
  337. this.cityList = []
  338. }
  339. })
  340. },
  341. updateCionData() {
  342. const configData = getApp().globalData.configData || [];
  343. const address = configData.find(i => i.keyName === 'address_cion');
  344. const sbk = configData.find(i => i.keyName === 'sbk_cion');
  345. this.addressCion = address ? address.keyContent : '';
  346. this.sbkCion = sbk ? sbk.keyContent : '';
  347. },
  348. },
  349. onLoad(query) {
  350. if (query.shareId) {
  351. uni.setStorageSync('shareId', query.shareId)
  352. };
  353. this.getAreaList();
  354. this.getPricePreview();
  355. this.getRecentGoods();
  356. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  357. this.bannerList = getApp().globalData.bannerList || []
  358. this.getFreeCityList();
  359. uni.$on('pricePreviewListUpdated', () => {
  360. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  361. this.getPricePreview()
  362. })
  363. uni.$on('bannerListUpdated', () => {
  364. this.bannerList = getApp().globalData.bannerList || []
  365. })
  366. },
  367. onUnload() {
  368. uni.$off('pricePreviewListUpdated')
  369. uni.$off('bannerListUpdated')
  370. uni.$off('configDataUpdated', this.updateCionData)
  371. },
  372. onShow() {
  373. this.updateCionData();
  374. // 监听全局数据更新
  375. uni.$on('configDataUpdated', this.updateCionData);
  376. this.getPricePreview();
  377. }
  378. }
  379. </script>
  380. <style lang="scss" scoped>
  381. .container {
  382. min-height: 100vh;
  383. background-color: #f8f8f8;
  384. display: flex;
  385. flex-direction: column;
  386. padding-bottom: calc(var(--window-bottom) + 70px);
  387. }
  388. .safe-area {
  389. padding-bottom: constant(safe-area-inset-bottom);
  390. padding-bottom: env(safe-area-inset-bottom);
  391. }
  392. .banner {
  393. width: 100%;
  394. height: 390rpx;
  395. position: relative;
  396. overflow: hidden;
  397. border-radius: 0 0 30rpx 30rpx;
  398. image {
  399. width: 100%;
  400. height: 100%;
  401. }
  402. }
  403. .content {
  404. // flex: 1;
  405. width: 90%;
  406. margin: -70rpx auto 0;
  407. position: relative;
  408. z-index: 3;
  409. padding-bottom: 20rpx;
  410. }
  411. .Xiadan-section{
  412. display: flex;
  413. // justify-content: space-around;
  414. align-items: center;
  415. margin-bottom: 20rpx;
  416. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 50%);
  417. image{
  418. width: 80rpx;
  419. height: 80rpx;
  420. }
  421. .left-text{
  422. font-family: PingFang SC;
  423. font-weight: 400;
  424. font-size: 12px;
  425. line-height: 140%;
  426. letter-spacing: 0%;
  427. }
  428. .right{
  429. display: flex;
  430. // flex-direction: row-reverse;
  431. box-sizing: border-box;
  432. align-items: center;
  433. justify-content: center;
  434. background-color: #fff0d2;
  435. color: #da7143;
  436. font-size: 24rpx;
  437. // flex-grow: 2;
  438. border: 1px solid #da7143;
  439. border-radius: 10rpx;
  440. width: 25%;
  441. image{
  442. width: 40rpx;
  443. height: 40rpx;
  444. }
  445. }
  446. }
  447. .section-header {
  448. display: flex;
  449. // justify-content: space-around;
  450. align-items: center;
  451. margin-bottom: 20rpx;
  452. .title {
  453. font-size: 32rpx;
  454. font-weight: bold;
  455. color: #333;
  456. }
  457. .more {
  458. // justify-content: right;
  459. display: flex;
  460. flex-direction: row-reverse;
  461. align-items: center;
  462. color: #999;
  463. font-size: 24rpx;
  464. flex-grow: 2;
  465. // width: 100%;
  466. // margin-right: 0 auto;
  467. }
  468. }
  469. .process-section {
  470. background: #fff;
  471. border-radius: 50rpx;
  472. padding: 30rpx;
  473. margin-bottom: 20rpx;
  474. background: linear-gradient(to bottom, #fff5e1 0%,#fffefb 30%);
  475. .contact-service {
  476. display: flex;
  477. align-items: center;
  478. font-size: 24rpx;
  479. color: #666;
  480. border: 1px solid #da7143;
  481. background-color: #fff0d2;
  482. .service-icon {
  483. width: 32rpx;
  484. height: 32rpx;
  485. margin-right: 8rpx;
  486. }
  487. }
  488. .process-grid {
  489. display: grid;
  490. grid-template-columns: repeat(4, 1fr);
  491. gap: 20rpx;
  492. margin: 30rpx 0;
  493. border: none;
  494. }
  495. .process-item {
  496. position: relative;
  497. display: flex;
  498. flex-direction: column;
  499. align-items: center;
  500. background-color: #fff8ea;
  501. // left: 0; right: 0;
  502. .process-icon {
  503. width: 80rpx;
  504. height: 80rpx;
  505. margin-bottom: 10rpx;
  506. }
  507. .process-text {
  508. font-size: 24rpx;
  509. color: #333;
  510. }
  511. .process-number {
  512. position: absolute;
  513. top: -10rpx;
  514. left: 50%;
  515. transform: translateX(-50%);
  516. font-size: 24rpx;
  517. color: #999;
  518. }
  519. }
  520. .submit-btn {
  521. background: linear-gradient(to right, #ffd01e, #ff8917);
  522. border-radius: 70rpx;
  523. padding: 20rpx;
  524. text-align: center;
  525. position: relative;
  526. border: none;
  527. display: flex;
  528. flex-direction: column;
  529. overflow: visible;
  530. text {
  531. color: #ffffff;
  532. font-size: 32rpx;
  533. font-weight: bold;
  534. line-height: 40rpx;
  535. // display: block;
  536. }
  537. .btn-desc {
  538. font-size: 24rpx;
  539. font-weight: normal;
  540. // margin-top: 4rpx;
  541. }
  542. .arrow-icon {
  543. position: absolute;
  544. right: 10rpx;
  545. top: 10%;
  546. transform: translateY(-50%);
  547. width: 40rpx;
  548. height: 40rpx;
  549. // z-index: 5;
  550. }
  551. .arrow-icon-left {
  552. position: absolute;
  553. left: 1rpx;
  554. top: 90%;
  555. transform: translateY(-50%);
  556. width: 40rpx;
  557. height: 40rpx;
  558. // z-index: 4;
  559. }
  560. }
  561. .submit-btn::after{
  562. border: none !important;
  563. }
  564. }
  565. .city-section {
  566. background: #fff;
  567. border-radius: 20rpx;
  568. padding: 30rpx;
  569. margin-bottom: 20rpx;
  570. .city-header {
  571. display: flex;
  572. justify-content: space-between;
  573. align-items: center;
  574. font-size: 28rpx;
  575. color: #333;
  576. margin-bottom: 10rpx;
  577. }
  578. .city-list {
  579. font-size: 24rpx;
  580. color: #999;
  581. }
  582. }
  583. .price-section {
  584. background: #f0f9eb;
  585. border-radius: 20rpx;
  586. padding: 30rpx;
  587. margin-bottom: 20rpx;
  588. background-color: #fffefb;
  589. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 5%);
  590. .section-header{
  591. margin-bottom: 40rpx;
  592. }
  593. .price-grid {
  594. display: grid;
  595. grid-template-columns: repeat(2, 1fr);
  596. gap: 20rpx;
  597. }
  598. .price-item {
  599. display: flex;
  600. flex-direction: column;
  601. align-items: center;
  602. background: #fff;
  603. border-radius: 16rpx;
  604. padding: 30rpx;
  605. background-color: #fff8ea;
  606. .item-icon {
  607. width: 100rpx;
  608. height: 100rpx;
  609. margin-bottom: 10rpx;
  610. &.placeholder {
  611. width: 80rpx;
  612. height: 80rpx;
  613. margin-bottom: 10rpx;
  614. background: #f5f5f5;
  615. border-radius: 16rpx;
  616. }
  617. }
  618. .item-name {
  619. font-size: 26rpx;
  620. color: #333;
  621. margin-bottom: 6rpx;
  622. }
  623. .item-price {
  624. font-family: PingFang SC;
  625. font-weight: 400;
  626. font-size: 24rpx;
  627. line-height: 140%;
  628. letter-spacing: 0%;
  629. text-align: center;
  630. .item-price-right{
  631. text-align: center;
  632. font-size: 24rpx;
  633. color: #666;
  634. line-height: 140%;
  635. letter-spacing: 0%;
  636. }
  637. }
  638. }
  639. }
  640. .recent-section {
  641. background: #f0f9eb;
  642. border-radius: 20rpx;
  643. padding: 30rpx;
  644. margin-bottom: 20rpx;
  645. background-color: #fffefb;
  646. background: linear-gradient(to bottom, #e8ffe0 0%,#fffefb 15%);
  647. .records-grid {
  648. display: grid;
  649. grid-template-columns: repeat(3, 1fr);
  650. gap: 20rpx;
  651. }
  652. .record-item {
  653. display: flex;
  654. flex-direction: column;
  655. align-items: center;
  656. background: linear-gradient(to top, #e8ffe0 0%,#fffefb 100%);
  657. border-radius: 16rpx;
  658. padding: 10rpx;
  659. background-color: #fff8ea;
  660. image{
  661. width: 60rpx;
  662. height: 60rpx;
  663. }
  664. .location {
  665. font-size: 28rpx;
  666. color: #333;
  667. font-weight: bold;
  668. }
  669. .amount {
  670. font-size: 30rpx;
  671. color: #13ac47;
  672. font-weight: bold;
  673. margin: 6rpx 0;
  674. }
  675. .user-id {
  676. font-family: PingFang SC;
  677. font-weight: 500;
  678. font-size: 24rpx;
  679. line-height: 140%;
  680. letter-spacing: 0%;
  681. text-align: center;
  682. color: #183c5c;
  683. }
  684. .user-id-f{
  685. font-family: PingFang SC;
  686. font-weight: 400;
  687. font-size: 22rpx;
  688. line-height: 140%;
  689. letter-spacing: 0%;
  690. text-align: center;
  691. color: #9b9b9b;
  692. }
  693. }
  694. }
  695. .destination-section {
  696. // background: #fff;
  697. border-radius: 20rpx;
  698. padding: 30rpx;
  699. margin-bottom: 20rpx;
  700. background: linear-gradient(to bottom, #f2f0fc 0%,#fffefb 10%);
  701. padding-bottom: calc(var(--window-bottom) + 60px);
  702. .destination-grid {
  703. display: grid;
  704. grid-template-columns: repeat(2, 1fr);
  705. gap: 20rpx;
  706. }
  707. .destination-item {
  708. display: flex;
  709. align-items: center;
  710. // background: #fff9f9;
  711. border-radius: 16rpx;
  712. padding: 20rpx;
  713. .dest-icon {
  714. width: 60rpx;
  715. height: 60rpx;
  716. margin-right: 16rpx;
  717. }
  718. .dest-info {
  719. flex: 1;
  720. .dest-title {
  721. font-size: 26rpx;
  722. color: #333;
  723. margin-bottom: 4rpx;
  724. }
  725. .dest-desc {
  726. font-size: 22rpx;
  727. color: #999;
  728. }
  729. }
  730. }
  731. }
  732. .destination-item1{
  733. background: linear-gradient(to top, #ffebeb,#fffefb);
  734. }
  735. .destination-item2{
  736. background: linear-gradient(to top, #ebf8ff,#fffefb);
  737. }
  738. .destination-item3{
  739. background: linear-gradient(to top, #ebedff,#fffefb);
  740. }
  741. .destination-item4{
  742. background: linear-gradient(to top, #ebfff2,#fffefb);
  743. }
  744. .about-section {
  745. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 30%);
  746. border-radius: 20rpx;
  747. padding: 30rpx;
  748. display: flex;
  749. justify-content: space-between;
  750. flex-direction: column;
  751. .about-footer{
  752. display: flex;
  753. flex-direction: row;
  754. align-items: center;
  755. justify-content: center;
  756. }
  757. .about-header {
  758. display: flex;
  759. align-items: center;
  760. .logo {
  761. width: 60rpx;
  762. height: 60rpx;
  763. margin-right: 16rpx;
  764. }
  765. .about-title {
  766. font-size: 28rpx;
  767. color: #333;
  768. }
  769. }
  770. .about-content {
  771. flex: 1;
  772. margin-left: 20rpx;
  773. text {
  774. display: block;
  775. font-size: 26rpx;
  776. color: #333;
  777. }
  778. .about-desc {
  779. font-size: 22rpx;
  780. color: #999;
  781. margin-top: 4rpx;
  782. }
  783. }
  784. }
  785. .tab-bar {
  786. position: fixed;
  787. bottom: 0;
  788. left: 0;
  789. right: 0;
  790. height: 100rpx;
  791. background-color: #fff;
  792. display: flex;
  793. justify-content: space-around;
  794. align-items: center;
  795. border-top: 1rpx solid #f5f5f5;
  796. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  797. .tab-item {
  798. display: flex;
  799. flex-direction: column;
  800. align-items: center;
  801. padding: 10rpx 0;
  802. transition: all 0.3s ease;
  803. .tab-icon {
  804. width: 48rpx;
  805. height: 48rpx;
  806. margin-bottom: 6rpx;
  807. }
  808. text {
  809. font-size: 22rpx;
  810. color: #666;
  811. transition: color 0.3s ease;
  812. }
  813. &.active {
  814. text {
  815. color: #ff5e00;
  816. }
  817. }
  818. &:active {
  819. transform: scale(0.95);
  820. }
  821. }
  822. }
  823. @keyframes fadeInUp {
  824. from {
  825. opacity: 0;
  826. transform: translateY(20rpx);
  827. }
  828. to {
  829. opacity: 1;
  830. transform: translateY(0);
  831. }
  832. }
  833. @keyframes fadeInScale {
  834. from {
  835. opacity: 0;
  836. transform: scale(0.8);
  837. }
  838. to {
  839. opacity: 1;
  840. transform: scale(1);
  841. }
  842. }
  843. </style>