Authored by 张丽霞

按钮事件区分,review by redding

@@ -83,7 +83,11 @@ export default class ProductListView extends Component { @@ -83,7 +83,11 @@ export default class ProductListView extends Component {
83 } 83 }
84 </View> 84 </View>
85 <TouchableOpacity onPress={() => { 85 <TouchableOpacity onPress={() => {
86 - this.props.onPressRemindBtn && this.props.onPressRemindBtn(rowData); 86 + if (rowData.wait) {
  87 + this.props.onPressRemindBtn && this.props.onPressRemindBtn(rowData);
  88 + }else {
  89 + this.props.onPressProductItem && this.props.onPressProductItem(rowData);
  90 + }
87 }}> 91 }}>
88 { 92 {
89 (tipState=='取消提醒')? 93 (tipState=='取消提醒')?
@@ -49,7 +49,7 @@ export default class SeckillTimeListView extends Component { @@ -49,7 +49,7 @@ export default class SeckillTimeListView extends Component {
49 }); 49 });
50 // if (curFocusIndex > 1 && curFocusIndex < listLength-2) { 50 // if (curFocusIndex > 1 && curFocusIndex < listLength-2) {
51 scrollX = (curFocusIndex - 1) * rowContainerWidth; 51 scrollX = (curFocusIndex - 1) * rowContainerWidth;
52 - this.listView && this.listView.scrollTo({x: scrollX, y: 0, animated: false}); 52 + this.listView && this.listView.scrollTo({x: scrollX, y: 0, animated: true});
53 53
54 // } 54 // }
55 } 55 }
@@ -215,6 +215,7 @@ export default class SeckillTimeListView extends Component { @@ -215,6 +215,7 @@ export default class SeckillTimeListView extends Component {
215 dataSource={this.dataSource.cloneWithRows(resource)} 215 dataSource={this.dataSource.cloneWithRows(resource)}
216 renderSeparator={this._renderSeparator} 216 renderSeparator={this._renderSeparator}
217 renderRow={this._renderRow} 217 renderRow={this._renderRow}
  218 + showsHorizontalScrollIndicator={false}
218 scrollEnabled={true} 219 scrollEnabled={true}
219 horizontal={true} 220 horizontal={true}
220 scrollsToTop={false} 221 scrollsToTop={false}