...
|
...
|
@@ -39,9 +39,10 @@ export default class Recommend extends React.Component { |
|
|
renderRow(rowData, sectionID, rowID, highlightRow) {
|
|
|
let linkType = rowData.get('linkType');
|
|
|
let linkReource = rowData.get('resource');
|
|
|
let title = rowData.get('title')?rowData.get('title'):'';
|
|
|
let url = '';
|
|
|
if (linkType == '0') {
|
|
|
url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`;
|
|
|
url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
|
|
|
} else if (linkType == '1') {
|
|
|
url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}"}}`;
|
|
|
} else if (linkType == '2') {
|
...
|
...
|
@@ -71,7 +72,7 @@ export default class Recommend extends React.Component { |
|
|
}
|
|
|
return (
|
|
|
<TouchableOpacity yh_exposureData={yh_exposureData} activeOpacity={1.0} onPress={() => {
|
|
|
this.props.onPressProduct && this.props.onPressProduct(rowData.get('linkType'), rowData.get('resource'),moduleOrder,moduleType,rowID+1);
|
|
|
this.props.onPressProduct && this.props.onPressProduct(url,moduleOrder,moduleType,rowID+1);
|
|
|
}}>
|
|
|
<View style={[styles.rowContainer,{height: rowContainerHeight}]}>
|
|
|
<YH_Image url={rowData.get('pic')} style={styles.thumbnail}/>
|
...
|
...
|
|