Authored by 张丽霞

为您推荐点击事件,review by 盖见秋

... ... @@ -32,7 +32,7 @@ export default class RecForYouIconTitleNumbCell extends Component {
return (
<TouchableOpacity activeOpacity={0.5} onPress={() => {
// this.props.onPressBrandItem && this.props.onPressBrandItem(rowData.toJS());
this.props.onPressShop && this.props.onPressShop(rowData.toJS());
}}>
<View style={styles.rowContainer}>
<Image
... ...
... ... @@ -43,6 +43,7 @@ export default class RecommendForYou extends Component {
<RrecommendForYouCell
title={title}
dataSource={rowData}
onPressShop={this.props.onPressShop}
/>
)
}
... ...
... ... @@ -40,6 +40,7 @@ export default class RecommendForYouCell extends Component {
key={i}
dataSource = {item}
hideNewNum={hideNewNum}
onPressShop={this.props.onPressShop}
/>
)
})}
... ...
... ... @@ -78,7 +78,7 @@ class NewArrivalContainer extends Component {
return (
<View style={styles.container}>
<RecommendForYou
RecommendForYou={RecommendForYou}
resource={recommendForYou}
onPressShop={this._onPressShop}
/>
<LoadingIndicator
... ...