|
@@ -64,34 +64,27 @@ export default class Index extends Component {
|
64
|
64
|
|
65
|
65
|
return (
|
66
|
66
|
<View className='photos'>
|
67
|
|
- <ScrollView scrollX>
|
68
|
|
- <View className='photos__type__content'>
|
69
|
|
- {console.log(list, '2225555555')}
|
70
|
|
- <View className="around-tab">
|
71
|
|
- {list.map((item, index) => {
|
72
|
|
- const { apartmentName } = item || {}
|
73
|
|
- const buildingImgList = item.buildingImgList || []
|
74
|
|
-
|
75
|
|
- console.log(item, '22333333222')
|
76
|
|
- return (<View>
|
77
|
|
- {buildingImgList.length>0&&
|
78
|
|
- <View
|
79
|
|
- // style={{ padding: '0 20px ' }}
|
80
|
|
- key={current}
|
81
|
|
- className={`around-tab__item ${current === index ? 'active' : ''}`}
|
82
|
|
- onClick={() => this.setState({ current: index })}
|
83
|
|
- >
|
84
|
|
-
|
85
|
|
- <View>
|
86
|
|
- <View style={{ textAlign: 'center' }}> {`${apartmentName}(${buildingImgList.length})`} </View>
|
87
|
|
- </View>
|
88
|
|
- </View>}
|
89
|
|
- </View>
|
90
|
|
- )
|
91
|
|
- })}
|
92
|
|
- </View>
|
93
|
|
- </View>
|
94
|
|
- </ScrollView>
|
|
67
|
+ <View className="around-tab">
|
|
68
|
+ {list.map((item, index) => {
|
|
69
|
+ const { apartmentName } = item || {}
|
|
70
|
+ const buildingImgList = item.buildingImgList || []
|
|
71
|
+
|
|
72
|
+ console.log(buildingImgList, 'buildingImgList.length')
|
|
73
|
+
|
|
74
|
+ return (
|
|
75
|
+ <View
|
|
76
|
+ key={current}
|
|
77
|
+ className={`around-tab__item ${current === index ? 'active' : ''}`}
|
|
78
|
+ onClick={() => this.setState({ current: index })}
|
|
79
|
+ >
|
|
80
|
+ {`${apartmentName}(${buildingImgList.length})`}
|
|
81
|
+ </View>
|
|
82
|
+ )
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+ })}
|
|
87
|
+ </View>
|
95
|
88
|
<View className='photos__item'>
|
96
|
89
|
{imgList.map((item, index) => {
|
97
|
90
|
console.log(item, '299999933333222')
|