爱简收旧衣按件回收前端代码仓库
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.

900 lines
21 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 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.image"
  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() {
  350. this.getAreaList();
  351. this.getPricePreview();
  352. this.getRecentGoods();
  353. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  354. this.bannerList = getApp().globalData.bannerList || []
  355. this.getFreeCityList();
  356. uni.$on('pricePreviewListUpdated', () => {
  357. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  358. this.getPricePreview()
  359. })
  360. uni.$on('bannerListUpdated', () => {
  361. this.bannerList = getApp().globalData.bannerList || []
  362. })
  363. },
  364. onUnload() {
  365. uni.$off('pricePreviewListUpdated')
  366. uni.$off('bannerListUpdated')
  367. uni.$off('configDataUpdated', this.updateCionData)
  368. },
  369. onShow() {
  370. this.updateCionData();
  371. // 监听全局数据更新
  372. uni.$on('configDataUpdated', this.updateCionData);
  373. this.getPricePreview();
  374. }
  375. }
  376. </script>
  377. <style lang="scss" scoped>
  378. .container {
  379. min-height: 100vh;
  380. background-color: #f8f8f8;
  381. display: flex;
  382. flex-direction: column;
  383. padding-bottom: calc(var(--window-bottom) + 70px);
  384. }
  385. .safe-area {
  386. padding-bottom: constant(safe-area-inset-bottom);
  387. padding-bottom: env(safe-area-inset-bottom);
  388. }
  389. .banner {
  390. width: 100%;
  391. height: 350rpx;
  392. position: relative;
  393. overflow: hidden;
  394. border-radius: 0 0 30rpx 30rpx;
  395. image {
  396. width: 100%;
  397. height: 100%;
  398. }
  399. }
  400. .content {
  401. // flex: 1;
  402. width: 90%;
  403. margin: -70rpx auto 0;
  404. position: relative;
  405. z-index: 3;
  406. padding-bottom: 20rpx;
  407. }
  408. .Xiadan-section{
  409. display: flex;
  410. // justify-content: space-around;
  411. align-items: center;
  412. margin-bottom: 20rpx;
  413. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 50%);
  414. image{
  415. width: 80rpx;
  416. height: 80rpx;
  417. }
  418. .left-text{
  419. font-family: PingFang SC;
  420. font-weight: 400;
  421. font-size: 12px;
  422. line-height: 140%;
  423. letter-spacing: 0%;
  424. }
  425. .right{
  426. display: flex;
  427. // flex-direction: row-reverse;
  428. box-sizing: border-box;
  429. align-items: center;
  430. justify-content: center;
  431. background-color: #fff0d2;
  432. color: #da7143;
  433. font-size: 24rpx;
  434. // flex-grow: 2;
  435. border: 1px solid #da7143;
  436. border-radius: 10rpx;
  437. width: 25%;
  438. image{
  439. width: 40rpx;
  440. height: 40rpx;
  441. }
  442. }
  443. }
  444. .section-header {
  445. display: flex;
  446. // justify-content: space-around;
  447. align-items: center;
  448. margin-bottom: 20rpx;
  449. .title {
  450. font-size: 32rpx;
  451. font-weight: bold;
  452. color: #333;
  453. }
  454. .more {
  455. // justify-content: right;
  456. display: flex;
  457. flex-direction: row-reverse;
  458. align-items: center;
  459. color: #999;
  460. font-size: 24rpx;
  461. flex-grow: 2;
  462. // width: 100%;
  463. // margin-right: 0 auto;
  464. }
  465. }
  466. .process-section {
  467. background: #fff;
  468. border-radius: 50rpx;
  469. padding: 30rpx;
  470. margin-bottom: 20rpx;
  471. background: linear-gradient(to bottom, #fff5e1 0%,#fffefb 30%);
  472. .contact-service {
  473. display: flex;
  474. align-items: center;
  475. font-size: 24rpx;
  476. color: #666;
  477. border: 1px solid #da7143;
  478. background-color: #fff0d2;
  479. .service-icon {
  480. width: 32rpx;
  481. height: 32rpx;
  482. margin-right: 8rpx;
  483. }
  484. }
  485. .process-grid {
  486. display: grid;
  487. grid-template-columns: repeat(4, 1fr);
  488. gap: 20rpx;
  489. margin: 30rpx 0;
  490. border: none;
  491. }
  492. .process-item {
  493. position: relative;
  494. display: flex;
  495. flex-direction: column;
  496. align-items: center;
  497. background-color: #fff8ea;
  498. // left: 0; right: 0;
  499. .process-icon {
  500. width: 80rpx;
  501. height: 80rpx;
  502. margin-bottom: 10rpx;
  503. }
  504. .process-text {
  505. font-size: 24rpx;
  506. color: #333;
  507. }
  508. .process-number {
  509. position: absolute;
  510. top: -10rpx;
  511. left: 50%;
  512. transform: translateX(-50%);
  513. font-size: 24rpx;
  514. color: #999;
  515. }
  516. }
  517. .submit-btn {
  518. background: linear-gradient(to right, #ffd01e, #ff8917);
  519. border-radius: 70rpx;
  520. padding: 20rpx;
  521. text-align: center;
  522. position: relative;
  523. border: none;
  524. display: flex;
  525. flex-direction: column;
  526. overflow: visible;
  527. text {
  528. color: #ffffff;
  529. font-size: 32rpx;
  530. font-weight: bold;
  531. line-height: 40rpx;
  532. // display: block;
  533. }
  534. .btn-desc {
  535. font-size: 24rpx;
  536. font-weight: normal;
  537. // margin-top: 4rpx;
  538. }
  539. .arrow-icon {
  540. position: absolute;
  541. right: 10rpx;
  542. top: 10%;
  543. transform: translateY(-50%);
  544. width: 40rpx;
  545. height: 40rpx;
  546. // z-index: 5;
  547. }
  548. .arrow-icon-left {
  549. position: absolute;
  550. left: 1rpx;
  551. top: 90%;
  552. transform: translateY(-50%);
  553. width: 40rpx;
  554. height: 40rpx;
  555. // z-index: 4;
  556. }
  557. }
  558. .submit-btn::after{
  559. border: none !important;
  560. }
  561. }
  562. .city-section {
  563. background: #fff;
  564. border-radius: 20rpx;
  565. padding: 30rpx;
  566. margin-bottom: 20rpx;
  567. .city-header {
  568. display: flex;
  569. justify-content: space-between;
  570. align-items: center;
  571. font-size: 28rpx;
  572. color: #333;
  573. margin-bottom: 10rpx;
  574. }
  575. .city-list {
  576. font-size: 24rpx;
  577. color: #999;
  578. }
  579. }
  580. .price-section {
  581. background: #f0f9eb;
  582. border-radius: 20rpx;
  583. padding: 30rpx;
  584. margin-bottom: 20rpx;
  585. background-color: #fffefb;
  586. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 5%);
  587. .section-header{
  588. margin-bottom: 40rpx;
  589. }
  590. .price-grid {
  591. display: grid;
  592. grid-template-columns: repeat(2, 1fr);
  593. gap: 20rpx;
  594. }
  595. .price-item {
  596. display: flex;
  597. flex-direction: column;
  598. align-items: center;
  599. background: #fff;
  600. border-radius: 16rpx;
  601. padding: 30rpx;
  602. background-color: #fff8ea;
  603. .item-icon {
  604. width: 100rpx;
  605. height: 100rpx;
  606. margin-bottom: 10rpx;
  607. &.placeholder {
  608. width: 80rpx;
  609. height: 80rpx;
  610. margin-bottom: 10rpx;
  611. background: #f5f5f5;
  612. border-radius: 16rpx;
  613. }
  614. }
  615. .item-name {
  616. font-size: 26rpx;
  617. color: #333;
  618. margin-bottom: 6rpx;
  619. }
  620. .item-price {
  621. font-family: PingFang SC;
  622. font-weight: 400;
  623. font-size: 24rpx;
  624. line-height: 140%;
  625. letter-spacing: 0%;
  626. text-align: center;
  627. .item-price-right{
  628. text-align: center;
  629. font-size: 24rpx;
  630. color: #666;
  631. line-height: 140%;
  632. letter-spacing: 0%;
  633. }
  634. }
  635. }
  636. }
  637. .recent-section {
  638. background: #f0f9eb;
  639. border-radius: 20rpx;
  640. padding: 30rpx;
  641. margin-bottom: 20rpx;
  642. background-color: #fffefb;
  643. background: linear-gradient(to bottom, #e8ffe0 0%,#fffefb 15%);
  644. .records-grid {
  645. display: grid;
  646. grid-template-columns: repeat(3, 1fr);
  647. gap: 20rpx;
  648. }
  649. .record-item {
  650. display: flex;
  651. flex-direction: column;
  652. align-items: center;
  653. background: linear-gradient(to top, #e8ffe0 0%,#fffefb 100%);
  654. border-radius: 16rpx;
  655. padding: 10rpx;
  656. background-color: #fff8ea;
  657. image{
  658. width: 60rpx;
  659. height: 60rpx;
  660. }
  661. .location {
  662. font-size: 28rpx;
  663. color: #333;
  664. font-weight: bold;
  665. }
  666. .amount {
  667. font-size: 30rpx;
  668. color: #13ac47;
  669. font-weight: bold;
  670. margin: 6rpx 0;
  671. }
  672. .user-id {
  673. font-family: PingFang SC;
  674. font-weight: 500;
  675. font-size: 24rpx;
  676. line-height: 140%;
  677. letter-spacing: 0%;
  678. text-align: center;
  679. color: #183c5c;
  680. }
  681. .user-id-f{
  682. font-family: PingFang SC;
  683. font-weight: 400;
  684. font-size: 22rpx;
  685. line-height: 140%;
  686. letter-spacing: 0%;
  687. text-align: center;
  688. color: #9b9b9b;
  689. }
  690. }
  691. }
  692. .destination-section {
  693. // background: #fff;
  694. border-radius: 20rpx;
  695. padding: 30rpx;
  696. margin-bottom: 20rpx;
  697. background: linear-gradient(to bottom, #f2f0fc 0%,#fffefb 10%);
  698. padding-bottom: calc(var(--window-bottom) + 60px);
  699. .destination-grid {
  700. display: grid;
  701. grid-template-columns: repeat(2, 1fr);
  702. gap: 20rpx;
  703. }
  704. .destination-item {
  705. display: flex;
  706. align-items: center;
  707. // background: #fff9f9;
  708. border-radius: 16rpx;
  709. padding: 20rpx;
  710. .dest-icon {
  711. width: 60rpx;
  712. height: 60rpx;
  713. margin-right: 16rpx;
  714. }
  715. .dest-info {
  716. flex: 1;
  717. .dest-title {
  718. font-size: 26rpx;
  719. color: #333;
  720. margin-bottom: 4rpx;
  721. }
  722. .dest-desc {
  723. font-size: 22rpx;
  724. color: #999;
  725. }
  726. }
  727. }
  728. }
  729. .destination-item1{
  730. background: linear-gradient(to top, #ffebeb,#fffefb);
  731. }
  732. .destination-item2{
  733. background: linear-gradient(to top, #ebf8ff,#fffefb);
  734. }
  735. .destination-item3{
  736. background: linear-gradient(to top, #ebedff,#fffefb);
  737. }
  738. .destination-item4{
  739. background: linear-gradient(to top, #ebfff2,#fffefb);
  740. }
  741. .about-section {
  742. background: linear-gradient(to bottom, #fff3db 0%,#fffefb 30%);
  743. border-radius: 20rpx;
  744. padding: 30rpx;
  745. display: flex;
  746. justify-content: space-between;
  747. flex-direction: column;
  748. .about-footer{
  749. display: flex;
  750. flex-direction: row;
  751. align-items: center;
  752. justify-content: center;
  753. }
  754. .about-header {
  755. display: flex;
  756. align-items: center;
  757. .logo {
  758. width: 60rpx;
  759. height: 60rpx;
  760. margin-right: 16rpx;
  761. }
  762. .about-title {
  763. font-size: 28rpx;
  764. color: #333;
  765. }
  766. }
  767. .about-content {
  768. flex: 1;
  769. margin-left: 20rpx;
  770. text {
  771. display: block;
  772. font-size: 26rpx;
  773. color: #333;
  774. }
  775. .about-desc {
  776. font-size: 22rpx;
  777. color: #999;
  778. margin-top: 4rpx;
  779. }
  780. }
  781. }
  782. .tab-bar {
  783. position: fixed;
  784. bottom: 0;
  785. left: 0;
  786. right: 0;
  787. height: 100rpx;
  788. background-color: #fff;
  789. display: flex;
  790. justify-content: space-around;
  791. align-items: center;
  792. border-top: 1rpx solid #f5f5f5;
  793. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  794. .tab-item {
  795. display: flex;
  796. flex-direction: column;
  797. align-items: center;
  798. padding: 10rpx 0;
  799. transition: all 0.3s ease;
  800. .tab-icon {
  801. width: 48rpx;
  802. height: 48rpx;
  803. margin-bottom: 6rpx;
  804. }
  805. text {
  806. font-size: 22rpx;
  807. color: #666;
  808. transition: color 0.3s ease;
  809. }
  810. &.active {
  811. text {
  812. color: #ff5e00;
  813. }
  814. }
  815. &:active {
  816. transform: scale(0.95);
  817. }
  818. }
  819. }
  820. @keyframes fadeInUp {
  821. from {
  822. opacity: 0;
  823. transform: translateY(20rpx);
  824. }
  825. to {
  826. opacity: 1;
  827. transform: translateY(0);
  828. }
  829. }
  830. @keyframes fadeInScale {
  831. from {
  832. opacity: 0;
  833. transform: scale(0.8);
  834. }
  835. to {
  836. opacity: 1;
  837. transform: scale(1);
  838. }
  839. }
  840. </style>