Authored by QC-L

更新拼团列表banner显示逻辑 review by sunkai

... ... @@ -26,12 +26,13 @@ export default class GroupPurchase extends Component {
} = this.props;
let banner = productList.banner;
let url = productList.url;
console.log('banner', banner);
if(banner === '' || url === '') return null;
if(banner === '') return null;
return (
<View style={styles.header}>
<TouchableOpacity activeOpacity={0.8} onPress={() => {
<TouchableOpacity activeOpacity={1} onPress={() => {
this.props.didTouchBanner && this.props.didTouchBanner(url);
}}>
<YH_Image style={{width: '100%', height: '100%'}} url={banner}></YH_Image>
... ...
... ... @@ -73,7 +73,9 @@ class GroupPurchaseContainer extends Component {
}
_didTouchBanner(url) {
if (!url) {
return;
}
let params = {
URL: url,
};
... ...