|
@@ -133,7 +133,7 @@ export default function Index () {
|
133
|
133
|
|
134
|
134
|
const GetPropagandaList = (done = () => { }) => {
|
135
|
135
|
setPropagandaList([])
|
136
|
|
- request({ ...apis.getIndexAdv, params: { pageNum: 1, pageSize: 1, showType: 'propaganda' } }).then(res => {
|
|
136
|
+ request({ ...apis.getIndexAdv, params: { pageNum: 1, pageSize: 10, showType: 'propaganda' } }).then(res => {
|
137
|
137
|
setPropagandaList([...(res || [])])
|
138
|
138
|
done()
|
139
|
139
|
}).catch(() => done())
|
|
@@ -285,17 +285,15 @@ export default function Index () {
|
285
|
285
|
|
286
|
286
|
{/* 热门活动 */}
|
287
|
287
|
{
|
288
|
|
- propagandaList.length > 0 &&
|
289
|
|
- <view className='HotActivityContainer'>
|
290
|
|
- <view>
|
291
|
|
- {/* <view className='Title'>
|
292
|
|
- <Text>热门推荐</Text>
|
293
|
|
- </view> */}
|
294
|
|
- <view className='Activity' onClick={() => nav2detail({ type: propagandaList[0].contentType, id: propagandaList[0].targetId })}>
|
295
|
|
- <image className='centerLabel' mode='aspectFill' src={propagandaList[0].image}></image>
|
|
288
|
+ propagandaList.map((item, index) => (
|
|
289
|
+ <view className='HotActivityContainer' key={`HotActivity-${index}`}>
|
|
290
|
+ <view>
|
|
291
|
+ <view className='Activity' onClick={() => nav2detail({ type: item.contentType, id: item.targetId })}>
|
|
292
|
+ <image className='centerLabel' mode='aspectFill' src={item.image}></image>
|
|
293
|
+ </view>
|
296
|
294
|
</view>
|
297
|
295
|
</view>
|
298
|
|
- </view>
|
|
296
|
+ ))
|
299
|
297
|
}
|
300
|
298
|
|
301
|
299
|
{/* 热门资讯 */}
|