|
@@ -41,10 +41,10 @@ export default class NewArrivalCell extends Component { |
|
@@ -41,10 +41,10 @@ export default class NewArrivalCell extends Component { |
41
|
this.props.jumpWithLinkUrl && this.props.jumpWithLinkUrl(url);
|
41
|
this.props.jumpWithLinkUrl && this.props.jumpWithLinkUrl(url);
|
42
|
}
|
42
|
}
|
43
|
|
43
|
|
44
|
- renderJumpRow = (rowData) => {
|
44
|
+ renderJumpRow = (rowData,index) => {
|
45
|
let url = YH_Image.getSlicedUrl(rowData.get('image'), 225, 225, 2);
|
45
|
let url = YH_Image.getSlicedUrl(rowData.get('image'), 225, 225, 2);
|
46
|
return (
|
46
|
return (
|
47
|
- <TouchableOpacity activeOpacity={1} onPress={_ => this.jumpWithLinkUrl(rowData.get('link_url'))}>
|
47
|
+ <TouchableOpacity key={'renderJumpRowkey_'+index} activeOpacity={1} onPress={_ => this.jumpWithLinkUrl(rowData.get('link_url'))}>
|
48
|
<YH_Image resizeMode="stretch" style={styles.jumpImage} url={url} />
|
48
|
<YH_Image resizeMode="stretch" style={styles.jumpImage} url={url} />
|
49
|
</TouchableOpacity>);
|
49
|
</TouchableOpacity>);
|
50
|
}
|
50
|
}
|
|
@@ -77,6 +77,7 @@ export default class NewArrivalCell extends Component { |
|
@@ -77,6 +77,7 @@ export default class NewArrivalCell extends Component { |
77
|
if (recommend_type == 'hotShop') {
|
77
|
if (recommend_type == 'hotShop') {
|
78
|
return (
|
78
|
return (
|
79
|
<ShopCell
|
79
|
<ShopCell
|
|
|
80
|
+ key={'ShopCellkey_'+index}
|
80
|
style={[styles.listContainer, customStyle]}
|
81
|
style={[styles.listContainer, customStyle]}
|
81
|
data={data}
|
82
|
data={data}
|
82
|
rowID={index}
|
83
|
rowID={index}
|
|
@@ -87,6 +88,7 @@ export default class NewArrivalCell extends Component { |
|
@@ -87,6 +88,7 @@ export default class NewArrivalCell extends Component { |
87
|
if (recommend_type == 'fashionArticle') {
|
88
|
if (recommend_type == 'fashionArticle') {
|
88
|
return (
|
89
|
return (
|
89
|
<ArticleCell
|
90
|
<ArticleCell
|
|
|
91
|
+ key={'ArticleCellkey_'+index}
|
90
|
rowID={index}
|
92
|
rowID={index}
|
91
|
style={[styles.listContainer, customStyle]}
|
93
|
style={[styles.listContainer, customStyle]}
|
92
|
data={data}
|
94
|
data={data}
|
|
@@ -100,8 +102,9 @@ export default class NewArrivalCell extends Component { |
|
@@ -100,8 +102,9 @@ export default class NewArrivalCell extends Component { |
100
|
} = this.props;
|
102
|
} = this.props;
|
101
|
|
103
|
|
102
|
if (parseInt(rowData.get('rowType')) === 1) {
|
104
|
if (parseInt(rowData.get('rowType')) === 1) {
|
103
|
- return this.renderJumpRow(rowData)
|
105
|
+ return this.renderJumpRow(rowData,index)
|
104
|
} else {
|
106
|
} else {
|
|
|
107
|
+ console.log("index = " + index)
|
105
|
return (
|
108
|
return (
|
106
|
<ProductListCell
|
109
|
<ProductListCell
|
107
|
style={[styles.listContainer, customStyle]}
|
110
|
style={[styles.listContainer, customStyle]}
|