Authored by 张丽霞

按钮事件区分,review by redding

... ... @@ -83,7 +83,11 @@ export default class ProductListView extends Component {
}
</View>
<TouchableOpacity onPress={() => {
this.props.onPressRemindBtn && this.props.onPressRemindBtn(rowData);
if (rowData.wait) {
this.props.onPressRemindBtn && this.props.onPressRemindBtn(rowData);
}else {
this.props.onPressProductItem && this.props.onPressProductItem(rowData);
}
}}>
{
(tipState=='取消提醒')?
... ...
... ... @@ -49,7 +49,7 @@ export default class SeckillTimeListView extends Component {
});
// if (curFocusIndex > 1 && curFocusIndex < listLength-2) {
scrollX = (curFocusIndex - 1) * rowContainerWidth;
this.listView && this.listView.scrollTo({x: scrollX, y: 0, animated: false});
this.listView && this.listView.scrollTo({x: scrollX, y: 0, animated: true});
// }
}
... ... @@ -215,6 +215,7 @@ export default class SeckillTimeListView extends Component {
dataSource={this.dataSource.cloneWithRows(resource)}
renderSeparator={this._renderSeparator}
renderRow={this._renderRow}
showsHorizontalScrollIndicator={false}
scrollEnabled={true}
horizontal={true}
scrollsToTop={false}
... ...