home.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <template>
  2. <view class="home-wrap base-container">
  3. <view class="home-top">
  4. <view class="home-search">
  5. <view class="search-wrap">
  6. <input />
  7. </view>
  8. <view class="search-btn">
  9. 搜索
  10. </view>
  11. </view>
  12. <view class="map-wrap">
  13. <map
  14. id="myMap"
  15. class="map-dom"
  16. :latitude="center.latitude"
  17. :longitude="center.longitude"
  18. :markers="clusters"
  19. :polyline="[]"
  20. :include-points="includePoints"
  21. @regionchange="onRegionChange"
  22. @scale="onScaleChange"
  23. show-location
  24. ></map>
  25. </view>
  26. </view>
  27. <view class="type-wrap">
  28. <up-scroll-list indicatorColor="#fae6a4" indicatorActiveColor="#F3C11D" :indicatorWidth="30" :indicatorBarWidth="13">
  29. <view class="item-type">
  30. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon.png`" alt="" />
  31. <view class="type-text">
  32. 全部
  33. </view>
  34. </view>
  35. <view class="item-type">
  36. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-2.png`" alt="" />
  37. <view class="type-text">
  38. 龙眼
  39. </view>
  40. </view>
  41. <view class="item-type">
  42. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-3.png`" alt="" />
  43. <view class="type-text">
  44. 葡萄
  45. </view>
  46. </view>
  47. <view class="item-type">
  48. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon.png`" alt="" />
  49. <view class="type-text">
  50. 水蜜桃
  51. </view>
  52. </view>
  53. <view class="item-type">
  54. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-2.png`" alt="" />
  55. <view class="type-text">
  56. 龙眼
  57. </view>
  58. </view>
  59. <view class="item-type">
  60. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-3.png`" alt="" />
  61. <view class="type-text">
  62. 葡萄
  63. </view>
  64. </view>
  65. <view class="item-type">
  66. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-3.png`" alt="" />
  67. <view class="type-text">
  68. 葡萄1
  69. </view>
  70. </view>
  71. <view class="item-type">
  72. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon.png`" alt="" />
  73. <view class="type-text">
  74. 水蜜桃2
  75. </view>
  76. </view>
  77. <view class="item-type">
  78. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-3.png`" alt="" />
  79. <view class="type-text">
  80. 葡萄
  81. </view>
  82. </view>
  83. <view class="item-type">
  84. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon.png`" alt="" />
  85. <view class="type-text">
  86. 水蜜桃
  87. </view>
  88. </view>
  89. <view class="item-type">
  90. <image class="type-img" :src="`${config.BASIC_IMG}home/type-icon-2.png`" alt="" />
  91. <view class="type-text">
  92. 龙眼
  93. </view>
  94. </view>
  95. </up-scroll-list>
  96. </view>
  97. <!-- 好味热卖 -->
  98. <view class="hot-wrap">
  99. <view class="hot-content">
  100. <view class="hot-title">
  101. <view class="title-l">
  102. 好味<text class="title-color">热卖</text>
  103. </view>
  104. <view class="title-btn">
  105. 限时抢购中<up-icon size="10" name="arrow-right"></up-icon>
  106. </view>
  107. </view>
  108. <view class="hot-list">
  109. <up-scroll-list indicatorColor="#fae6a4" indicatorActiveColor="#F3C11D" :indicatorWidth="30" :indicatorBarWidth="13">
  110. <view class="hot-panel">
  111. <view class="hot-item">
  112. <image class="hot-img" :src="`${config.BASIC_IMG}home/hot-1.png`" mode=""></image>
  113. <view class="item-info">
  114. <view class="info-text">
  115. <!-- <up-text :lines="2" color="#000000" size="12" text="海南妃子笑新鲜顺丰发货海南妃子笑海南妃子笑"></up-text> -->
  116. <view class="ellipsis-l2">
  117. 海南妃子笑新鲜顺丰发货海南妃子笑海南妃子笑
  118. </view>
  119. </view>
  120. <view class="info-price">
  121. <view class="price-text">
  122. <text class="price-unit">¥</text>108
  123. </view>
  124. <view class="info-sold">
  125. 已售1251
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="hot-item">
  131. <image class="hot-img" :src="`${config.BASIC_IMG}home/hot-2.png`" mode=""></image>
  132. <view class="item-info">
  133. <view class="info-text">
  134. <view class="ellipsis-l2">
  135. 海南妃子笑新鲜顺丰发货海南妃子笑海南妃子笑
  136. </view>
  137. </view>
  138. <view class="info-price">
  139. <view class="price-text">
  140. <text class="price-unit">¥</text>108
  141. </view>
  142. <view class="info-sold">
  143. 已售1251
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="hot-item">
  149. <image class="hot-img" :src="`${config.BASIC_IMG}home/hot-1.png`" mode=""></image>
  150. <view class="item-info">
  151. <view class="info-text">
  152. <view class="ellipsis-l2">
  153. 海南妃子笑新鲜顺丰发货海南妃子笑海南妃子笑新鲜顺丰发货
  154. </view>
  155. </view>
  156. <view class="info-price">
  157. <view class="price-text">
  158. <text class="price-unit">¥</text>108
  159. </view>
  160. <view class="info-sold">
  161. 已售1251
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="hot-item">
  167. <image class="hot-img" :src="`${config.BASIC_IMG}home/hot-2.png`" mode=""></image>
  168. <view class="item-info">
  169. <view class="info-text">
  170. <view class="ellipsis-l2">
  171. 海南妃子笑新鲜顺丰发货海南妃子笑海南妃子笑新鲜顺丰发货
  172. </view>
  173. </view>
  174. <view class="info-price">
  175. <view class="price-text">
  176. <text class="price-unit">¥</text>108
  177. </view>
  178. <view class="info-sold">
  179. 已售1251
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. </up-scroll-list>
  186. </view>
  187. </view>
  188. </view>
  189. <!-- 有味果园 -->
  190. <view class="garden-wrap">
  191. <view class="garden-content">
  192. <view class="hot-title">
  193. <view class="title-l">
  194. 有味果园
  195. </view>
  196. <view class="title-btn">
  197. 查看全部<up-icon size="10" name="arrow-right"></up-icon>
  198. </view>
  199. </view>
  200. <view class="garden-list">
  201. <view class="garden-item">
  202. <view class="garden-l">
  203. <image class="garden-img" :src="`${config.BASIC_IMG}home/garden.png`" mode=""></image>
  204. <text class="img-text">无人机实拍视频</text>
  205. </view>
  206. <view class="garden-r">
  207. <view class="garden-title">
  208. 从化荔枝博览园
  209. </view>
  210. <view class="garden-info">
  211. 品种:荔枝(井岗红糯、巨美人)
  212. </view>
  213. <view class="garden-info">
  214. 位置:广州市从化区
  215. </view>
  216. <view class="garden-btn-group">
  217. <view class="btn-second">
  218. 有味指数
  219. <text>4.5分</text>
  220. </view>
  221. <view class="btn-primary">
  222. 溯源报告
  223. </view>
  224. </view>
  225. </view>
  226. </view>
  227. <view class="garden-item">
  228. <view class="garden-l">
  229. <image class="garden-img" :src="`${config.BASIC_IMG}home/garden.png`" mode=""></image>
  230. <text class="img-text">无人机实拍视频</text>
  231. </view>
  232. <view class="garden-r">
  233. <view class="garden-title">
  234. 从化荔枝博览园
  235. </view>
  236. <view class="garden-info">
  237. 品种:荔枝(井岗红糯、巨美人)
  238. </view>
  239. <view class="garden-info">
  240. 位置:广州市从化区
  241. </view>
  242. <view class="garden-btn-group">
  243. <view class="btn-second">
  244. 有味指数
  245. <text>4.5分</text>
  246. </view>
  247. <view class="btn-primary">
  248. 溯源报告
  249. </view>
  250. </view>
  251. </view>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. </view>
  257. </template>
  258. <script setup>
  259. import { ref, onMounted, reactive } from 'vue'
  260. import QQMapWX from 'qqmap-wx-jssdk'
  261. import config from "@/api/config.js"
  262. // 广州中心坐标
  263. const GUANGZHOU_CENTER = {
  264. latitude: 23.12911,
  265. longitude: 113.26436
  266. }
  267. // 模拟广州的景点数据
  268. const GUANGZHOU_POIS = [
  269. { id: 1, name: '广州塔', latitude: 23.10641, longitude: 113.32466 },
  270. { id: 2, name: '白云山', latitude: 23.19746, longitude: 113.30249 },
  271. { id: 3, name: '越秀公园', latitude: 23.13927, longitude: 113.26436 },
  272. { id: 4, name: '沙面岛', latitude: 23.10788, longitude: 113.24365 },
  273. { id: 5, name: '陈家祠', latitude: 23.12632, longitude: 113.24849 },
  274. { id: 6, name: '北京路', latitude: 23.12389, longitude: 113.26799 },
  275. { id: 7, name: '上下九', latitude: 23.11696, longitude: 113.24899 },
  276. { id: 8, name: '荔枝博览园', latitude: 22.99405, longitude: 113.32486 },
  277. { id: 9, name: '中山纪念堂', latitude: 23.13146, longitude: 113.26336 },
  278. { id: 10, name: '海心沙', latitude: 23.11446, longitude: 113.32136 }
  279. ]
  280. // 响应式数据
  281. const qqmapsdk = ref(null)
  282. const mapContext = ref(null)
  283. const center = ref(GUANGZHOU_CENTER)
  284. const allMarkers = ref([])
  285. const clusters = ref([])
  286. const includePoints = ref([])
  287. const currentZoom = ref(16)
  288. // 初始化地图
  289. const initMap = () => {
  290. qqmapsdk.value = new QQMapWX({
  291. key: 'Q5GBZ-2LP6I-LOKGM-UE3UC-TXH7Z-WCFG2' // key
  292. })
  293. }
  294. // 加载点位数据
  295. const loadPoints = () => {
  296. allMarkers.value = GUANGZHOU_POIS.map(item => ({
  297. ...item,
  298. iconPath: '../../../static/map/point.png',
  299. width: 30,
  300. height: 30,
  301. callout: {
  302. content: item.name,
  303. color: '#ffffff',
  304. bgColor: '#007AFF',
  305. padding: 5,
  306. borderRadius: 4,
  307. display: 'ALWAYS'
  308. }
  309. }))
  310. updateClusters()
  311. }
  312. // 更新聚合点
  313. const updateClusters = () => {
  314. if (!allMarkers.value.length) return
  315. // 根据缩放级别决定聚合半径(单位:米)
  316. const clusterRadius = 100000 / Math.pow(2, currentZoom.value)
  317. // 使用网格化聚合提高性能
  318. const grid = {}
  319. allMarkers.value.forEach(marker => {
  320. const gridX = Math.floor(marker.longitude * 100 / clusterRadius)
  321. const gridY = Math.floor(marker.latitude * 100 / clusterRadius)
  322. const gridKey = `${gridX}_${gridY}`
  323. if (!grid[gridKey]) {
  324. grid[gridKey] = {
  325. markers: [marker],
  326. longitude: marker.longitude,
  327. latitude: marker.latitude,
  328. id: marker.id
  329. }
  330. } else {
  331. grid[gridKey].markers.push(marker)
  332. // 计算聚合点中心位置
  333. grid[gridKey].longitude = (grid[gridKey].longitude + marker.longitude) / 2
  334. grid[gridKey].latitude = (grid[gridKey].latitude + marker.latitude) / 2
  335. }
  336. })
  337. // 生成最终聚合数据
  338. clusters.value = Object.values(grid).map(cluster => ({
  339. id: cluster.id,
  340. latitude: cluster.latitude,
  341. longitude: cluster.longitude,
  342. iconPath: cluster.markers.length > 1
  343. ? '../../../static/map/tree.png' // 聚合图标
  344. : '../../../static/map/point.png', // 单点图标
  345. width: cluster.markers.length > 1 ? 40 : 30,
  346. height: cluster.markers.length > 1 ? 40 : 30,
  347. callout: {
  348. content: cluster.markers.length > 1
  349. ? `${cluster.markers.length}个地点`
  350. : cluster.markers[0].name,
  351. color: '#ffffff',
  352. bgColor: '#007AFF',
  353. padding: 5,
  354. borderRadius: 4,
  355. display: 'ALWAYS'
  356. },
  357. clusterData: cluster.markers
  358. }))
  359. // 更新地图视野包含所有点
  360. includePoints.value = clusters.value.map(m => ({
  361. latitude: m.latitude,
  362. longitude: m.longitude
  363. }))
  364. // 在updateClusters()最后添加
  365. // if (mapContext.value) {
  366. // mapContext.value.moveToLocation({
  367. // latitude: center.value.latitude,
  368. // longitude: center.value.longitude
  369. // })
  370. // }
  371. console.log(`当前缩放级别: ${currentZoom.value}, 聚合点数量: ${clusters.value.length}`)
  372. }
  373. // 计算两点间距离
  374. // 更精确的距离计算函数(Haversine公式)
  375. const getDistance = (lat1, lng1, lat2, lng2) => {
  376. // 将经纬度转换为弧度
  377. const toRad = d => d * Math.PI / 180
  378. const R = 6371 // 地球半径(km)
  379. const dLat = toRad(lat2 - lat1)
  380. const dLng = toRad(lng2 - lng1)
  381. const a =
  382. Math.sin(dLat / 2) * Math.sin(dLat / 2) +
  383. Math.cos(toRad(lat1)) * Math.cos(toRad(lat2)) *
  384. Math.sin(dLng / 2) * Math.sin(dLng / 2)
  385. const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a))
  386. return R * c * 1000 // 返回米
  387. }
  388. // 地图区域变化事件
  389. const onRegionChange = (e) => {
  390. // e = {causedBy, type, detail: {rotate, skew, scale, centerLocation, region}}
  391. if (e.type === 'end') {
  392. console.log('scale', e.detail.scale)
  393. uni.createMapContext('myMap').getScale({
  394. success: (res) => {
  395. if (res.scale !== currentZoom.value) {
  396. currentZoom.value = res.scale // 只有缩放变化时才更新
  397. updateClusters()
  398. }
  399. // currentZoom.value = res.scale
  400. // updateClusters()
  401. }
  402. })
  403. }
  404. }
  405. const onScaleChange = (e) => {
  406. console.log('eeeee', e)
  407. }
  408. const onDragEnd = (e) => {
  409. // 仅更新中心点,不触发聚合
  410. center.value = {
  411. latitude: e.detail.center.latitude,
  412. longitude: e.detail.center.longitude
  413. }
  414. }
  415. const onScaleChange2 = (e) => {
  416. // 只有手势缩放才更新层级并触发聚合
  417. currentZoom.value = e.detail.scale
  418. updateClusters()
  419. // 可选:限制最小/最大缩放级别
  420. if (currentZoom.value < 12) currentZoom.value = 12
  421. if (currentZoom.value > 20) currentZoom.value = 20
  422. }
  423. // 搜索地点
  424. const onSearch = (e) => {
  425. qqmapsdk.value.search({
  426. keyword: e.value,
  427. location: center.value,
  428. success: (res) => {
  429. allMarkers.value = res.data.map(item => ({
  430. id: item.id,
  431. name: item.title,
  432. latitude: item.location.lat,
  433. longitude: item.location.lng,
  434. iconPath: '../../../static/map/point.png',
  435. callout: {
  436. content: item.title,
  437. color: '#ffffff',
  438. bgColor: '#007AFF',
  439. padding: 5,
  440. borderRadius: 4,
  441. display: 'ALWAYS'
  442. }
  443. }))
  444. updateClusters()
  445. }
  446. })
  447. }
  448. // 清除搜索
  449. const clearSearch = () => {
  450. loadPoints()
  451. }
  452. // 生命周期钩子
  453. onMounted(() => {
  454. // #ifdef MP-WEIXIN
  455. mapContext.value = uni.createMapContext('myMap', this)
  456. initMap()
  457. loadPoints()
  458. // 获取地图区域
  459. if (mapContext.value && mapContext.value.getRegion) {
  460. mapContext.value.getRegion({
  461. success: res => console.log('地图范围:', res),
  462. fail: err => console.error('地图异常:', err)
  463. })
  464. }
  465. // #endif
  466. })
  467. const typeList = reactive([
  468. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  469. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  470. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  471. ]);
  472. </script>
  473. <style lang="scss" scoped>
  474. .home-wrap {
  475. background-color: #F2F3F5;
  476. padding: 0;
  477. .home-top {
  478. padding: 20rpx 24rpx;
  479. background: linear-gradient(#FFFFFF, rgba(242, 243, 245, 0));
  480. }
  481. .home-search {
  482. display: flex;
  483. align-items: center;
  484. width: 100%;
  485. border: 2rpx solid #FFD95E;
  486. border-radius: 40rpx;
  487. margin-bottom: 40rpx;
  488. .search-wrap {
  489. flex: 1;
  490. padding-left: 22rpx;
  491. }
  492. .search-btn {
  493. text-align: center;
  494. line-height: 52rpx;
  495. border-radius: 40rpx;
  496. font-size: 28rpx;
  497. background-color: #FFD95E;
  498. margin: 6rpx 8rpx;
  499. width: 112rpx;
  500. height: 52rpx;
  501. }
  502. }
  503. .map-wrap {
  504. height: 280rpx;
  505. .map-dom {
  506. width: 100%;
  507. height: 100%;
  508. }
  509. }
  510. .type-wrap {
  511. margin: 20rpx;
  512. padding: 20rpx;
  513. background-color: #fff;
  514. border-radius: 16rpx;
  515. height: 200rpx;
  516. box-sizing: border-box;
  517. .swiper-item {
  518. display: flex;
  519. align-items: center;
  520. }
  521. .swiper {
  522. height: 170rpx;
  523. }
  524. .item-type {
  525. text-align: center;
  526. font-size: 24rpx;
  527. .type-img {
  528. width: 92rpx;
  529. height: 92rpx;
  530. }
  531. }
  532. .item-type + .item-type {
  533. padding-left: 22rpx;
  534. }
  535. }
  536. .hot-wrap {
  537. margin: 0 20rpx 20rpx;
  538. background: linear-gradient(#FFFFFF, rgba(255, 255, 255, 0));
  539. padding: 2rpx;
  540. border-radius: 16rpx;
  541. .hot-content {
  542. background: linear-gradient(#fff1c3 4%, #FFFFFF 28%);
  543. border-radius: 16rpx;
  544. padding: 20rpx;
  545. height: 240rpx;
  546. box-sizing: border-box;
  547. .hot-list {
  548. .hot-panel {
  549. width: 100%;
  550. display: flex;
  551. .hot-item {
  552. width: calc(50% - 10rpx);
  553. display: flex;
  554. white-space: nowrap;
  555. .hot-img {
  556. flex: none;
  557. width: 116rpx;
  558. height: 116rpx;
  559. object-fit: cover;
  560. border-radius: 10rpx;
  561. }
  562. .item-info {
  563. padding-left: 10rpx;
  564. width: 200rpx;
  565. .info-text {
  566. color: #000000;
  567. font-size: 24rpx;
  568. }
  569. .info-price {
  570. display: flex;
  571. align-items: baseline;
  572. justify-content: space-between;
  573. .price-text {
  574. color: #FF7700;
  575. font-size: 36rpx;
  576. .price-unit {
  577. font-size: 23rpx;
  578. }
  579. }
  580. .info-sold {
  581. font-size: 20rpx;
  582. color: #C4C4C4;
  583. }
  584. }
  585. }
  586. }
  587. .hot-item + .hot-item {
  588. margin-left: 20rpx;
  589. }
  590. }
  591. }
  592. }
  593. }
  594. .garden-wrap {
  595. margin: 0 20rpx 20rpx;
  596. background: linear-gradient(#FFFFFF, rgba(255, 255, 255, 0));
  597. padding: 2rpx;
  598. border-radius: 16rpx;
  599. .garden-content{
  600. background: linear-gradient(#fff6d8 4%, #FFFFFF 28%);
  601. border-radius: 16rpx;
  602. padding: 20rpx;
  603. box-sizing: border-box;
  604. .garden-list {
  605. .garden-item {
  606. display: flex;
  607. .garden-l {
  608. position: relative;
  609. .garden-img {
  610. width: 254rpx;
  611. height: 200rpx;
  612. object-fit: cover;
  613. border-radius: 10rpx;
  614. }
  615. .img-text {
  616. position: absolute;
  617. left: 0%;
  618. top: 0%;
  619. background: rgba(0, 0, 0, 0.3);
  620. backdrop-filter: 8rpx;
  621. border-radius: 10rpx 0 10rpx 0;
  622. font-size: 20rpx;
  623. color: #FFFFFF;
  624. padding: 6rpx 14rpx;
  625. }
  626. }
  627. .garden-r {
  628. padding-left: 20rpx;
  629. .garden-title {
  630. font-size: 28rpx;
  631. line-height: 42rpx;
  632. color: #000000;
  633. font-weight: 600;
  634. padding-bottom: 10rpx;
  635. }
  636. .garden-info {
  637. color: rgba(0, 0, 0, 0.5);
  638. font-size: 24rpx;
  639. line-height: 36rpx;
  640. }
  641. .garden-btn-group {
  642. padding-top: 20rpx;
  643. display: flex;
  644. align-items: center;
  645. .btn-second {
  646. padding: 0 20rpx;
  647. border-radius: 40rpx;
  648. font-size: 24rpx;
  649. color: #C49600;
  650. background: rgba(255, 217, 94, 0.2);
  651. height: 56rpx;
  652. line-height: 56rpx;
  653. }
  654. .btn-primary {
  655. padding: 0 20rpx;
  656. border-radius: 40rpx;
  657. font-size: 24rpx;
  658. color: #000000;
  659. background: #FFD95E;
  660. font-weight: bold;
  661. height: 56rpx;
  662. line-height: 56rpx;
  663. }
  664. }
  665. }
  666. }
  667. .garden-item + .garden-item {
  668. margin-top: 20rpx;
  669. }
  670. }
  671. }
  672. }
  673. .hot-title {
  674. display: flex;
  675. align-items: center;
  676. justify-content: space-between;
  677. padding-bottom: 20rpx;
  678. .title-l {
  679. font-family: 'PangMenZhengDao';
  680. font-size: 32rpx;
  681. .title-color {
  682. color: #F3C11D ;
  683. }
  684. }
  685. .title-btn {
  686. color: rgba(0, 0, 0, 0.6);
  687. font-size: 24rpx;
  688. display: inline-flex;
  689. align-items: center;
  690. }
  691. }
  692. ::v-deep {
  693. .u-scroll-list__indicator {
  694. margin-top: 20rpx;
  695. }
  696. }
  697. }
  698. </style>