...
|
...
|
@@ -50,7 +50,6 @@ export default class Brand extends Component { |
|
|
|
|
|
scrollToSection(index,sectionID){
|
|
|
let item = this.sectionDataKey[sectionID];
|
|
|
console.log(item);
|
|
|
if (item) {
|
|
|
if (!item.y) {
|
|
|
this.needScrollSection = sectionID;
|
...
|
...
|
@@ -65,8 +64,6 @@ export default class Brand extends Component { |
|
|
|
|
|
onLayout(sectionID, e) {
|
|
|
let {y} = e.nativeEvent.layout;
|
|
|
console.log(sectionID);
|
|
|
console.log(y);
|
|
|
if (this.sectionDataKey && this.sectionDataKey[sectionID].y != y) {
|
|
|
this.sectionDataKey[sectionID].y = y;
|
|
|
this.props.setBrandData && this.props.setBrandData(this.sectionDataKey, this.props.selectedChannelId);
|
...
|
...
|
|