...
|
...
|
@@ -31,17 +31,22 @@ export default class ListCell extends Component { |
|
|
}
|
|
|
let {
|
|
|
default_images,
|
|
|
product_skn,
|
|
|
phrase,
|
|
|
product_name,
|
|
|
} = data;
|
|
|
|
|
|
default_images = default_images.replace('{width}', 240).replace('{height}', 320).replace('{mode}',2);
|
|
|
return (
|
|
|
<TouchableOpacity style={styles.container} onPress={() => {this.props.onPressDetail && this.props.onPressDetail(product_skn)}}>
|
|
|
<View style={styles.container}>
|
|
|
<Image style={styles.image} source={{uri:default_images}}/>
|
|
|
|
|
|
<View style={styles.rightPannel}>
|
|
|
<Text style={styles.title}>title</Text>
|
|
|
<Text style={styles.phrase}>content</Text>
|
|
|
<Text numberOfLines={2} style={styles.title}>{product_name}</Text>
|
|
|
<Text numberOfLines={4} style={styles.phrase}>{phrase}</Text>
|
|
|
</View>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
}
|
|
|
}
|
...
|
...
|
|