Authored by 张文文

拼团详情页banner位修改

... ... @@ -44,19 +44,20 @@ export default class GroupPurchaseDetail extends Component {
switch(sectionID) {
case 'productResourceInfo': {
if(!rowData || !rowData.get('data')){
return null;
}
let infoData = rowData.get('data');
let info = infoData?infoData.toJS():'';
let item = info[0];
let src = YH_Image.getSlicedUrl(item.src, width, 70, 2);
// if(!rowData || !rowData.get('data')){
// return null;
// }
// let infoData = rowData.get('data');
// let info = infoData?infoData.toJS():'';
// let item = info[0];
// let src = YH_Image.getSlicedUrl(item.src, width, 70, 2);
let src = 'http://img13.static.yhbimg.com/article/2018/07/18/10/02de2e27168c47ef13209f74b2cfc0cab4.png';
return(
<View style={{width:width, height:70*DEVICE_WIDTH_RATIO+8, backgroundColor:'#f0f0f0'}}>
<View style={{width:width, height:70*DEVICE_WIDTH_RATIO}}>
<TouchableOpacity activeOpacity={1} onPress={() => {
this.props.didTouchBanner && this.props.didTouchBanner(item.url);
// this.props.didTouchBanner && this.props.didTouchBanner(item.url);
}}>
<YH_Image style={{width: '100%', height: '100%'}} url={src}></YH_Image>
</TouchableOpacity>
... ...