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

1350 lines
31 KiB

2 months ago
4 weeks ago
4 weeks ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
4 weeks ago
2 months ago
4 weeks ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
2 months ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
1 month ago
4 weeks ago
4 weeks ago
4 weeks ago
1 month ago
4 weeks ago
2 months ago
4 weeks ago
  1. <template>
  2. <view class="container safe-area">
  3. <!-- 顶部banner -->
  4. <view class="banner">
  5. <swiper :indicator-dots="false" :autoplay="true" :interval="3000" :duration="500" circular
  6. style="width: 100%; height: 400rpx;">
  7. <swiper-item v-for="(item, index) in bannerList" :key="item.id || index">
  8. <view v-if="item.type == 1" class="video-container">
  9. <!-- 预览状态显示封面图 -->
  10. <image
  11. v-if="!videoPlayingStates[index]"
  12. :src="item.image || ''"
  13. mode="aspectFill"
  14. style="width: 100%; height: 100%;"
  15. class="video-poster"
  16. @click="playVideoFullscreen(item, index)"
  17. />
  18. <!-- 播放状态显示视频 -->
  19. <video
  20. v-else
  21. :id="`video-${index}`"
  22. :src="item.voUrl"
  23. :autoplay="true"
  24. :muted="false"
  25. :loop="false"
  26. :controls="true"
  27. :show-play-btn="true"
  28. :show-center-play-btn="false"
  29. :show-fullscreen-btn="true"
  30. :show-progress="true"
  31. :show-mute-btn="true"
  32. :enable-progress-gesture="true"
  33. :enable-play-gesture="true"
  34. object-fit="cover"
  35. style="width: 100%; height: 100%;"
  36. @fullscreenchange="onFullscreenChange"
  37. @play="onVideoPlay(index)"
  38. @pause="onVideoPause(index)"
  39. @ended="onVideoEnded(index)"
  40. ></video>
  41. <!-- 播放按钮覆盖层 -->
  42. <view v-if="!videoPlayingStates[index]" class="video-overlay" @click="playVideoFullscreen(item, index)">
  43. <!-- <view class="play-button-large">
  44. <uni-icons type="play-filled" size="50" color="#fff"></uni-icons>
  45. </view> -->
  46. </view>
  47. </view>
  48. <image v-else :src="item.image" mode="aspectFill" style="width: 100%; height: 100%;" @click="showServiceQrcode" />
  49. </swiper-item>
  50. </swiper>
  51. </view>
  52. <view class="content">
  53. <!-- 回收流程 -->
  54. <view class="process-section">
  55. <view class="section-header">
  56. <text class="title">回收流程</text>
  57. </view>
  58. <view class="process-grid">
  59. <view class="process-item" v-for="(item, index) in processes" :key="index">
  60. <image :src="item.icon" mode="aspectFit" class="process-icon"></image>
  61. <text class="process-text">{{item.text}}</text>
  62. <!-- <text class="process-number">{{index + 1}}</text> -->
  63. </view>
  64. </view>
  65. <button class="submit-btn" hover-class="submit-btn-hover" @click="getPickupto">
  66. <text class="submit-btn-hearder">快速免费上门</text>
  67. <text class="btn-desc">点击开始预约</text>
  68. <image src="/static/home/1745478917401 3.png" mode="aspectFit" class="arrow-icon"></image>
  69. <image src="/static/home/1745478917401 4.png" mode="aspectFit" class="arrow-icon-left"></image>
  70. </button>
  71. </view>
  72. <uv-divider :dashed="true"></uv-divider>
  73. <!-- 服务城市 -->
  74. <view class="city-section" @click="goCity">
  75. <view class="city-header">
  76. <text>已开通包邮服务城市有哪些</text>
  77. <uni-icons type="right" size="16" color="#999"></uni-icons>
  78. </view>
  79. <text class="city-list">{{ cityListStr }}</text>
  80. </view>
  81. <view class="Xiadan-section">
  82. <image :src="addressCion" alt="" class="process-icon" />
  83. <text class="left-text">不会下单联系客服了解回收流程</text>
  84. <view class="right" @click="goService">
  85. <image src="/static/home/联系客服.png" mode=""></image>
  86. <text>联系客服</text>
  87. </view>
  88. </view>
  89. <!-- 关于我们 -->
  90. <view class="about-section">
  91. <view class="section-header">
  92. <text class="title">关于我们</text>
  93. </view>
  94. <view class="about-footer" @click="goAbout">
  95. <view class="about-header">
  96. <image :src="sbkCion" mode="aspectFit" class="logo"></image>
  97. <!-- <text class="about-title">关于我们</text> -->
  98. </view>
  99. <view class="about-content">
  100. <text>免费寄送件验秒到账助环保</text>
  101. <text class="about-desc">让二手交易更轻松让地球多一份绿意</text>
  102. </view>
  103. <uni-icons type="right" size="16" color="#999"></uni-icons>
  104. </view>
  105. </view>
  106. <!-- 价格概览 -->
  107. <view class="price-section">
  108. <view class="section-header" @click="getPickupto">
  109. <text class="title">价格概览</text>
  110. <view class="more">
  111. <uni-icons type="right" size="14" color="#999"></uni-icons>
  112. <text>查看更多</text>
  113. </view>
  114. </view>
  115. <view class="price-grid">
  116. <view class="price-item" v-for="(item, index) in priceList" :key="item.id || index"
  117. @tap="goToRecycleCategory(item.id)">
  118. <image v-if="item.icon" :src="item.icon" mode="aspectFit" class="item-icon"></image>
  119. <view v-else class="item-icon placeholder"></view>
  120. <text class="item-name">{{item.name}}</text>
  121. <text class="item-price">¥ {{item.price}}
  122. <text class="item-price-right">/{{item.unit}}</text>
  123. </text>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- 最近回收 -->
  128. <view class="recent-section">
  129. <view class="section-header">
  130. <text class="title">最近回收</text>
  131. </view>
  132. <view class="records-grid">
  133. <view class="record-item" v-for="(item, index) in records" :key="index"
  134. @tap="goToInspectionReport(item)">
  135. <image :src="item.image" mode="aspectFill"></image>
  136. <text class="location">{{item.name}}</text>
  137. <text class="user-id">****{{item.phone ? item.phone.slice(-4) : ''}}</text>
  138. <text class="user-id-f">成功完成衣物回收已到账</text>
  139. <text class="amount">+ ¥{{item.price}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 回收去向 -->
  144. <view class="destination-section">
  145. <view class="section-header">
  146. <text class="title">回收去向</text>
  147. </view>
  148. <view class="destination-grid">
  149. <view class="destination-item "
  150. @click="$utils.navigateTo('/pages/mine/recyclingDestination?id=' + item.id)"
  151. :class="`destination-item${index + 1}`" v-for="(item, index) in destinations" :key="index">
  152. <image :src="item.icon" mode="aspectFit" class="dest-icon"></image>
  153. <view class="dest-info">
  154. <text class="dest-title">{{item.title}}</text>
  155. <text class="dest-desc">{{item.description}}</text>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. <!-- 根据角色显示不同的导航栏 -->
  162. <uv-tabbar :value="value" :fixed="true" @change="changeTo">
  163. <uv-tabbar-item text="首页">
  164. <template v-slot:active-icon>
  165. <image class="icon" src="/static/home/首页-点击.png"></image>
  166. </template>
  167. <template v-slot:inactive-icon>
  168. <image class="icon" src="/static/home/首页-未点击.png"></image>
  169. </template>
  170. </uv-tabbar-item>
  171. <uv-tabbar-item text="回收">
  172. <template v-slot:active-icon>
  173. <image class="icon" src="/static/home/回收-点击.png"></image>
  174. </template>
  175. <template v-slot:inactive-icon>
  176. <image class="icon" src="/static/home/回收-未点击.png"></image>
  177. </template>
  178. </uv-tabbar-item>
  179. <uv-tabbar-item text="我的">
  180. <template v-slot:active-icon>
  181. <image class="icon" src="/static/home/我的-点击.png"></image>
  182. </template>
  183. <template v-slot:inactive-icon>
  184. <image class="icon" src="/static/home/我的-未点击.png"></image>
  185. </template>
  186. </uv-tabbar-item>
  187. </uv-tabbar>
  188. <!-- 客服二维码弹窗 -->
  189. <view v-if="showQrcodeModal" class="qrcode-modal-mask" @click="closeQrcodeModal">
  190. <view class="qrcode-modal-content" @click.stop>
  191. <view class="qrcode-modal-header">
  192. <text class="qrcode-modal-title">联系客服</text>
  193. <view class="qrcode-modal-close" @click="closeQrcodeModal">
  194. <uni-icons type="close" size="24" color="#999"></uni-icons>
  195. </view>
  196. </view>
  197. <view class="qrcode-modal-body">
  198. <image
  199. v-if="serviceQrcodeUrl"
  200. :src="serviceQrcodeUrl"
  201. mode="aspectFit"
  202. class="qrcode-modal-img"
  203. :show-menu-by-longpress="true"
  204. @longpress="onQrcodeLongPress"
  205. ></image>
  206. <view v-else class="qrcode-placeholder">
  207. <text>二维码加载中...</text>
  208. </view>
  209. <text class="qrcode-modal-tip">长按识别二维码添加客服微信</text>
  210. <!-- <view class="qrcode-actions">
  211. <button class="save-btn" @click="saveQrcodeToAlbum" v-if="serviceQrcodeUrl">
  212. 保存到相册
  213. </button>
  214. </view> -->
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import pullRefreshMixin from '../mixins/pullRefreshMixin.js'
  222. export default {
  223. mixins: [pullRefreshMixin],
  224. data() {
  225. return {
  226. value: 0,
  227. processes: [],
  228. priceList: [],
  229. records: [],
  230. videoPlayingStates: {}, // 记录每个视频的播放状态
  231. showQrcodeModal: false, // 控制二维码弹窗显示
  232. destinations: [
  233. // {
  234. // icon: '/static/home/爱心援乡.png',
  235. // title: '爱心援乡',
  236. // description: '精准帮扶贫困群体'
  237. // },
  238. // {
  239. // icon: '/static/home/回塑新源.png',
  240. // title: '回塑新源',
  241. // description: '塑料的第二次成型'
  242. // },
  243. // {
  244. // icon: '/static/home/织物出海.png',
  245. // title: '织物出海',
  246. // description: '分拣出最高价值'
  247. // },
  248. // {
  249. // icon: '/static/home/碳循再生.png',
  250. // title: '碳循再生',
  251. // description: '减碳从出发生系统'
  252. // }
  253. ],
  254. bannerList: [],
  255. pricePreviewList: [],
  256. cityList: [],
  257. addressCion: '',
  258. sbkCion: '',
  259. queryParams: {},
  260. }
  261. },
  262. computed: {
  263. cityListStr() {
  264. // 提取2级城市(市级),不换行显示,控制显示数量避免超出
  265. const cityNames = []
  266. // 遍历省级数据,提取市级城市
  267. this.cityList.forEach(province => {
  268. if (province.children && Array.isArray(province.children)) {
  269. province.children.forEach(city => {
  270. // 只取市级城市名称,去掉"市"字后缀使显示更简洁
  271. const cityName = city.name.replace(/市$/, '')
  272. if (cityName && !cityNames.includes(cityName)) {
  273. cityNames.push(cityName)
  274. }
  275. })
  276. }
  277. })
  278. // 根据屏幕宽度动态调整显示数量,避免超出容器
  279. const maxDisplay = 6 // 减少到6个城市,确保不超出
  280. if (cityNames.length > maxDisplay) {
  281. return cityNames.slice(0, maxDisplay).join('、') + '...'
  282. }
  283. return cityNames.join('、')
  284. },
  285. address_cion() {
  286. console.log(getApp().globalData.configData, 'home-getApp().globalData.configData')
  287. const item = getApp().globalData.configData.find(i => i.keyName === 'address_cion')
  288. return item ? item.keyContent : ''
  289. },
  290. sbk_cion() {
  291. const item = getApp().globalData.configData.find(i => i.keyName === 'sbk_cion')
  292. return item ? item.keyContent : ''
  293. },
  294. serviceQrcodeUrl() {
  295. const item = getApp().globalData.configData.find(i => i.keyName === 'kefu_code')
  296. return item ? item.keyContent : ''
  297. }
  298. },
  299. methods: {
  300. changeTo(e) {
  301. this.value = e
  302. console.log(e, '111')
  303. if (e == 1) {
  304. uni.reLaunch({
  305. url: '/pages/component/recycle'
  306. }, true);
  307. } else if (e == 2) {
  308. uni.reLaunch({
  309. url: '/pages/component/my'
  310. }, true);
  311. }
  312. },
  313. goAbout() {
  314. uni.navigateTo({
  315. url: '/pages/subcomponent/about'
  316. })
  317. },
  318. goCity() {
  319. uni.navigateTo({
  320. url: '/pages/baoyou-city/baoyou-city'
  321. })
  322. },
  323. getPickupto() {
  324. uni.switchTab({
  325. url: '/pages/component/recycle'
  326. })
  327. },
  328. async onRefresh() {
  329. await new Promise(resolve => setTimeout(resolve, 1000))
  330. },
  331. getAreaList() {
  332. this.$api('getAreaList', {}, (res) => {
  333. console.log(res, 'getAreaList');
  334. if (res.code == 200 && Array.isArray(res.result)) {
  335. // 按sort升序排序
  336. const sorted = res.result.slice().sort((a, b) => a.sort - b.sort)
  337. this.processes = sorted.map(item => ({
  338. // id: item.id,
  339. icon: item.image,
  340. text: item.title
  341. }))
  342. }
  343. })
  344. },
  345. goService() {
  346. uni.navigateTo({
  347. url: '/pages/subcomponent/admin_faq'
  348. })
  349. },
  350. goToRecycleCategory(id) {
  351. getApp().globalData.targetRecycleCategoryId = id
  352. console.log(getApp().globalData.targetRecycleCategoryId, 'getApp().globalData.targetRecycleCategoryId')
  353. uni.switchTab({
  354. url: '/pages/component/recycle'
  355. })
  356. },
  357. getPricePreview() {
  358. const resList = this.pricePreviewList || []
  359. if (Array.isArray(resList)) {
  360. // 只取一级分类,按sort升序
  361. const firstLevel = resList.filter(item => item.pid == '0').sort((a, b) => a.sort - b.sort)
  362. // console.log(firstLevel,'firstLevel');
  363. this.priceList = firstLevel.map(item => {
  364. // 从静态表中找图片和价格
  365. // const staticItem = this.priceListStatic.find(s => s.name.replace(/\s/g, '') === item.title.replace(/\s/g, ''))
  366. // console.log(item,'item');
  367. return {
  368. id: item.id, // 保证有id
  369. icon: item.icon ? item.icon : '',
  370. name: item.title,
  371. price: item.priceNo ? item.priceNo : '',
  372. unit: item.unit ? item.unit : ''
  373. }
  374. })
  375. }
  376. },
  377. getRecentGoods() {
  378. this.$api('getRecentGoodsList', {}, res => {
  379. if (res && res.code === 200 && Array.isArray(res.result) && res.result.length > 0) {
  380. this.records = res.result.map(item => ({
  381. id: item.id,
  382. image: item.image,
  383. name: item.name,
  384. orderId: item.orderId,
  385. phone: item.phone,
  386. price: item.price
  387. }))
  388. } else {
  389. this.records = []
  390. }
  391. })
  392. },
  393. getRecyclingDestination() {
  394. this.$api('getRecyclingDestination')
  395. .then(res => {
  396. this.destinations = res.result
  397. })
  398. },
  399. goToInspectionReport(item) {
  400. uni.navigateTo({
  401. url: `/pages/subcomponent/inspection-report?orderId=${item.orderId}`
  402. })
  403. },
  404. getFreeCityList() {
  405. this.$api('getFreeCityList', {}, res => {
  406. if (res && res.code === 200 && Array.isArray(res.result)) {
  407. // 保持完整的省-市-区三级结构,用于提取2级城市
  408. this.cityList = res.result.filter(province =>
  409. province.children && Array.isArray(province.children) && province.children.length > 0
  410. )
  411. } else {
  412. this.cityList = []
  413. }
  414. })
  415. },
  416. updateCionData() {
  417. const configData = getApp().globalData.configData || [];
  418. const address = configData.find(i => i.keyName === 'address_cion');
  419. const sbk = configData.find(i => i.keyName === 'sbk_cion');
  420. this.addressCion = address ? address.keyContent : '';
  421. this.sbkCion = sbk ? sbk.keyContent : '';
  422. },
  423. // 视频相关方法
  424. playVideoFullscreen(item, index) {
  425. if (!this.videoPlayingStates[index]) {
  426. // 第一次点击:显示视频并开始播放
  427. this.$set(this.videoPlayingStates, index, true);
  428. // 等待视频元素渲染后再进行操作
  429. this.$nextTick(() => {
  430. setTimeout(() => {
  431. const videoContext = uni.createVideoContext(`video-${index}`, this);
  432. if (videoContext) {
  433. // 直接进入全屏播放
  434. videoContext.requestFullScreen({
  435. direction: -1 // 自动选择方向
  436. });
  437. }
  438. }, 200);
  439. });
  440. }
  441. },
  442. // 显示客服二维码弹窗
  443. showServiceQrcode() {
  444. this.showQrcodeModal = true;
  445. },
  446. // 关闭二维码弹窗
  447. closeQrcodeModal() {
  448. this.showQrcodeModal = false;
  449. },
  450. // 处理二维码长按事件
  451. onQrcodeLongPress() {
  452. console.log('长按二维码');
  453. // 在微信小程序中,show-menu-by-longpress="true" 会自动处理长按识别
  454. // 这里可以添加一些反馈提示
  455. uni.showToast({
  456. title: '长按识别二维码',
  457. icon: 'none',
  458. duration: 1500
  459. });
  460. },
  461. // 保存二维码到相册
  462. saveQrcodeToAlbum() {
  463. if (!this.serviceQrcodeUrl) {
  464. uni.showToast({
  465. title: '二维码还未加载完成',
  466. icon: 'none'
  467. });
  468. return;
  469. }
  470. // 先授权相册权限
  471. uni.getSetting({
  472. success: (res) => {
  473. if (!res.authSetting['scope.writePhotosAlbum']) {
  474. // 没有权限,申请权限
  475. uni.authorize({
  476. scope: 'scope.writePhotosAlbum',
  477. success: () => {
  478. this.doSaveQrcodeImage();
  479. },
  480. fail: () => {
  481. // 权限被拒绝,引导用户手动开启
  482. uni.showModal({
  483. title: '提示',
  484. content: '需要您授权保存相册权限',
  485. showCancel: false,
  486. success: () => {
  487. uni.openSetting();
  488. }
  489. });
  490. }
  491. });
  492. } else {
  493. // 已有权限,直接保存
  494. this.doSaveQrcodeImage();
  495. }
  496. }
  497. });
  498. },
  499. // 执行保存二维码图片
  500. doSaveQrcodeImage() {
  501. uni.downloadFile({
  502. url: this.serviceQrcodeUrl,
  503. success: (res) => {
  504. if (res.statusCode === 200) {
  505. uni.saveImageToPhotosAlbum({
  506. filePath: res.tempFilePath,
  507. success: () => {
  508. uni.showToast({
  509. title: '保存成功',
  510. icon: 'success'
  511. });
  512. },
  513. fail: (err) => {
  514. console.log('保存失败', err);
  515. uni.showToast({
  516. title: '保存失败',
  517. icon: 'none'
  518. });
  519. }
  520. });
  521. }
  522. },
  523. fail: (err) => {
  524. console.log('下载失败', err);
  525. uni.showToast({
  526. title: '下载失败',
  527. icon: 'none'
  528. });
  529. }
  530. });
  531. },
  532. onVideoPlay(index) {
  533. this.$set(this.videoPlayingStates, index, true);
  534. },
  535. onVideoPause(index) {
  536. this.$set(this.videoPlayingStates, index, false);
  537. },
  538. onVideoEnded(index) {
  539. // 视频播放结束,回到预览状态
  540. this.$set(this.videoPlayingStates, index, false);
  541. },
  542. onFullscreenChange(e) {
  543. console.log('全屏状态改变:', e.detail);
  544. const videoIndex = e.target.id.replace('video-', '');
  545. if (e.detail.fullScreen) {
  546. // 进入全屏时,不做任何操作
  547. console.log('进入全屏模式,方向:', e.detail.direction);
  548. } else {
  549. // 退出全屏时,回到预览状态
  550. console.log('退出全屏模式,回到预览状态');
  551. this.$set(this.videoPlayingStates, videoIndex, false);
  552. }
  553. },
  554. // 初始化页面数据的方法
  555. initializePageData() {
  556. const query = this.queryParams || {}
  557. if (query.shareId) {
  558. uni.setStorageSync('shareId', query.shareId)
  559. }
  560. // 先设置数据,再调用处理方法
  561. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  562. this.bannerList = getApp().globalData.bannerList || []
  563. this.getAreaList()
  564. this.getPricePreview()
  565. this.getRecentGoods()
  566. this.getFreeCityList()
  567. // 监听数据更新事件
  568. uni.$on('pricePreviewListUpdated', () => {
  569. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  570. this.getPricePreview()
  571. })
  572. uni.$on('bannerListUpdated', () => {
  573. this.bannerList = getApp().globalData.bannerList || []
  574. })
  575. },
  576. },
  577. onLoad(query) {
  578. // 保存query参数
  579. this.queryParams = query
  580. // 检查App数据是否已经准备好
  581. if (!getApp().globalData.isAppDataReady) {
  582. // 显示加载状态
  583. uni.showLoading({
  584. title: '加载中...',
  585. mask: true
  586. })
  587. // 监听App数据准备完成事件
  588. uni.$on('appDataReady', () => {
  589. uni.hideLoading()
  590. this.initializePageData()
  591. })
  592. } else {
  593. // App数据已经准备好,直接初始化页面数据
  594. this.initializePageData()
  595. }
  596. },
  597. onUnload() {
  598. uni.$off('pricePreviewListUpdated')
  599. uni.$off('bannerListUpdated')
  600. uni.$off('configDataUpdated', this.updateCionData)
  601. },
  602. onShow() {
  603. this.updateCionData();
  604. // 监听全局数据更新
  605. uni.$on('configDataUpdated', this.updateCionData);
  606. this.getPricePreview();
  607. this.getRecyclingDestination()
  608. },
  609. }
  610. </script>
  611. <style lang="scss" scoped>
  612. .container {
  613. min-height: 100vh;
  614. background-color: #f8f8f8;
  615. display: flex;
  616. flex-direction: column;
  617. padding-bottom: calc(var(--window-bottom) + 70px);
  618. }
  619. .safe-area {
  620. padding-bottom: constant(safe-area-inset-bottom);
  621. padding-bottom: env(safe-area-inset-bottom);
  622. }
  623. .banner {
  624. width: 100%;
  625. height: 400rpx;
  626. position: relative;
  627. overflow: hidden;
  628. border-radius: 0 0 30rpx 30rpx;
  629. image {
  630. width: 100%;
  631. height: 100%;
  632. }
  633. .video-container {
  634. position: relative;
  635. width: 100%;
  636. height: 100%;
  637. .video-poster {
  638. cursor: pointer;
  639. transition: transform 0.2s ease;
  640. &:active {
  641. transform: scale(0.98);
  642. }
  643. }
  644. .video-overlay {
  645. position: absolute;
  646. top: 0;
  647. left: 0;
  648. right: 0;
  649. bottom: 0;
  650. background: rgba(0, 0, 0, 0.3);
  651. z-index: 10;
  652. cursor: pointer;
  653. display: flex;
  654. justify-content: center;
  655. align-items: center;
  656. .play-button-large {
  657. width: 100rpx;
  658. height: 100rpx;
  659. background: rgba(0, 0, 0, 0.7);
  660. border-radius: 50%;
  661. display: flex;
  662. justify-content: center;
  663. align-items: center;
  664. backdrop-filter: blur(10rpx);
  665. transition: all 0.3s ease;
  666. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.3);
  667. &:active {
  668. transform: scale(0.9);
  669. background: rgba(0, 0, 0, 0.8);
  670. }
  671. }
  672. }
  673. }
  674. }
  675. .content {
  676. // flex: 1;
  677. width: 90%;
  678. margin: -80rpx auto 0;
  679. position: relative;
  680. z-index: 3;
  681. padding-bottom: 20rpx;
  682. }
  683. .Xiadan-section {
  684. display: flex;
  685. // justify-content: space-around;
  686. align-items: center;
  687. margin-bottom: 20rpx;
  688. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 50%);
  689. image {
  690. width: 80rpx;
  691. height: 80rpx;
  692. }
  693. .left-text {
  694. font-family: PingFang SC;
  695. font-weight: 400;
  696. font-size: 12px;
  697. line-height: 140%;
  698. letter-spacing: 0%;
  699. }
  700. .right {
  701. display: flex;
  702. // flex-direction: row-reverse;
  703. box-sizing: border-box;
  704. align-items: center;
  705. justify-content: center;
  706. background-color: #fff0d2;
  707. color: #da7143;
  708. font-size: 24rpx;
  709. // flex-grow: 2;
  710. border: 1px solid #da7143;
  711. border-radius: 10rpx;
  712. width: 25%;
  713. image {
  714. width: 40rpx;
  715. height: 40rpx;
  716. }
  717. }
  718. }
  719. .section-header {
  720. display: flex;
  721. // justify-content: space-around;
  722. align-items: center;
  723. margin-bottom: 20rpx;
  724. .title {
  725. font-size: 32rpx;
  726. font-weight: bold;
  727. color: #333;
  728. }
  729. .more {
  730. // justify-content: right;
  731. display: flex;
  732. flex-direction: row-reverse;
  733. align-items: center;
  734. color: #999;
  735. font-size: 24rpx;
  736. flex-grow: 2;
  737. // width: 100%;
  738. // margin-right: 0 auto;
  739. }
  740. }
  741. .process-section {
  742. background: #fff;
  743. border-radius: 50rpx;
  744. padding: 30rpx;
  745. margin-bottom: 20rpx;
  746. background: linear-gradient(to bottom, #fff5e1 0%, #fffefb 30%);
  747. .contact-service {
  748. display: flex;
  749. align-items: center;
  750. font-size: 24rpx;
  751. color: #666;
  752. border: 1px solid #da7143;
  753. background-color: #fff0d2;
  754. .service-icon {
  755. width: 32rpx;
  756. height: 32rpx;
  757. margin-right: 8rpx;
  758. }
  759. }
  760. .process-grid {
  761. display: grid;
  762. grid-template-columns: repeat(4, 1fr);
  763. gap: 20rpx;
  764. margin: 30rpx 0;
  765. border: none;
  766. }
  767. .process-item {
  768. position: relative;
  769. display: flex;
  770. flex-direction: column;
  771. align-items: center;
  772. background-color: #fff8ea;
  773. // left: 0; right: 0;
  774. .process-icon {
  775. width: 80rpx;
  776. height: 80rpx;
  777. margin-bottom: 10rpx;
  778. }
  779. .process-text {
  780. font-size: 24rpx;
  781. color: #333;
  782. }
  783. .process-number {
  784. position: absolute;
  785. top: -10rpx;
  786. left: 50%;
  787. transform: translateX(-50%);
  788. font-size: 24rpx;
  789. color: #999;
  790. }
  791. }
  792. .submit-btn {
  793. background: linear-gradient(to right, #ffd01e, #ff8917);
  794. border-radius: 70rpx;
  795. padding: 20rpx;
  796. text-align: center;
  797. position: relative;
  798. border: none;
  799. display: flex;
  800. flex-direction: column;
  801. overflow: visible;
  802. text {
  803. color: #ffffff;
  804. font-size: 32rpx;
  805. font-weight: bold;
  806. line-height: 40rpx;
  807. // display: block;
  808. }
  809. .btn-desc {
  810. font-size: 24rpx;
  811. font-weight: normal;
  812. // margin-top: 4rpx;
  813. }
  814. .arrow-icon {
  815. position: absolute;
  816. right: 10rpx;
  817. top: 10%;
  818. transform: translateY(-50%);
  819. width: 40rpx;
  820. height: 40rpx;
  821. // z-index: 5;
  822. }
  823. .arrow-icon-left {
  824. position: absolute;
  825. left: 1rpx;
  826. top: 90%;
  827. transform: translateY(-50%);
  828. width: 40rpx;
  829. height: 40rpx;
  830. // z-index: 4;
  831. }
  832. }
  833. .submit-btn::after {
  834. border: none !important;
  835. }
  836. }
  837. .city-section {
  838. background: #fff;
  839. border-radius: 20rpx;
  840. padding: 30rpx;
  841. margin-bottom: 20rpx;
  842. .city-header {
  843. display: flex;
  844. justify-content: space-between;
  845. align-items: center;
  846. font-size: 28rpx;
  847. color: #333;
  848. margin-bottom: 10rpx;
  849. }
  850. .city-list {
  851. font-size: 26rpx;
  852. color: #333;
  853. font-weight: bold;
  854. line-height: 1.5;
  855. white-space: nowrap;
  856. overflow: hidden;
  857. text-overflow: ellipsis;
  858. word-break: keep-all;
  859. width: 100%;
  860. max-width: 100%;
  861. display: block;
  862. }
  863. }
  864. .price-section {
  865. background: #f0f9eb;
  866. border-radius: 20rpx;
  867. padding: 30rpx;
  868. margin-bottom: 20rpx;
  869. background-color: #fffefb;
  870. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 5%);
  871. .section-header {
  872. margin-bottom: 40rpx;
  873. }
  874. .price-grid {
  875. display: grid;
  876. grid-template-columns: repeat(2, 1fr);
  877. gap: 20rpx;
  878. }
  879. .price-item {
  880. display: flex;
  881. flex-direction: column;
  882. align-items: center;
  883. background: #fff;
  884. border-radius: 16rpx;
  885. padding: 30rpx;
  886. background-color: #fff8ea;
  887. .item-icon {
  888. width: 120rpx;
  889. height: 120rpx;
  890. margin-bottom: 12rpx;
  891. &.placeholder {
  892. width: 120rpx;
  893. height: 120rpx;
  894. margin-bottom: 12rpx;
  895. background: #f5f5f5;
  896. border-radius: 16rpx;
  897. }
  898. }
  899. .item-name {
  900. font-size: 30rpx;
  901. color: #333;
  902. margin-bottom: 8rpx;
  903. font-weight: 500;
  904. }
  905. .item-price {
  906. font-family: PingFang SC;
  907. font-weight: 600;
  908. font-size: 28rpx;
  909. line-height: 140%;
  910. letter-spacing: 0%;
  911. text-align: center;
  912. color: #181818;
  913. .item-price-right {
  914. text-align: center;
  915. font-size: 26rpx;
  916. color: #666;
  917. line-height: 140%;
  918. letter-spacing: 0%;
  919. font-weight: 400;
  920. }
  921. }
  922. }
  923. }
  924. .recent-section {
  925. background: #f0f9eb;
  926. border-radius: 20rpx;
  927. padding: 30rpx;
  928. margin-bottom: 20rpx;
  929. background-color: #fffefb;
  930. background: linear-gradient(to bottom, #e8ffe0 0%, #fffefb 15%);
  931. .records-grid {
  932. display: grid;
  933. grid-template-columns: repeat(3, 1fr);
  934. gap: 20rpx;
  935. }
  936. .record-item {
  937. display: flex;
  938. flex-direction: column;
  939. align-items: center;
  940. background: linear-gradient(to top, #e8ffe0 0%, #fffefb 100%);
  941. border-radius: 16rpx;
  942. padding: 10rpx;
  943. background-color: #fff8ea;
  944. image {
  945. width: 60rpx;
  946. height: 60rpx;
  947. border-radius: 50%;
  948. }
  949. .location {
  950. font-size: 28rpx;
  951. color: #333;
  952. font-weight: bold;
  953. }
  954. .amount {
  955. font-size: 30rpx;
  956. color: #13ac47;
  957. font-weight: bold;
  958. margin: 6rpx 0;
  959. }
  960. .user-id {
  961. font-family: PingFang SC;
  962. font-weight: 500;
  963. font-size: 24rpx;
  964. line-height: 140%;
  965. letter-spacing: 0%;
  966. text-align: center;
  967. color: #183c5c;
  968. }
  969. .user-id-f {
  970. font-family: PingFang SC;
  971. font-weight: 400;
  972. font-size: 22rpx;
  973. line-height: 140%;
  974. letter-spacing: 0%;
  975. text-align: center;
  976. color: #9b9b9b;
  977. }
  978. }
  979. }
  980. .destination-section {
  981. // background: #fff;
  982. border-radius: 20rpx;
  983. padding: 30rpx;
  984. margin-bottom: 20rpx;
  985. background: linear-gradient(to bottom, #f2f0fc 0%, #fffefb 10%);
  986. padding-bottom: calc(var(--window-bottom) + 60px);
  987. .destination-grid {
  988. display: grid;
  989. grid-template-columns: repeat(2, 1fr);
  990. gap: 20rpx;
  991. }
  992. .destination-item {
  993. display: flex;
  994. align-items: center;
  995. // background: #fff9f9;
  996. border-radius: 16rpx;
  997. padding: 20rpx;
  998. .dest-icon {
  999. width: 60rpx;
  1000. height: 60rpx;
  1001. margin-right: 16rpx;
  1002. }
  1003. .dest-info {
  1004. flex: 1;
  1005. .dest-title {
  1006. font-size: 26rpx;
  1007. color: #333;
  1008. margin-bottom: 4rpx;
  1009. }
  1010. .dest-desc {
  1011. font-size: 22rpx;
  1012. color: #999;
  1013. }
  1014. }
  1015. }
  1016. }
  1017. .destination-item1 {
  1018. background: linear-gradient(to top, #ffebeb, #fffefb);
  1019. }
  1020. .destination-item2 {
  1021. background: linear-gradient(to top, #ebf8ff, #fffefb);
  1022. }
  1023. .destination-item3 {
  1024. background: linear-gradient(to top, #ebedff, #fffefb);
  1025. }
  1026. .destination-item4 {
  1027. background: linear-gradient(to top, #ebfff2, #fffefb);
  1028. }
  1029. .about-section {
  1030. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 30%);
  1031. border-radius: 20rpx;
  1032. padding: 30rpx;
  1033. display: flex;
  1034. justify-content: space-between;
  1035. flex-direction: column;
  1036. .about-footer {
  1037. display: flex;
  1038. flex-direction: row;
  1039. align-items: center;
  1040. justify-content: center;
  1041. }
  1042. .about-header {
  1043. display: flex;
  1044. align-items: center;
  1045. .logo {
  1046. width: 60rpx;
  1047. height: 60rpx;
  1048. margin-right: 16rpx;
  1049. }
  1050. .about-title {
  1051. font-size: 28rpx;
  1052. color: #333;
  1053. }
  1054. }
  1055. .about-content {
  1056. flex: 1;
  1057. margin-left: 20rpx;
  1058. text {
  1059. display: block;
  1060. font-size: 26rpx;
  1061. color: #333;
  1062. }
  1063. .about-desc {
  1064. font-size: 22rpx;
  1065. color: #999;
  1066. margin-top: 4rpx;
  1067. }
  1068. }
  1069. }
  1070. .tab-bar {
  1071. position: fixed;
  1072. bottom: 0;
  1073. left: 0;
  1074. right: 0;
  1075. height: 100rpx;
  1076. background-color: #fff;
  1077. display: flex;
  1078. justify-content: space-around;
  1079. align-items: center;
  1080. border-top: 1rpx solid #f5f5f5;
  1081. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  1082. .tab-item {
  1083. display: flex;
  1084. flex-direction: column;
  1085. align-items: center;
  1086. padding: 10rpx 0;
  1087. transition: all 0.3s ease;
  1088. .tab-icon {
  1089. width: 48rpx;
  1090. height: 48rpx;
  1091. margin-bottom: 6rpx;
  1092. }
  1093. text {
  1094. font-size: 22rpx;
  1095. color: #666;
  1096. transition: color 0.3s ease;
  1097. }
  1098. &.active {
  1099. text {
  1100. color: #ff5e00;
  1101. }
  1102. }
  1103. &:active {
  1104. transform: scale(0.95);
  1105. }
  1106. }
  1107. }
  1108. @keyframes fadeInUp {
  1109. from {
  1110. opacity: 0;
  1111. transform: translateY(20rpx);
  1112. }
  1113. to {
  1114. opacity: 1;
  1115. transform: translateY(0);
  1116. }
  1117. }
  1118. @keyframes fadeInScale {
  1119. from {
  1120. opacity: 0;
  1121. transform: scale(0.8);
  1122. }
  1123. to {
  1124. opacity: 1;
  1125. transform: scale(1);
  1126. }
  1127. }
  1128. // 客服二维码弹窗样式
  1129. .qrcode-modal-mask {
  1130. position: fixed;
  1131. top: 0;
  1132. left: 0;
  1133. right: 0;
  1134. bottom: 0;
  1135. background: rgba(0, 0, 0, 0.6);
  1136. display: flex;
  1137. justify-content: center;
  1138. align-items: center;
  1139. z-index: 9999;
  1140. backdrop-filter: blur(5rpx);
  1141. }
  1142. .qrcode-modal-content {
  1143. background: #fff;
  1144. border-radius: 24rpx;
  1145. width: 600rpx;
  1146. max-width: 90vw;
  1147. animation: fadeInScale 0.3s ease;
  1148. overflow: hidden;
  1149. }
  1150. .qrcode-modal-header {
  1151. display: flex;
  1152. justify-content: space-between;
  1153. align-items: center;
  1154. padding: 40rpx 40rpx 20rpx 40rpx;
  1155. border-bottom: 1rpx solid #f0f0f0;
  1156. }
  1157. .qrcode-modal-title {
  1158. font-size: 36rpx;
  1159. font-weight: bold;
  1160. color: #333;
  1161. }
  1162. .qrcode-modal-close {
  1163. padding: 10rpx;
  1164. margin: -10rpx;
  1165. }
  1166. .qrcode-modal-body {
  1167. padding: 40rpx;
  1168. display: flex;
  1169. flex-direction: column;
  1170. align-items: center;
  1171. }
  1172. .qrcode-modal-img {
  1173. width: 400rpx;
  1174. height: 400rpx;
  1175. border-radius: 16rpx;
  1176. margin-bottom: 30rpx;
  1177. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  1178. }
  1179. .qrcode-placeholder {
  1180. width: 400rpx;
  1181. height: 400rpx;
  1182. border-radius: 16rpx;
  1183. margin-bottom: 30rpx;
  1184. background: #f5f5f5;
  1185. display: flex;
  1186. justify-content: center;
  1187. align-items: center;
  1188. text {
  1189. color: #999;
  1190. font-size: 28rpx;
  1191. }
  1192. }
  1193. .qrcode-modal-tip {
  1194. font-size: 28rpx;
  1195. color: #666;
  1196. text-align: center;
  1197. line-height: 1.4;
  1198. margin-bottom: 20rpx;
  1199. }
  1200. .qrcode-actions {
  1201. display: flex;
  1202. justify-content: center;
  1203. margin-top: 20rpx;
  1204. }
  1205. .save-btn {
  1206. background: linear-gradient(90deg, #ff8917, #ffd01e);
  1207. color: #fff;
  1208. border: none;
  1209. border-radius: 25rpx;
  1210. padding: 16rpx 40rpx;
  1211. font-size: 28rpx;
  1212. font-weight: bold;
  1213. &::after {
  1214. border: none;
  1215. }
  1216. &:active {
  1217. opacity: 0.8;
  1218. }
  1219. }
  1220. </style>