Authored by 张文文

bug fix

... ... @@ -16,9 +16,8 @@ export default class ContentLikedListCell extends Component {
render() {
let rowData = this.props.data;
let resource = rowData.coverImg;
resource = resource ? JSON.parse(resource) : '';
let picItem = resource.data ? JSON.parse(resource.data) : '';;
let resource = rowData.coverImg ? typeof rowData.coverImg === 'string' ? JSON.parse(rowData.coverImg) : rowData.coverImg : '';
let picItem = resource ? typeof resource.data === 'string' ? JSON.parse(resource.data) : resource.data : '';
let imageUrl = YH_Image.getSlicedUrl(picItem.src, 50 * DEVICE_HEIGHT_RATIO, 50 * DEVICE_HEIGHT_RATIO, 2);
... ...
... ... @@ -17,8 +17,8 @@ export default class ContentMessageCell extends Component {
let {rowData} = this.props;
let status = rowData.businessType === 1003 ? true : false;
let resource = typeof rowData.coverImg === 'string' ? JSON.parse(rowData.coverImg) : rowData.coverImg;
let picItem = typeof resource.data === 'string' ? JSON.parse(resource.data) : resource.data;
let resource = rowData.coverImg ? typeof rowData.coverImg === 'string' ? JSON.parse(rowData.coverImg) : rowData.coverImg : '';
let picItem = resource ? typeof resource.data === 'string' ? JSON.parse(resource.data) : resource.data : '';
let imageUrl = YH_Image.getSlicedUrl(picItem.src, 50 * DEVICE_HEIGHT_RATIO, 50 * DEVICE_HEIGHT_RATIO, 2);
... ...