|
@@ -2,6 +2,7 @@ import { useState, useEffect } from 'react'
|
2
|
2
|
import { useSelector } from 'react-redux'
|
3
|
3
|
import Taro from '@tarojs/taro'
|
4
|
4
|
import { queryActivityList } from '@/services/activity'
|
|
5
|
+import { Swiper, SwiperItem } from '@tarojs/components'
|
5
|
6
|
import '@/assets/css/iconfont.css'
|
6
|
7
|
import './index.scss'
|
7
|
8
|
|
|
@@ -61,11 +62,26 @@ export default function HotRecommend (props) {
|
61
|
62
|
}
|
62
|
63
|
</view>
|
63
|
64
|
<view className='Content' onClick={toDetail}>
|
64
|
|
- <view className='flex-h'>
|
|
65
|
+ {/* <view className='flex-h'>
|
65
|
66
|
<text className='flex-item'>{CurrentContentInfo.title || '暂无活动'}</text>
|
66
|
67
|
<text onClick={ToMore}>{CurrentId === 'dymic' ? '更多活动' : '更多团房'}</text>
|
67
|
68
|
</view>
|
68
|
|
- <text>{CurrentContentInfo.halfTitle}</text>
|
|
69
|
+ <text>{CurrentContentInfo.halfTitle}</text> */}
|
|
70
|
+ <Swiper autoplay interval={5000} vertical>
|
|
71
|
+ {
|
|
72
|
+ list.map((item, index) => (
|
|
73
|
+ <SwiperItem key={`Banner-${index}`}>
|
|
74
|
+ <view className='swiper-item'>
|
|
75
|
+ <view className='flex-h'>
|
|
76
|
+ <text className='flex-item'>{item.title || '暂无活动'}</text>
|
|
77
|
+ <text onClick={ToMore}>{CurrentId === 'dymic' ? '更多活动' : '更多团房'}</text>
|
|
78
|
+ </view>
|
|
79
|
+ <text>{item.halfTitle}</text>
|
|
80
|
+ </view>
|
|
81
|
+ </SwiperItem>
|
|
82
|
+ ))
|
|
83
|
+ }
|
|
84
|
+ </Swiper>
|
69
|
85
|
</view>
|
70
|
86
|
</view>
|
71
|
87
|
</view>
|