Authored by 张文文

ui fix

... ... @@ -35,7 +35,7 @@ export default class ContentFansListCell extends Component {
<Text style={styles.startTimeText}>{data.createTime}</Text>
</View>
<TouchableOpacity activeOpacity={1} style={styles.fanContainer} onPress={()=> {this.props.updateAttentionAction && this.props.updateAttentionAction(status,optUid)}}>
<Image style={styles.fanImage} source={resource}/>
<Image style={styles.fanImage} resizeMode="contain" source={resource}/>
</TouchableOpacity>
</View>
{ this.props.showLine ? <View style={styles.lineView}/> : null }
... ... @@ -84,13 +84,12 @@ let styles = StyleSheet.create({
},
nicknameText: {
fontSize: 14,
fontFamily: 'PingFang-SC-Medium',
fontFamily: 'PingFang-SC-Regular',
color: 'black',
fontWeight: 'bold',
},
defaultReplyText :{
fontSize: 14,
fontFamily: 'PingFang-SC-Medium',
fontFamily: 'PingFang-SC-Regular',
color: '#b0b0b0',
},
fanContainer: {
... ... @@ -108,7 +107,7 @@ let styles = StyleSheet.create({
marginLeft:15,
marginRight: 0,
width: width-15,
height: 1,
height: 0.5,
backgroundColor: '#e0e0e0'
},
});
... ...
... ... @@ -61,7 +61,12 @@ export default class ContentLikedListCell extends Component {
<View style={ styles.originView} >
<Text style={styles.copyText}>原文</Text>
<YH_Image url={imageUrl} style={styles.imageStyle} />
{rowData.content ?
<Text style={styles.originText} numberOfLines={1}>{rowData.content}</Text>
:
<View style={{height: 5}} />
}
</View>
</TouchableOpacity>
... ... @@ -156,7 +161,7 @@ let styles = StyleSheet.create({
marginLeft:15,
marginRight: 0,
width: width-15,
height: 1,
height: 0.5,
backgroundColor: '#e0e0e0'
},
});
... ...
... ... @@ -57,7 +57,7 @@ export default class ContentMessageCell extends Component {
<Text style={styles.subnameText}>{subName}</Text>
</View>
<TouchableOpacity activeOpacity={1} style={styles.replyContainer} onPress={()=> this.props.jumpToShowKeyboard && this.props.jumpToShowKeyboard(rowData.userName, rowData.commentId)}>
<Image style={styles.replyImage} source={require('../../images/content_reply.png')}/>
<Image style={styles.replyImage} resizeMode="contain" source={require('../../images/content_reply.png')}/>
</TouchableOpacity>
</View>
... ... @@ -82,7 +82,12 @@ export default class ContentMessageCell extends Component {
<View style={ styles.originContainerView} >
<Text style={styles.copyText}>原文</Text>
<YH_Image url={imageUrl} style={styles.imageStyle} />
{rowData.content ?
<Text style={styles.originText} numberOfLines={1}>{rowData.content}</Text>
:
<View style={{height: 5, backgroundColor: 'black'}} />
}
</View>
</TouchableOpacity> }
... ... @@ -212,7 +217,7 @@ let styles = StyleSheet.create({
marginLeft:15,
marginRight: 0,
width: width-15,
height: 1,
height: 0.5,
backgroundColor: '#e0e0e0'
},
});
... ...
... ... @@ -59,8 +59,10 @@ export default class ContentMessageTabView extends Component {
render() {
return <View style={[styles.container, this.props.style]}>
<View style={{width: 56, height: 56, alignItems : 'center', justifyContent: 'center'}}>
<YH_Image style={styles.icon} onLayout={this.onImageLayout}
url={YH_Image.getSlicedUrl(this.props.icon.uri, IMAGE_WIDTH, IMAGE_HEIGHT, 2)}/>
</View>
<Text style={styles.title}>{this.props.title}</Text>
{this.props.badge > 0 && this.state.badgeX != INVALID_POSITION && this.state.badgeY != INVALID_POSITION &&
<View style={[styles.badgeContainer, {left: this.state.badgeX, top: this.state.badgeY}]}
... ...

1.93 KB | W: | H:

3.26 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.91 KB | W: | H:

5.23 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.82 KB | W: | H:

2.85 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.83 KB | W: | H:

4.91 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.34 KB | W: | H:

2.57 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.04 KB | W: | H:

4.37 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin