...
|
...
|
@@ -63,29 +63,20 @@ export default class Focus extends Component { |
|
|
|
|
|
return (
|
|
|
<View className='swiper-bg'>
|
|
|
<ScrollView
|
|
|
scrollX
|
|
|
className='index-swiper'
|
|
|
onScroll={this.onScroll}
|
|
|
scrollWithAnimation
|
|
|
scrollLeft={scrollTop}
|
|
|
scrollIntoView={focusID}
|
|
|
>
|
|
|
{
|
|
|
floor.map((item, index) => {
|
|
|
return (
|
|
|
<Image
|
|
|
key={ index }
|
|
|
id={ 'focus' + index }
|
|
|
onClick={ this.goToResource.bind(this, item) }
|
|
|
src={ getImgUrl(item.src, 670, 280) }
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
)
|
|
|
})
|
|
|
}
|
|
|
<View className="noneView"></View>
|
|
|
</ScrollView>
|
|
|
<Swiper
|
|
|
className='index-swiper'
|
|
|
>
|
|
|
{
|
|
|
floor.map((item, index) => {
|
|
|
return (
|
|
|
<SwiperItem key={index}>
|
|
|
<Image onClick={this.goToResource.bind(this, item)} src={getImgUrl(item.src, 670, 280)} mode="aspectFill" />
|
|
|
</SwiperItem>
|
|
|
)
|
|
|
})
|
|
|
}
|
|
|
</Swiper>
|
|
|
|
|
|
</View>
|
|
|
)
|
|
|
}
|
...
|
...
|
|