|
@@ -21,6 +21,7 @@ export default class Profile extends Component {
|
21
|
21
|
documentTitle: '',
|
22
|
22
|
verfyList: [], // 审核列表
|
23
|
23
|
descVisible: false,
|
|
24
|
+ showWhich: true,
|
24
|
25
|
|
25
|
26
|
}
|
26
|
27
|
|
|
@@ -33,6 +34,17 @@ export default class Profile extends Component {
|
33
|
34
|
getVerifyList().then(res => {
|
34
|
35
|
this.setState({
|
35
|
36
|
verfyList: res
|
|
37
|
+ }, () => {
|
|
38
|
+ if (this.state.verfyList.length == 0) {
|
|
39
|
+ this.setState({
|
|
40
|
+ showWhich: true
|
|
41
|
+ })
|
|
42
|
+ } else {
|
|
43
|
+ this.setState({
|
|
44
|
+ showWhich: false
|
|
45
|
+ })
|
|
46
|
+ }
|
|
47
|
+
|
36
|
48
|
})
|
37
|
49
|
Taro.hideLoading()
|
38
|
50
|
}).catch((err) => {
|
|
@@ -47,7 +59,8 @@ export default class Profile extends Component {
|
47
|
59
|
// 选择图片
|
48
|
60
|
bindAlbumClick(e) {
|
49
|
61
|
this.setState({
|
50
|
|
- descVisible: true
|
|
62
|
+ descVisible: true,
|
|
63
|
+ showWhich: false
|
51
|
64
|
})
|
52
|
65
|
e.stopPropagation()
|
53
|
66
|
Taro.chooseImage({
|
|
@@ -174,25 +187,25 @@ export default class Profile extends Component {
|
174
|
187
|
|
175
|
188
|
|
176
|
189
|
render() {
|
177
|
|
- const { imgList, documentTitle, verfyList, descVisible } = this.state
|
|
190
|
+ const { imgList, documentTitle, verfyList, descVisible,showWhich } = this.state
|
178
|
191
|
|
179
|
192
|
return (
|
180
|
193
|
<View className="profile-page" style={`background: url(${profileBg}) no-repeat top;background-size: 100% 100%;`}>
|
181
|
194
|
<ScrollView scrollY scrollWithAnimation style="height: 100vh">
|
182
|
195
|
|
183
|
|
- {!verfyList.length &&
|
|
196
|
+ {(!verfyList.length && showWhich) &&
|
184
|
197
|
<View className="up-images">
|
185
|
198
|
{this.renderUpImages()}
|
186
|
199
|
|
187
|
200
|
<View className="tip">
|
188
|
201
|
建议上传相关购房资格等相关资料,审核
|
189
|
|
- </View>
|
|
202
|
+ </View>
|
190
|
203
|
<View className="tip">
|
191
|
204
|
通过后将获取更多积分、兑换好礼~
|
192
|
|
- </View>
|
|
205
|
+ </View>
|
193
|
206
|
</View>
|
194
|
207
|
}
|
195
|
|
- {verfyList.length &&
|
|
208
|
+ {(verfyList.length || !showWhich) &&
|
196
|
209
|
<View>
|
197
|
210
|
|
198
|
211
|
{descVisible &&
|