Authored by QC-L

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

@@ -26,12 +26,13 @@ export default class GroupPurchase extends Component { @@ -26,12 +26,13 @@ export default class GroupPurchase extends Component {
26 } = this.props; 26 } = this.props;
27 let banner = productList.banner; 27 let banner = productList.banner;
28 let url = productList.url; 28 let url = productList.url;
  29 + console.log('banner', banner);
29 30
30 - if(banner === '' || url === '') return null; 31 + if(banner === '') return null;
31 32
32 return ( 33 return (
33 <View style={styles.header}> 34 <View style={styles.header}>
34 - <TouchableOpacity activeOpacity={0.8} onPress={() => { 35 + <TouchableOpacity activeOpacity={1} onPress={() => {
35 this.props.didTouchBanner && this.props.didTouchBanner(url); 36 this.props.didTouchBanner && this.props.didTouchBanner(url);
36 }}> 37 }}>
37 <YH_Image style={{width: '100%', height: '100%'}} url={banner}></YH_Image> 38 <YH_Image style={{width: '100%', height: '100%'}} url={banner}></YH_Image>
@@ -73,7 +73,9 @@ class GroupPurchaseContainer extends Component { @@ -73,7 +73,9 @@ class GroupPurchaseContainer extends Component {
73 } 73 }
74 74
75 _didTouchBanner(url) { 75 _didTouchBanner(url) {
76 - 76 + if (!url) {
  77 + return;
  78 + }
77 let params = { 79 let params = {
78 URL: url, 80 URL: url,
79 }; 81 };