Authored by 于良

优化新品到着页面 review by 草莓

... ... @@ -580,9 +580,7 @@ var ListView = React.createClass({
}
if (updatedFrames) {
updatedFrames.forEach((newFrame) => {
if (newFrame.x !== 0 || newFrame.y !== 0 || newFrame.width !== 0 || newFrame.height !== 0) {
this._childFrames[newFrame.index] = merge(newFrame);
}
this._childFrames[newFrame.index] = merge(newFrame);
});
}
var isVertical = !this.props.horizontal;
... ... @@ -617,13 +615,13 @@ var ListView = React.createClass({
totalIndex++;
}
if (!frame) {
continue;
break;
}
var rowVisible = visibleSection[rowID];
var min = isVertical ? frame.y : frame.x;
var max = min + (isVertical ? frame.height : frame.width);
if ((!min && !max) || (min === max)) {
continue;
break;
}
if (min > visibleMax || max < visibleMin) {
if (rowVisible) {
... ...
... ... @@ -97,7 +97,6 @@ export default class Banner extends React.Component {
return null;
}
let yh_exposureData = item.yh_exposureData?item.yh_exposureData.toJS():null;
console.log(yh_exposureData);
return (
<TouchableOpacity
... ...
... ... @@ -99,7 +99,9 @@ class NewArrivalContainer extends Component {
}
_onEndReached() {
this.props.actions.getProductList();
InteractionManager.runAfterInteractions(() => {
this.props.actions.getProductList();
});
}
_onPressProductFilter(value) {
if (value === 'filter') {
... ...