Authored by 张丽霞

Render 必须返回对象,review by 孙凯

... ... @@ -126,7 +126,7 @@ export default class CouponCell extends React.Component {
let yh_exposureData = data.yh_exposureData;
if (!data.list || data.list.length == 0) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
return (
... ...
... ... @@ -32,7 +32,7 @@ export default class DoubleImage extends React.Component {
let {resource} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let list = resource.get('module_data').get('data').toJS();
... ...
... ... @@ -64,7 +64,7 @@ export default class GoodsGroupList extends React.Component {
let isModuleMargin = properties.isModuleMargin;
let list = resource?resource.get('list'):null;
if (!list || list.size == 0) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let backgroundWidth = width;
... ...
... ... @@ -81,7 +81,7 @@ export default class Header extends React.Component {
render() {
let {resource,launchProfile} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let data = resource.toJS();
... ...
... ... @@ -59,7 +59,7 @@ export default class RedBrandSwiper extends React.Component {
let {resource} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
... ...
... ... @@ -32,7 +32,7 @@ export default class SingleImage extends React.Component {
let {resource} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let list = resource.get('module_data').get('data').toJS();
... ...
... ... @@ -33,7 +33,7 @@ export default class Title extends React.Component {
let {resource} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
... ...
... ... @@ -20,7 +20,7 @@ export default class RedPersonPicThree extends Component{
let {resource} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let list = resource.get('module_data').get('data').toJS();
... ...
... ... @@ -34,7 +34,7 @@ export default class Video extends React.Component {
render() {
let {resource,videoCounts} = this.props;
if (!resource) {
return null;
return (<View style={{height:0,width:width,backgroundColor:'white'}}/>);
}
let counts = videoCounts?videoCounts.toJS():null;
let list = resource.get('module_data').get('data').toJS();
... ...