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

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