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

1375 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
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. const query = this.queryParams || {}
  561. if (query.shareId) {
  562. uni.setStorageSync('shareId', query.shareId)
  563. }
  564. // 先设置数据,再调用处理方法
  565. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  566. this.bannerList = getApp().globalData.bannerList || []
  567. this.getAreaList()
  568. this.getPricePreview()
  569. this.getRecentGoods()
  570. this.getFreeCityList()
  571. // 监听数据更新事件
  572. uni.$on('pricePreviewListUpdated', () => {
  573. this.pricePreviewList = getApp().globalData.pricePreviewList || []
  574. this.getPricePreview()
  575. })
  576. uni.$on('bannerListUpdated', () => {
  577. this.bannerList = getApp().globalData.bannerList || []
  578. })
  579. },
  580. },
  581. onLoad(query) {
  582. // 保存query参数
  583. this.queryParams = query
  584. // 检查App数据是否已经准备好
  585. if (!getApp().globalData.isAppDataReady) {
  586. // 显示加载状态
  587. uni.showLoading({
  588. title: '加载中...',
  589. mask: true
  590. })
  591. // 监听App数据准备完成事件
  592. uni.$on('appDataReady', () => {
  593. uni.hideLoading()
  594. this.initializePageData()
  595. })
  596. } else {
  597. // App数据已经准备好,直接初始化页面数据
  598. this.initializePageData()
  599. }
  600. },
  601. onUnload() {
  602. uni.$off('pricePreviewListUpdated')
  603. uni.$off('bannerListUpdated')
  604. uni.$off('configDataUpdated', this.updateCionData)
  605. },
  606. onShow() {
  607. this.updateCionData();
  608. // 监听全局数据更新
  609. uni.$on('configDataUpdated', this.updateCionData);
  610. this.getPricePreview();
  611. this.getRecyclingDestination()
  612. },
  613. }
  614. </script>
  615. <style lang="scss" scoped>
  616. .container {
  617. min-height: 100vh;
  618. background-color: #f8f8f8;
  619. display: flex;
  620. flex-direction: column;
  621. padding-bottom: calc(var(--window-bottom) + 70px);
  622. }
  623. .safe-area {
  624. padding-bottom: constant(safe-area-inset-bottom);
  625. padding-bottom: env(safe-area-inset-bottom);
  626. }
  627. .banner {
  628. width: 100%;
  629. height: 400rpx;
  630. position: relative;
  631. overflow: hidden;
  632. border-radius: 0 0 30rpx 30rpx;
  633. image {
  634. width: 100%;
  635. height: 100%;
  636. }
  637. .video-container {
  638. position: relative;
  639. width: 100%;
  640. height: 100%;
  641. .video-poster {
  642. cursor: pointer;
  643. transition: transform 0.2s ease;
  644. &:active {
  645. transform: scale(0.98);
  646. }
  647. }
  648. .video-overlay {
  649. position: absolute;
  650. top: 0;
  651. left: 0;
  652. right: 0;
  653. bottom: 0;
  654. background: rgba(0, 0, 0, 0.4);
  655. z-index: 10;
  656. cursor: pointer;
  657. display: flex;
  658. justify-content: center;
  659. align-items: center;
  660. .play-button-large {
  661. width: 120rpx;
  662. height: 120rpx;
  663. background: transparent;
  664. border-radius: 50%;
  665. display: flex;
  666. justify-content: center;
  667. align-items: center;
  668. backdrop-filter: blur(10rpx);
  669. transition: all 0.3s ease;
  670. box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.3);
  671. // border: 3rpx solid rgba(255, 255, 255, 0.9);
  672. &:active {
  673. transform: scale(0.9);
  674. background: rgba(255, 255, 255, 0.1);
  675. }
  676. .play-triangle {
  677. width: 0;
  678. height: 0;
  679. border-left: 24rpx solid #fff;
  680. border-top: 18rpx solid transparent;
  681. border-bottom: 18rpx solid transparent;
  682. margin-left: 8rpx;
  683. transition: all 0.3s ease;
  684. filter: drop-shadow(0 2rpx 4rpx rgba(0, 0, 0, 0.3));
  685. }
  686. }
  687. &:hover .play-button-large {
  688. transform: scale(1.1);
  689. box-shadow: 0 12rpx 40rpx rgba(0, 0, 0, 0.4);
  690. .play-triangle {
  691. border-left-color: #ff8917;
  692. }
  693. }
  694. }
  695. }
  696. }
  697. .content {
  698. // flex: 1;
  699. width: 90%;
  700. margin: -80rpx auto 0;
  701. position: relative;
  702. z-index: 3;
  703. padding-bottom: 20rpx;
  704. }
  705. .Xiadan-section {
  706. display: flex;
  707. // justify-content: space-around;
  708. align-items: center;
  709. margin-bottom: 20rpx;
  710. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 50%);
  711. image {
  712. width: 80rpx;
  713. height: 80rpx;
  714. }
  715. .left-text {
  716. font-family: PingFang SC;
  717. font-weight: 400;
  718. font-size: 12px;
  719. line-height: 140%;
  720. letter-spacing: 0%;
  721. }
  722. .right {
  723. display: flex;
  724. // flex-direction: row-reverse;
  725. box-sizing: border-box;
  726. align-items: center;
  727. justify-content: center;
  728. background-color: #fff0d2;
  729. color: #da7143;
  730. font-size: 24rpx;
  731. // flex-grow: 2;
  732. border: 1px solid #da7143;
  733. border-radius: 10rpx;
  734. width: 25%;
  735. image {
  736. width: 40rpx;
  737. height: 40rpx;
  738. }
  739. }
  740. }
  741. .section-header {
  742. display: flex;
  743. // justify-content: space-around;
  744. align-items: center;
  745. margin-bottom: 20rpx;
  746. .title {
  747. font-size: 32rpx;
  748. font-weight: bold;
  749. color: #333;
  750. }
  751. .more {
  752. // justify-content: right;
  753. display: flex;
  754. flex-direction: row-reverse;
  755. align-items: center;
  756. color: #999;
  757. font-size: 24rpx;
  758. flex-grow: 2;
  759. // width: 100%;
  760. // margin-right: 0 auto;
  761. }
  762. }
  763. .process-section {
  764. background: #fff;
  765. border-radius: 50rpx;
  766. padding: 30rpx;
  767. margin-bottom: 20rpx;
  768. background: linear-gradient(to bottom, #fff5e1 0%, #fffefb 30%);
  769. .contact-service {
  770. display: flex;
  771. align-items: center;
  772. font-size: 24rpx;
  773. color: #666;
  774. border: 1px solid #da7143;
  775. background-color: #fff0d2;
  776. .service-icon {
  777. width: 32rpx;
  778. height: 32rpx;
  779. margin-right: 8rpx;
  780. }
  781. }
  782. .process-grid {
  783. display: grid;
  784. grid-template-columns: repeat(4, 1fr);
  785. gap: 20rpx;
  786. margin: 30rpx 0;
  787. border: none;
  788. }
  789. .process-item {
  790. position: relative;
  791. display: flex;
  792. flex-direction: column;
  793. align-items: center;
  794. background-color: #fff8ea;
  795. // left: 0; right: 0;
  796. .process-icon {
  797. width: 80rpx;
  798. height: 80rpx;
  799. margin-bottom: 10rpx;
  800. }
  801. .process-text {
  802. font-size: 24rpx;
  803. color: #333;
  804. }
  805. .process-number {
  806. position: absolute;
  807. top: -10rpx;
  808. left: 50%;
  809. transform: translateX(-50%);
  810. font-size: 24rpx;
  811. color: #999;
  812. }
  813. }
  814. .submit-btn {
  815. background: linear-gradient(to right, #ffd01e, #ff8917);
  816. border-radius: 70rpx;
  817. padding: 20rpx;
  818. text-align: center;
  819. position: relative;
  820. border: none;
  821. display: flex;
  822. flex-direction: column;
  823. overflow: visible;
  824. text {
  825. color: #ffffff;
  826. font-size: 32rpx;
  827. font-weight: bold;
  828. line-height: 40rpx;
  829. // display: block;
  830. }
  831. .btn-desc {
  832. font-size: 24rpx;
  833. font-weight: normal;
  834. // margin-top: 4rpx;
  835. }
  836. .arrow-icon {
  837. position: absolute;
  838. right: 10rpx;
  839. top: 10%;
  840. transform: translateY(-50%);
  841. width: 40rpx;
  842. height: 40rpx;
  843. // z-index: 5;
  844. }
  845. .arrow-icon-left {
  846. position: absolute;
  847. left: 1rpx;
  848. top: 90%;
  849. transform: translateY(-50%);
  850. width: 40rpx;
  851. height: 40rpx;
  852. // z-index: 4;
  853. }
  854. }
  855. .submit-btn::after {
  856. border: none !important;
  857. }
  858. }
  859. .city-section {
  860. background: #fff;
  861. border-radius: 20rpx;
  862. padding: 30rpx;
  863. margin-bottom: 20rpx;
  864. .city-header {
  865. display: flex;
  866. justify-content: space-between;
  867. align-items: center;
  868. font-size: 28rpx;
  869. color: #333;
  870. margin-bottom: 10rpx;
  871. }
  872. .city-list {
  873. font-size: 26rpx;
  874. color: #333;
  875. font-weight: bold;
  876. line-height: 1.5;
  877. white-space: nowrap;
  878. overflow: hidden;
  879. text-overflow: ellipsis;
  880. word-break: keep-all;
  881. width: 100%;
  882. max-width: 100%;
  883. display: block;
  884. }
  885. }
  886. .price-section {
  887. background: #f0f9eb;
  888. border-radius: 20rpx;
  889. padding: 30rpx;
  890. margin-bottom: 20rpx;
  891. background-color: #fffefb;
  892. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 5%);
  893. .section-header {
  894. margin-bottom: 40rpx;
  895. }
  896. .price-grid {
  897. display: grid;
  898. grid-template-columns: repeat(2, 1fr);
  899. gap: 20rpx;
  900. }
  901. .price-item {
  902. display: flex;
  903. flex-direction: column;
  904. align-items: center;
  905. background: #fff;
  906. border-radius: 16rpx;
  907. padding: 30rpx;
  908. background-color: #fff8ea;
  909. .item-icon {
  910. width: 120rpx;
  911. height: 120rpx;
  912. margin-bottom: 12rpx;
  913. &.placeholder {
  914. width: 120rpx;
  915. height: 120rpx;
  916. margin-bottom: 12rpx;
  917. background: #f5f5f5;
  918. border-radius: 16rpx;
  919. }
  920. }
  921. .item-name {
  922. font-size: 30rpx;
  923. color: #333;
  924. margin-bottom: 8rpx;
  925. font-weight: 500;
  926. }
  927. .item-price {
  928. font-family: PingFang SC;
  929. font-weight: 600;
  930. font-size: 28rpx;
  931. line-height: 140%;
  932. letter-spacing: 0%;
  933. text-align: center;
  934. color: #181818;
  935. .item-price-right {
  936. text-align: center;
  937. font-size: 26rpx;
  938. color: #666;
  939. line-height: 140%;
  940. letter-spacing: 0%;
  941. font-weight: 400;
  942. }
  943. }
  944. }
  945. }
  946. .recent-section {
  947. background: #f0f9eb;
  948. border-radius: 20rpx;
  949. padding: 30rpx;
  950. margin-bottom: 20rpx;
  951. background-color: #fffefb;
  952. background: linear-gradient(to bottom, #e8ffe0 0%, #fffefb 15%);
  953. .records-grid {
  954. display: grid;
  955. grid-template-columns: repeat(3, 1fr);
  956. gap: 20rpx;
  957. }
  958. .record-item {
  959. display: flex;
  960. flex-direction: column;
  961. align-items: center;
  962. background: linear-gradient(to top, #e8ffe0 0%, #fffefb 100%);
  963. border-radius: 16rpx;
  964. padding: 10rpx;
  965. background-color: #fff8ea;
  966. image {
  967. width: 60rpx;
  968. height: 60rpx;
  969. border-radius: 50%;
  970. }
  971. .location {
  972. font-size: 28rpx;
  973. color: #333;
  974. font-weight: bold;
  975. }
  976. .amount {
  977. font-size: 30rpx;
  978. color: #13ac47;
  979. font-weight: bold;
  980. margin: 6rpx 0;
  981. }
  982. .user-id {
  983. font-family: PingFang SC;
  984. font-weight: 500;
  985. font-size: 24rpx;
  986. line-height: 140%;
  987. letter-spacing: 0%;
  988. text-align: center;
  989. color: #183c5c;
  990. }
  991. .user-id-f {
  992. font-family: PingFang SC;
  993. font-weight: 400;
  994. font-size: 22rpx;
  995. line-height: 140%;
  996. letter-spacing: 0%;
  997. text-align: center;
  998. color: #9b9b9b;
  999. }
  1000. }
  1001. }
  1002. .destination-section {
  1003. // background: #fff;
  1004. border-radius: 20rpx;
  1005. padding: 30rpx;
  1006. margin-bottom: 20rpx;
  1007. background: linear-gradient(to bottom, #f2f0fc 0%, #fffefb 10%);
  1008. padding-bottom: calc(var(--window-bottom) + 60px);
  1009. .destination-grid {
  1010. display: grid;
  1011. grid-template-columns: repeat(2, 1fr);
  1012. gap: 20rpx;
  1013. }
  1014. .destination-item {
  1015. display: flex;
  1016. align-items: center;
  1017. // background: #fff9f9;
  1018. border-radius: 16rpx;
  1019. padding: 20rpx;
  1020. .dest-icon {
  1021. width: 60rpx;
  1022. height: 60rpx;
  1023. margin-right: 16rpx;
  1024. }
  1025. .dest-info {
  1026. flex: 1;
  1027. .dest-title {
  1028. font-size: 26rpx;
  1029. color: #333;
  1030. margin-bottom: 4rpx;
  1031. }
  1032. .dest-desc {
  1033. font-size: 22rpx;
  1034. color: #999;
  1035. }
  1036. }
  1037. }
  1038. }
  1039. .destination-item1 {
  1040. background: linear-gradient(to top, #ffebeb, #fffefb);
  1041. }
  1042. .destination-item2 {
  1043. background: linear-gradient(to top, #ebf8ff, #fffefb);
  1044. }
  1045. .destination-item3 {
  1046. background: linear-gradient(to top, #ebedff, #fffefb);
  1047. }
  1048. .destination-item4 {
  1049. background: linear-gradient(to top, #ebfff2, #fffefb);
  1050. }
  1051. .about-section {
  1052. background: linear-gradient(to bottom, #fff3db 0%, #fffefb 30%);
  1053. border-radius: 20rpx;
  1054. padding: 30rpx;
  1055. display: flex;
  1056. justify-content: space-between;
  1057. flex-direction: column;
  1058. .about-footer {
  1059. display: flex;
  1060. flex-direction: row;
  1061. align-items: center;
  1062. justify-content: center;
  1063. }
  1064. .about-header {
  1065. display: flex;
  1066. align-items: center;
  1067. .logo {
  1068. width: 60rpx;
  1069. height: 60rpx;
  1070. margin-right: 16rpx;
  1071. }
  1072. .about-title {
  1073. font-size: 28rpx;
  1074. color: #333;
  1075. }
  1076. }
  1077. .about-content {
  1078. flex: 1;
  1079. margin-left: 20rpx;
  1080. text {
  1081. display: block;
  1082. font-size: 26rpx;
  1083. color: #333;
  1084. }
  1085. .about-desc {
  1086. font-size: 22rpx;
  1087. color: #999;
  1088. margin-top: 4rpx;
  1089. }
  1090. }
  1091. }
  1092. .tab-bar {
  1093. position: fixed;
  1094. bottom: 0;
  1095. left: 0;
  1096. right: 0;
  1097. height: 100rpx;
  1098. background-color: #fff;
  1099. display: flex;
  1100. justify-content: space-around;
  1101. align-items: center;
  1102. border-top: 1rpx solid #f5f5f5;
  1103. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  1104. .tab-item {
  1105. display: flex;
  1106. flex-direction: column;
  1107. align-items: center;
  1108. padding: 10rpx 0;
  1109. transition: all 0.3s ease;
  1110. .tab-icon {
  1111. width: 48rpx;
  1112. height: 48rpx;
  1113. margin-bottom: 6rpx;
  1114. }
  1115. text {
  1116. font-size: 22rpx;
  1117. color: #666;
  1118. transition: color 0.3s ease;
  1119. }
  1120. &.active {
  1121. text {
  1122. color: #ff5e00;
  1123. }
  1124. }
  1125. &:active {
  1126. transform: scale(0.95);
  1127. }
  1128. }
  1129. }
  1130. @keyframes fadeInUp {
  1131. from {
  1132. opacity: 0;
  1133. transform: translateY(20rpx);
  1134. }
  1135. to {
  1136. opacity: 1;
  1137. transform: translateY(0);
  1138. }
  1139. }
  1140. @keyframes fadeInScale {
  1141. from {
  1142. opacity: 0;
  1143. transform: scale(0.8);
  1144. }
  1145. to {
  1146. opacity: 1;
  1147. transform: scale(1);
  1148. }
  1149. }
  1150. // 客服二维码弹窗样式
  1151. .qrcode-modal-mask {
  1152. position: fixed;
  1153. top: 0;
  1154. left: 0;
  1155. right: 0;
  1156. bottom: 0;
  1157. background: rgba(0, 0, 0, 0.6);
  1158. display: flex;
  1159. justify-content: center;
  1160. align-items: center;
  1161. z-index: 9999;
  1162. backdrop-filter: blur(5rpx);
  1163. }
  1164. .qrcode-modal-content {
  1165. background: #fff;
  1166. border-radius: 24rpx;
  1167. width: 600rpx;
  1168. max-width: 90vw;
  1169. animation: fadeInScale 0.3s ease;
  1170. overflow: hidden;
  1171. }
  1172. .qrcode-modal-header {
  1173. display: flex;
  1174. justify-content: space-between;
  1175. align-items: center;
  1176. padding: 40rpx 40rpx 20rpx 40rpx;
  1177. border-bottom: 1rpx solid #f0f0f0;
  1178. }
  1179. .qrcode-modal-title {
  1180. font-size: 36rpx;
  1181. font-weight: bold;
  1182. color: #333;
  1183. }
  1184. .qrcode-modal-close {
  1185. padding: 10rpx;
  1186. margin: -10rpx;
  1187. }
  1188. .qrcode-modal-body {
  1189. padding: 40rpx;
  1190. display: flex;
  1191. flex-direction: column;
  1192. align-items: center;
  1193. }
  1194. .qrcode-modal-img {
  1195. width: 400rpx;
  1196. height: 400rpx;
  1197. border-radius: 16rpx;
  1198. margin-bottom: 30rpx;
  1199. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  1200. }
  1201. .qrcode-placeholder {
  1202. width: 400rpx;
  1203. height: 400rpx;
  1204. border-radius: 16rpx;
  1205. margin-bottom: 30rpx;
  1206. background: #f5f5f5;
  1207. display: flex;
  1208. justify-content: center;
  1209. align-items: center;
  1210. text {
  1211. color: #999;
  1212. font-size: 28rpx;
  1213. }
  1214. }
  1215. .qrcode-modal-tip {
  1216. font-size: 28rpx;
  1217. color: #666;
  1218. text-align: center;
  1219. line-height: 1.4;
  1220. margin-bottom: 20rpx;
  1221. }
  1222. .qrcode-actions {
  1223. display: flex;
  1224. justify-content: center;
  1225. margin-top: 20rpx;
  1226. }
  1227. .save-btn {
  1228. background: linear-gradient(90deg, #ff8917, #ffd01e);
  1229. color: #fff;
  1230. border: none;
  1231. border-radius: 25rpx;
  1232. padding: 16rpx 40rpx;
  1233. font-size: 28rpx;
  1234. font-weight: bold;
  1235. &::after {
  1236. border: none;
  1237. }
  1238. &:active {
  1239. opacity: 0.8;
  1240. }
  1241. }
  1242. </style>