...
|
...
|
@@ -36,7 +36,7 @@ export default class Home extends Component { |
|
|
_renderRow(rowData, sectionID, rowID) {
|
|
|
let paddingLeft = rowID % 2 === 1 ? rowMarginHorizontal / 2 : rowMarginHorizontal;
|
|
|
let customStyle = rowID === 0 || rowID === 1 ? {paddingLeft} : {paddingLeft};
|
|
|
let sliderHeight = 111 * DEVICE_WIDTH_RATIO;
|
|
|
let sliderHeight = 90 * DEVICE_WIDTH_RATIO;
|
|
|
let imageUrl = YH_Image.getSlicedUrl(this.props.src, width, sliderHeight, 2);
|
|
|
switch (sectionID) {
|
|
|
case 'resourceList': {
|
...
|
...
|
@@ -138,11 +138,13 @@ export default class Home extends Component { |
|
|
);
|
|
|
}
|
|
|
case 'newSingleImage': {
|
|
|
let imageHeight = rowData.get('data').toJS().imageHeight;
|
|
|
return (
|
|
|
<SingleImage
|
|
|
data={rowData.get('data')}
|
|
|
resourceJumpWithUrl={this.props.resourceJumpWithUrl}
|
|
|
/>
|
|
|
<SingleImage
|
|
|
style={imageHeight> 100 ? {marginLeft: 15, marginRight: 15, width: width-30}: {}}
|
|
|
data={rowData.get('data')}
|
|
|
resourceJumpWithUrl={this.props.resourceJumpWithUrl}
|
|
|
/>
|
|
|
);
|
|
|
}
|
|
|
case 'image_list': {
|
...
|
...
|
@@ -251,7 +253,7 @@ let styles = StyleSheet.create({ |
|
|
fontSize: 16,
|
|
|
color: '#000000',
|
|
|
textAlign:'center',
|
|
|
marginTop:28,
|
|
|
marginTop:12,
|
|
|
},
|
|
|
bannerSubTitle: {
|
|
|
fontFamily: 'SourceHanSansCN-Bold',
|
...
|
...
|
|