Authored by 张文文

内容消息添加图标fix reviewd by 陈林

... ... @@ -39,12 +39,12 @@ export default class ContentFansListCell extends Component {
return (
<View>
<View style={styles.headerBackground}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(data)}>
<YH_Image style={styles.headIcon} url={data.headIco} circle={true}/>
<Image style={styles.iconImage} resizeMode="contain" source={source}/>
<TouchableOpacity style={{marginLeft: 15, marginRight: 15, flexDirection:'row'}} activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(data)}>
<YH_Image style={styles.headIcon} url={data.headIco} circle={true}/>
<Image style={styles.iconImage} resizeMode="contain" source={source}/>
</TouchableOpacity>
<View style={[styles.textView, {marginLeft:showIcon?20:15}]}>
<View style={styles.textView}>
<TouchableOpacity style={styles.toubleView} activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(data)}>
<Text style={styles.nicknameText} numberOfLines={1}>{userName}</Text>
<Text style={styles.defaultReplyText}>关注了你</Text>
... ... @@ -74,7 +74,6 @@ let styles = StyleSheet.create({
headIcon: {
width: 50,
height: 50,
marginLeft: 15,
marginTop: 15,
overflow: 'hidden',
borderRadius: 25,
... ... @@ -82,9 +81,8 @@ let styles = StyleSheet.create({
iconImage: {
width: 25,
height: 25,
position: 'absolute',
top: 42,
left: 52,
marginLeft: -10,
marginTop: 40,
},
textView: {
flexDirection: 'column',
... ...
... ... @@ -44,12 +44,12 @@ export default class ContentLikedListCell extends Component {
return (
<View>
<View style={styles.headerBackground}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<TouchableOpacity style={{marginLeft: 15, marginRight: 10, flexDirection:'row'}} activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<YH_Image style={styles.headIcon} url={rowData.headIco} circle={true}/>
<Image style={styles.iconImage} resizeMode="contain" source={source}/>
</TouchableOpacity>
<View style={[styles.textView, {marginLeft:showIcon?15:10}]}>
<View style={styles.textView}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<Text style={styles.nicknameText} numberOfLines={1}>{userName}</Text>
</TouchableOpacity>
... ... @@ -109,7 +109,6 @@ let styles = StyleSheet.create({
headIcon: {
width: 40,
height: 40,
marginLeft: 15,
marginTop: 15,
overflow: 'hidden',
borderRadius: 20,
... ... @@ -117,9 +116,8 @@ let styles = StyleSheet.create({
iconImage: {
width: 25,
height: 25,
position: 'absolute',
top: 35,
left: 40,
marginLeft: -12,
marginTop: 30,
},
textView: {
flexDirection: 'column',
... ...
... ... @@ -46,12 +46,12 @@ export default class ContentMessageCell extends Component {
return (
<View>
<View style={styles.headerBackground}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<TouchableOpacity style={{marginLeft: 15, marginRight: 10, flexDirection:'row'}} activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<YH_Image style={styles.headIcon} url={rowData.headIco} circle={true}/>
<Image style={styles.iconImage} resizeMode="contain" source={source}/>
</TouchableOpacity>
<View style={[styles.textView, {marginLeft:showIcon?15:10}]}>
<View style={styles.textView}>
<TouchableOpacity activeOpacity={1} onPress={()=> this.props.jumpToPersonalGrassPage && this.props.jumpToPersonalGrassPage(rowData)}>
<Text style={styles.nicknameText} numberOfLines={1}>{userName}</Text>
</TouchableOpacity>
... ... @@ -132,7 +132,6 @@ let styles = StyleSheet.create({
headIcon: {
width: 40,
height: 40,
marginLeft: 15,
marginTop: 15,
overflow: 'hidden',
borderRadius: 20,
... ... @@ -140,9 +139,8 @@ let styles = StyleSheet.create({
iconImage: {
width: 25,
height: 25,
position: 'absolute',
top: 35,
left: 40,
marginLeft: -12,
marginTop: 30,
},
textView: {
flexDirection: 'column',
... ...