|
@@ -15,6 +15,7 @@ import { share as shareSavePoint } from '@/utils/shareSavePoint'
|
15
|
15
|
import { transferImage } from '@/utils/tools'
|
16
|
16
|
import ShopItem from '../league/item'
|
17
|
17
|
import BannerTwo from '../project/swiper'
|
|
18
|
+import { View } from '@tarojs/components';
|
18
|
19
|
|
19
|
20
|
@connect(
|
20
|
21
|
state => ({ ...state.project, ...state.city, ...state.user, system: state.system }),
|
|
@@ -448,25 +449,6 @@ export default class Index extends Component {
|
448
|
449
|
}
|
449
|
450
|
</View>
|
450
|
451
|
|
451
|
|
- {
|
452
|
|
- this.state.visPropagandaBanner && propagandaBanner.length > 0 &&
|
453
|
|
- <View
|
454
|
|
- style={{
|
455
|
|
- position: 'relative', padding: '20px 0 0 0'
|
456
|
|
- }}>
|
457
|
|
- <BannerTwo
|
458
|
|
- style={{
|
459
|
|
- borderRadius: '6px',
|
460
|
|
- height: '172rpx'
|
461
|
|
- }}
|
462
|
|
- // forwardShow={true}
|
463
|
|
- indicatorDots={false}
|
464
|
|
- list={propagandaBanner}
|
465
|
|
- onClick={this.handlePropagandaClick}>
|
466
|
|
- </BannerTwo>
|
467
|
|
- </View>
|
468
|
|
- }
|
469
|
|
-
|
470
|
452
|
</View>
|
471
|
453
|
|
472
|
454
|
{/* 热门活动推荐 */}
|
|
@@ -475,7 +457,19 @@ export default class Index extends Component {
|
475
|
457
|
<View className='ActivityRecommed'>
|
476
|
458
|
<Text className='Title'>热门活动推荐</Text>
|
477
|
459
|
<View>
|
478
|
|
- <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0].bannerListImg)} onClick={this.handleItemClick.bind(this, item)} />
|
|
460
|
+ <View>
|
|
461
|
+ <Swiper className='Swiper' indicatorColor='rgba(0,0,0,0.4)' indicatorActiveColor='#fff' circular indicatorDots autoplay>
|
|
462
|
+ {
|
|
463
|
+ propagandaBanner.length &&
|
|
464
|
+ propagandaBanner.map((item, index) => (
|
|
465
|
+ <SwiperItem key={`Swiper-${index}`} onClick={this.handleBannerClick.bind(this, item)}>
|
|
466
|
+ <Image mode='widthFix' className='centerLabel' src={item.image} />
|
|
467
|
+ </SwiperItem>
|
|
468
|
+ ))
|
|
469
|
+ }
|
|
470
|
+ </Swiper>
|
|
471
|
+ </View>
|
|
472
|
+ {/* <Image mode='widthFix' className='centerLabel' src={transferImage(helpGroupList[0].bannerListImg)} onClick={this.handleItemClick.bind(this, item)} /> */}
|
479
|
473
|
</View>
|
480
|
474
|
</View>
|
481
|
475
|
}
|