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

959 lines
22 KiB

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