|
@@ -159,7 +159,7 @@ export default class Index extends Component {
|
159
|
159
|
queryActivityList(payload).then(res => {
|
160
|
160
|
console.log(res,'Activity')
|
161
|
161
|
this.setState({
|
162
|
|
- activityList: res || []
|
|
162
|
+ activityList: res.list || []
|
163
|
163
|
})
|
164
|
164
|
})
|
165
|
165
|
}
|
|
@@ -232,9 +232,10 @@ export default class Index extends Component {
|
232
|
232
|
})
|
233
|
233
|
}
|
234
|
234
|
|
235
|
|
- toViewAlbum() {
|
|
235
|
+ toViewAlbum (index){
|
236
|
236
|
const { buildingId } = this.state
|
237
|
|
- this.navigateTo(`/pages/project/album/index?id=${buildingId}`)
|
|
237
|
+ console.log('1111111',index)
|
|
238
|
+ this.navigateTo(`/pages/project/album/index?id=${buildingId}¤t=${index}` )
|
238
|
239
|
}
|
239
|
240
|
|
240
|
241
|
onViewFans() {
|
|
@@ -601,7 +602,7 @@ export default class Index extends Component {
|
601
|
602
|
<View className='photos__type'>
|
602
|
603
|
<View className='photos__type__title'>相册</View>
|
603
|
604
|
<ScrollView scrollX>
|
604
|
|
- <View className='photos__type__content' onClick={this.toViewAlbum}>
|
|
605
|
+ <View className='photos__type__content' >
|
605
|
606
|
|
606
|
607
|
<View className="around-tab">
|
607
|
608
|
{listimg.map((item, index) => {
|
|
@@ -612,19 +613,21 @@ export default class Index extends Component {
|
612
|
613
|
console.log(buildingImgUrl, 'buildingImgUrl')
|
613
|
614
|
|
614
|
615
|
// if (buildingImgUrl != null) {
|
615
|
|
- return (<View key={index + "listimg"}>
|
|
616
|
+ return ( <View key={index + "listimg"}>
|
616
|
617
|
{buildingImgUrl != null && (<View
|
617
|
618
|
style={{ marginRight: '8px' }}
|
|
619
|
+
|
618
|
620
|
>
|
619
|
621
|
|
620
|
622
|
<View>
|
621
|
|
- <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} ></Image>
|
|
623
|
+ <Image className='albumimg' src={getThumbnail(buildingImgList[0].url)} onClick={()=>this.toViewAlbum(index)}></Image>
|
622
|
624
|
<View style={{ width: '218rpx', display: 'flex', justifyContent: 'center' }} >
|
623
|
625
|
<View style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}> {apartmentName} </View>
|
624
|
626
|
<View> ({buildingImgList.length})</View>
|
625
|
627
|
</View>
|
626
|
628
|
</View>
|
627
|
|
- </View>)}</View>
|
|
629
|
+ </View>)}
|
|
630
|
+ </View>
|
628
|
631
|
)
|
629
|
632
|
// }
|
630
|
633
|
|
|
@@ -841,37 +844,19 @@ export default class Index extends Component {
|
841
|
844
|
)
|
842
|
845
|
}
|
843
|
846
|
renderActivities() {
|
844
|
|
- // renderGroup () {
|
845
|
|
- // const { groupList } = this.state
|
846
|
|
- // return (
|
847
|
|
- // <Block>
|
848
|
|
- // {groupList.length > 0 &&
|
849
|
|
- // <View className="activity">
|
850
|
|
- // <View className="title">拼团活动</View>
|
851
|
|
- // <View
|
852
|
|
- // style={{ position: 'relative' }}>
|
853
|
|
- // <HelpGroupBanner
|
854
|
|
- // style={{ height: '250rpx' }}
|
855
|
|
- // indicatorDots={false}
|
856
|
|
- // list={groupList}
|
857
|
|
- // onClick={this.handleGroupClick}>
|
858
|
|
- // </HelpGroupBanner>
|
859
|
|
- // </View>
|
860
|
|
- // </View>
|
861
|
|
- // }
|
862
|
|
- // </Block>
|
863
|
|
- // )
|
864
|
|
- // }
|
|
847
|
+
|
|
848
|
+
|
865
|
849
|
const { activityList } = this.state
|
|
850
|
+
|
866
|
851
|
return (
|
867
|
852
|
<Block>
|
868
|
853
|
{
|
869
|
854
|
activityList.length > 0 && (
|
870
|
855
|
<View className="activity" >
|
871
|
|
- {console.log(activityList, '----activityList-----')}
|
|
856
|
+
|
872
|
857
|
<View className="section-head">
|
873
|
|
- <Text className="section-head__title">热门活动</Text>
|
874
|
|
- <View className="section-head__more" onClick={this.handleActivityMoreClick}>
|
|
858
|
+ <Text className="section-head__title" style={{margin: '10rpx 0 40rpx 35rpx'}}>热门活动</Text>
|
|
859
|
+ <View className="section-head__more" style={{marginRight: '20rpx'}} onClick={this.handleActivityMoreClick}>
|
875
|
860
|
更多活动<Text className="iconfont icon-more"></Text>
|
876
|
861
|
</View>
|
877
|
862
|
</View>
|
|
@@ -889,26 +874,7 @@ export default class Index extends Component {
|
889
|
874
|
|
890
|
875
|
</View>
|
891
|
876
|
</View>
|
892
|
|
- // <View classN ame="house-type">
|
893
|
|
- // <View className="section-head">
|
894
|
|
- // <Text className="section-head__title">热门活动</Text>
|
895
|
|
- // <View className="section-head__more" onClick={this.handleActivityMoreClick}>
|
896
|
|
- // 更多活动<Text className="iconfont icon-more"></Text>
|
897
|
|
- // </View>
|
898
|
|
- // </View>
|
899
|
|
- // <ScrollView scrollX>
|
900
|
|
- // <View className="house-type__list" style="margin-top:10px">
|
901
|
|
- // {
|
902
|
|
- // activityList.map(item => (
|
903
|
|
- // <View className="news-item" key={item.dynamicId} onClick={this.handActivityItemClick.bind(this, item.dynamicId)}>
|
904
|
|
- // <Image mode="widthFix" src={getThumbnail(item.imgUrl)} className="news-item__pic"></Image>
|
905
|
|
- // <View className="news-item__title">{item.title}</View>
|
906
|
|
- // </View>
|
907
|
|
- // ))
|
908
|
|
- // }
|
909
|
|
- // </View>
|
910
|
|
- // </ScrollView>
|
911
|
|
- // </View>
|
|
877
|
+
|
912
|
878
|
)
|
913
|
879
|
}
|
914
|
880
|
</Block>
|