Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李犇
8 years ago
Commit
45c5300c22736447a35b73b53423f7cb2df8b3e7
1 parent
d220ac23
个人中心学生认证默认展示——review by 于良
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
js/mine/components/mine/MineListHeader.js
js/mine/components/mine/MineListHeader.js
View file @
45c5300
...
...
@@ -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'
)}
/
>
/>
: nul
l
}
<
/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
:
1
0
,
marginBottom
:
2
0
,
}}
>
<
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
',
...
...
Please
register
or
login
to post a comment