|
@@ -1,6 +1,7 @@
|
1
|
1
|
import React, { useState } from 'react'
|
2
|
2
|
import NavHeader from '@/components/NavHeader/index'
|
3
|
3
|
import Taro from '@tarojs/taro'
|
|
4
|
+import { useModel } from '@/store'
|
4
|
5
|
import '@/assets/css/reset.less'
|
5
|
6
|
import '@/assets/css/iconfont.less'
|
6
|
7
|
import './index.less'
|
|
@@ -8,14 +9,21 @@ import './index.less'
|
8
|
9
|
export default function RenZhengScreen (props) {
|
9
|
10
|
|
10
|
11
|
const { Show = false } = props
|
|
12
|
+ const { user } = useModel('user')
|
11
|
13
|
|
12
|
14
|
return (
|
13
|
|
- <view className='RenZhengScreen' style={{display: Show ? 'block' : 'none'}}>
|
|
15
|
+ <view className='RenZhengScreen' style={{ display: Show ? 'block' : 'none' }}>
|
14
|
16
|
<NavHeader Title='业主认证' Color='#000'></NavHeader>
|
15
|
17
|
<view className='centerLabel'>
|
16
|
|
- <text>请进行业主信息认证</text>
|
|
18
|
+ {
|
|
19
|
+ user !== null &&
|
|
20
|
+ <text className='Tips'>{user.verifyStatus === 'not_certified' ? '请进行业主信息认证' : user.verifyStatus === 'certification_in_progress' ? '业主认证中' : '业主验证未通过,请重新验证'}</text>
|
|
21
|
+ }
|
17
|
22
|
<view>
|
18
|
|
- <text onClick={() => { Taro.navigateTo({ url: `/pages/WoDe/YeZhuRenZheng/index?from=popup` }) }}>去认证</text>
|
|
23
|
+ {
|
|
24
|
+ user !== null && user.verifyStatus !== 'certification_in_progress' &&
|
|
25
|
+ <text onClick={() => { Taro.navigateTo({ url: `/pages/WoDe/YeZhuRenZheng/index?from=popup` }) }}>去认证</text>
|
|
26
|
+ }
|
19
|
27
|
</view>
|
20
|
28
|
</view>
|
21
|
29
|
</view>
|