...
|
...
|
@@ -38,6 +38,18 @@ export default class Mine extends Component { |
|
|
let ico = this.props.profile.head_ico;
|
|
|
let imageUrl = YH_Image.getSlicedUrl(ico, 50, 50, 2);
|
|
|
let nickname = this.props.profile.nickname;
|
|
|
|
|
|
//当前粉丝数空值判断
|
|
|
let fansAmount = this.props.shareTotalInfo.shareTotalInfoData.fans;
|
|
|
fansAmount = fansAmount ? fansAmount : '0';
|
|
|
|
|
|
let fansShow = this.props.shareTotalInfo.shareTotalInfoData.showFans;
|
|
|
let fansShowStyle = fansShow ? {height: 50} : {height: 0};
|
|
|
|
|
|
//邀请好友数空值判断
|
|
|
let invitesAmount = this.props.shareTotalInfo.shareTotalInfoData.inviteNum;
|
|
|
invitesAmount = invitesAmount ? invitesAmount : '0';
|
|
|
|
|
|
return (
|
|
|
<View>
|
|
|
<View style={styles.headerBackground}>
|
...
|
...
|
@@ -57,6 +69,27 @@ export default class Mine extends Component { |
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<View style={{height: 10, backgroundColor: '#f0f0f0'}}/>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.withdrawView} onPress={() => {
|
|
|
this.props.jumpWithUrl && this.props.jumpWithUrl('邀请好友', 'invitedFriends');
|
|
|
}}>
|
|
|
<Text style={styles.hasWithDrawText}>邀请好友数</Text>
|
|
|
<View style={[styles.textView, {flexDirection: 'row', paddingRight: 15}]}>
|
|
|
<Text style={[styles.hasWithDrawText]}>{invitesAmount}</Text>
|
|
|
<Image style={styles.arrowImage} source={require('../images/arrow.png')}/>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
<TouchableOpacity activeOpacity={1} style={styles.withdrawView, fansShowStyle} onPress={() => {
|
|
|
|
|
|
}}>
|
|
|
<Text style={styles.hasWithDrawText}>当前粉丝数</Text>
|
|
|
<View style={[styles.textView, {flexDirection: 'row', paddingRight: 15}]}>
|
|
|
<Text style={[styles.hasWithDrawText]}>{fansAmount}</Text>
|
|
|
<Image style={styles.arrowImage} source={require('../images/arrow.png')}/>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
<View style={{height: 10, backgroundColor: '#f0f0f0'}}/>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|