...
|
...
|
@@ -64,11 +64,6 @@ export default class BannerReourceList extends React.Component { |
|
|
resizeMode={'contain'}
|
|
|
></Image>}
|
|
|
|
|
|
<View style={styles.textV}>
|
|
|
<Text style={styles.text} numberOfLines={1}>
|
|
|
{rowData.name}
|
|
|
</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
...
|
...
|
@@ -79,19 +74,18 @@ export default class BannerReourceList extends React.Component { |
|
|
let custom_brands = resource.get('custom_brands');
|
|
|
let res = custom_brands.toJS();
|
|
|
|
|
|
|
|
|
let data = res.data;
|
|
|
let title = data?data.title:null;
|
|
|
let list = data?data.list:null;
|
|
|
|
|
|
if (!custom_brands || custom_brands.size == 0 || !list) {
|
|
|
if (!custom_brands ||!data ||data.length == 0) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
<View style={styles.cellList}>
|
|
|
<ListView
|
|
|
dataSource={this.dataSource.cloneWithRows(list)}
|
|
|
dataSource={this.dataSource.cloneWithRows(data)}
|
|
|
horizontal={true}
|
|
|
renderRow={this.renderRow.bind(this)}
|
|
|
/>
|
...
|
...
|
@@ -145,6 +139,7 @@ let styles = StyleSheet.create({ |
|
|
width: itemWidth,
|
|
|
height: itemHeight,
|
|
|
backgroundColor: 'white',
|
|
|
marginTop: 10,
|
|
|
},
|
|
|
thumbnail: {
|
|
|
width: itemWidth,
|
...
|
...
|
|