...
|
...
|
@@ -93,6 +93,9 @@ export default class Brand extends Component { |
|
|
let title = sectionID == '0-9' ? '0' : sectionID;
|
|
|
// console.log(sectionID);
|
|
|
// console.log(rowData);
|
|
|
// if (sectionID == '0-9') {
|
|
|
// console.log('should appears!!!!!!!!!!!!!!');
|
|
|
// }
|
|
|
return (
|
|
|
<View onLayout={this.onLayout.bind(this, sectionID)}>
|
|
|
<BLKBrandCell title={title} rowData={rowData} onPressBrandItem={this.props.onPressBrandItem}/>
|
...
|
...
|
@@ -137,9 +140,16 @@ export default class Brand extends Component { |
|
|
|
|
|
list = data ? data.get('all_list') : null;
|
|
|
let newList = {};
|
|
|
list && list.map((value, key) => {
|
|
|
newList[key] = [value.toArray()];
|
|
|
});
|
|
|
let keyList = list? list.keySeq().toArray().sort():[];
|
|
|
for (var i = 0; i < keyList.length; i++) {
|
|
|
let key = keyList[i];
|
|
|
// console.log(list.get(key).toArray());
|
|
|
let item = list.get(key).toArray();
|
|
|
if (item.length) {
|
|
|
newList[key] = [list.get(key).toArray()];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// console.log(newList);
|
|
|
// console.log('aaaaa');
|
|
|
// console.log(data?data.toJS():'null');
|
...
|
...
|
@@ -166,7 +176,7 @@ export default class Brand extends Component { |
|
|
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
|
renderHeader={this.renderHeader}
|
|
|
/>
|
|
|
<IndexListView dataSource={list.keySeq().toArray()} onLetterPress={this.scrollToSection}/>
|
|
|
<IndexListView dataSource={list.keySeq().toArray().sort()} onLetterPress={this.scrollToSection}/>
|
|
|
<LoadingIndicator
|
|
|
isVisible={isFetching}
|
|
|
/>
|
...
|
...
|
|