|
@@ -89,12 +89,44 @@ export default class Index extends Component {
|
89
|
89
|
<View className="user-info">
|
90
|
90
|
<View onClick={this.Login} className="name">
|
91
|
91
|
{userInfo.name ? userInfo.name : "去登录"}
|
92
|
|
- {/* {userInfo.user_identity === 1 && (
|
|
92
|
+ {userInfo.user_identity !== 0 && (
|
93
|
93
|
<View className="level-box">
|
94
|
|
- <Image src={levelOne} className="level-icon" />
|
95
|
|
- <Text className="level-text">Lv 1</Text>
|
|
94
|
+ <Image
|
|
95
|
+ src={
|
|
96
|
+ userInfo.user_identity === 1
|
|
97
|
+ ? levelOne
|
|
98
|
+ : userInfo.user_identity === 2
|
|
99
|
+ ? levelTwo
|
|
100
|
+ : userInfo.user_identity === 3
|
|
101
|
+ ? levelThree
|
|
102
|
+ : userInfo.user_identity === 4
|
|
103
|
+ ? levelFour
|
|
104
|
+ : userInfo.user_identity === 5
|
|
105
|
+ ? levelFive
|
|
106
|
+ : levelOne
|
|
107
|
+ }
|
|
108
|
+ className="level-icon"
|
|
109
|
+ />
|
|
110
|
+ <Text
|
|
111
|
+ className="level-text"
|
|
112
|
+ style={{
|
|
113
|
+ color: userInfo.user_identity === 1
|
|
114
|
+ ? '#8AA6F1'
|
|
115
|
+ : userInfo.user_identity === 2
|
|
116
|
+ ? '#0077F6'
|
|
117
|
+ : userInfo.user_identity === 3
|
|
118
|
+ ? '#7D00E1'
|
|
119
|
+ : userInfo.user_identity === 4
|
|
120
|
+ ? '#FE585A'
|
|
121
|
+ : userInfo.user_identity === 5
|
|
122
|
+ ? '#E87D12'
|
|
123
|
+ : '#8AA6F1'
|
|
124
|
+ }}
|
|
125
|
+ >
|
|
126
|
+ Lv {userInfo.user_identity}
|
|
127
|
+ </Text>
|
96
|
128
|
</View>
|
97
|
|
- )} */}
|
|
129
|
+ )}
|
98
|
130
|
</View>
|
99
|
131
|
<View className="account">{userInfo.id ? userInfo.id : ""}</View>
|
100
|
132
|
</View>
|