|
@@ -47,9 +47,11 @@ export default function HotRecommend (props) {
|
47
|
47
|
Taro.navigateTo({ url: `/pages/index/activityList/index?type=${CurrentId}` })
|
48
|
48
|
}
|
49
|
49
|
|
50
|
|
- const toDetail = () => {
|
51
|
|
- if (CurrentContentInfo.dynamicId) {
|
52
|
|
- Taro.navigateTo({ url: `/pages/index/activityDetail/index?id=${CurrentContentInfo.dynamicId}` })
|
|
50
|
+ const toDetail = (item) => {
|
|
51
|
+ return () => {
|
|
52
|
+ if (item.dynamicId) {
|
|
53
|
+ Taro.navigateTo({ url: `/pages/index/activityDetail/index?id=${item.dynamicId}` })
|
|
54
|
+ }
|
53
|
55
|
}
|
54
|
56
|
}
|
55
|
57
|
|
|
@@ -73,10 +75,10 @@ export default function HotRecommend (props) {
|
73
|
75
|
<SwiperItem key={`Banner-${index}`}>
|
74
|
76
|
<view className='swiper-item'>
|
75
|
77
|
<view className='flex-h'>
|
76
|
|
- <text className='flex-item' onClick={toDetail}>{item.title || '暂无活动'}</text>
|
|
78
|
+ <text className='flex-item' onClick={toDetail(item)}>{item.title || '暂无活动'}</text>
|
77
|
79
|
<text onClick={() => { ToMore() }}>更多活动</text>
|
78
|
80
|
</view>
|
79
|
|
- <text onClick={toDetail}>{item.halfTitle}</text>
|
|
81
|
+ <text onClick={toDetail(item)}>{item.halfTitle}</text>
|
80
|
82
|
</view>
|
81
|
83
|
</SwiperItem>
|
82
|
84
|
))
|
|
@@ -91,10 +93,10 @@ export default function HotRecommend (props) {
|
91
|
93
|
<SwiperItem key={`Banner-${index}`}>
|
92
|
94
|
<view className='swiper-item'>
|
93
|
95
|
<view className='flex-h'>
|
94
|
|
- <text className='flex-item' onClick={toDetail}>{item.title || '暂无活动'}</text>
|
|
96
|
+ <text className='flex-item' onClick={toDetail(item)}>{item.title || '暂无活动'}</text>
|
95
|
97
|
<text onClick={() => { ToMore() }}>更多团房</text>
|
96
|
98
|
</view>
|
97
|
|
- <text onClick={toDetail}>{item.halfTitle}</text>
|
|
99
|
+ <text onClick={toDetail(item)}>{item.halfTitle}</text>
|
98
|
100
|
</view>
|
99
|
101
|
</SwiperItem>
|
100
|
102
|
))
|