...
|
...
|
@@ -48,14 +48,13 @@ export default class InviteYoho extends Component { |
|
|
|
|
|
_renderHeader() {
|
|
|
let { resourceInfo } = this.props;
|
|
|
let imgHeight = 0, imageUrl = '', url = '';
|
|
|
let imgHeight = 0, imageUrl = '';
|
|
|
|
|
|
resourceInfo.resourceList && resourceInfo.resourceList.forEach(item => {
|
|
|
|
|
|
item = item && item.toJS();
|
|
|
if (item.template_name === 'splitJointImg' && item.data) {
|
|
|
imageUrl = item.data.src;
|
|
|
url = item.data.urls[0];
|
|
|
|
|
|
let imageWidth = item.image_width;
|
|
|
let imageHeight = item.image_height;
|
...
|
...
|
@@ -68,7 +67,7 @@ export default class InviteYoho extends Component { |
|
|
<View style={styles.topImageView}>
|
|
|
<YH_Image url={YH_Image.getSlicedUrl(imageUrl, width, imgHeight, 2)} resizeMode={'stretch'} style={{ width: width, height: imgHeight}}/>
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.activityStyle} onPress={() => {
|
|
|
this.props.jumpToResourceUrl && this.props.jumpToResourceUrl(url);
|
|
|
this.props.jumpToResourceUrl && this.props.jumpToResourceUrl();
|
|
|
}}>
|
|
|
</TouchableOpacity>
|
|
|
</View>
|
...
|
...
|
|