Authored by 李犇

个人中心学生认证默认展示——review by 于良

... ... @@ -211,15 +211,14 @@ export default class MineListHeader extends React.Component {
}}>
{this._renderVip()}
{
profile.vip_info.is_student == 0 ? null :
<Image
profile.vip_info.is_student == 1 ? <Image
style={{
width: 27,
height: 16,
marginLeft:5,
}}
source={require('../../image/mine_vip_stu.png')}
/>
/> : null
}
</View>
</View>
... ... @@ -231,22 +230,10 @@ export default class MineListHeader extends React.Component {
marginTop:1,
justifyContent: 'flex-end',
}}>
{
profile.vip_info.is_student == 0 ? null :
<TouchableOpacity
onPress={() => this.props.onPressItem('mineStudentHome','')}>
<Image style={styles.renzheng} resizeMode={'stretch'}
source={require('../../image/renzheng_bg.png')}>
<Text style={styles.renzheng_text} numberOfLines={1}>
学生认证
</Text>
</Image>
</TouchableOpacity>
}
<View style={{
flexDirection:'row',
alignItems: 'center',
marginBottom:10,
marginBottom:20,
}}>
<Text style={{
alignItems: 'center',
... ... @@ -278,7 +265,16 @@ export default class MineListHeader extends React.Component {
</TouchableOpacity>
</View>
}
{
(profile.uid != '0' && profile.vip_info.is_student == 1) ? null :
<TouchableOpacity style={{position:'absolute',right:0,top:45}} onPress={() => this.props.onPressItem('mineStudentHome','')}>
<Image
style={{width: 80,height: 27,marginBottom:15}}
resizeMode={'stretch'} source={require('../../image/renzheng_bg.png')}>
<Text style={styles.renzheng_text} numberOfLines={1}>学生认证</Text>
</Image>
</TouchableOpacity>
}
<View style={styles.fav_container}>
<TouchableOpacity onPress={() => this.props.onPressItem('mineFavProduct','')}>
... ... @@ -784,6 +780,7 @@ let styles = StyleSheet.create({
justifyContent: 'center',
fontSize: 12,
fontFamily: 'STHeitiSC-Light',
color: '#444444',
},
top_number_text: {
alignItems: 'center',
... ...