|
@@ -65,44 +65,41 @@ export default () => {
|
65
|
65
|
|
66
|
66
|
return (
|
67
|
67
|
<Page>
|
68
|
|
- <ScrollPageRefresh RefreshBg='#f8f8f8' IsEmpty={IsEmpty} ApiName={`getShengHuoGuanJiaList`} Refresh={Refresh} Push={Push}>
|
|
68
|
+ <view className='ScorePopup' style={{display: CurrentUser === null ? 'none' : 'block'}}>
|
|
69
|
+ <view className='centerLabel'>
|
|
70
|
+ <view>
|
|
71
|
+ <view className='Title'>
|
|
72
|
+ <text>每月有一次评选机会</text>
|
|
73
|
+ <text className='iconfont iconguanbi' onClick={() => { setCurrentUser(null) }}></text>
|
|
74
|
+ </view>
|
|
75
|
+ <view className='flex-h'>
|
|
76
|
+ <view className='Icon'>
|
|
77
|
+ <image mode='aspectFill' src={CurrentUser !== null ? CurrentUser.photo : null}></image>
|
|
78
|
+ </view>
|
|
79
|
+ <view className='flex-item'>
|
|
80
|
+ <text>{CurrentUser !== null ? CurrentUser.userName : null}</text>
|
|
81
|
+ <text>工号:{CurrentUser !== null ? CurrentUser.jobNumber : null}</text>
|
|
82
|
+ </view>
|
|
83
|
+ </view>
|
|
84
|
+ <view className='Star'>
|
|
85
|
+ {
|
|
86
|
+ ['', '', '', '', ''].map((item, index) => (
|
|
87
|
+ <text className={index > StarIndex ? 'iconfont iconxingxing' : 'iconfont iconxingxing active'} key={`Star-${index}`} onClick={SelectStar(index)}></text>
|
|
88
|
+ ))
|
|
89
|
+ }
|
|
90
|
+ </view>
|
|
91
|
+ <view className='Submit'>
|
|
92
|
+ <text onClick={SubmitScore}>提交</text>
|
|
93
|
+ </view>
|
|
94
|
+ </view>
|
|
95
|
+ </view>
|
|
96
|
+ </view>
|
|
97
|
+ <ScrollPageRefresh RefreshBg='#f8f8f8' IsEmpty={IsEmpty} ApiName='getShengHuoGuanJiaList' Refresh={Refresh} Push={Push}>
|
69
|
98
|
<view className='shgj'>
|
70
|
99
|
{
|
71
|
100
|
PageList.map(item => <Card key={item.userId} dataSource={item} PostScore={PostScore} />)
|
72
|
101
|
}
|
73
|
102
|
</view>
|
74
|
|
- {
|
75
|
|
- CurrentUser !== null &&
|
76
|
|
- <view className='ScorePopup'>
|
77
|
|
- <view className='centerLabel'>
|
78
|
|
- <view>
|
79
|
|
- <view className='Title'>
|
80
|
|
- <text>每月有一次评选机会</text>
|
81
|
|
- <text className='iconfont iconguanbi' onClick={() => { setCurrentUser(null) }}></text>
|
82
|
|
- </view>
|
83
|
|
- <view className='flex-h'>
|
84
|
|
- <view className='Icon'>
|
85
|
|
- <image mode='aspectFill' src={CurrentUser.photo}></image>
|
86
|
|
- </view>
|
87
|
|
- <view className='flex-item'>
|
88
|
|
- <text>{CurrentUser.userName}</text>
|
89
|
|
- <text>工号:{CurrentUser.jobNumber}</text>
|
90
|
|
- </view>
|
91
|
|
- </view>
|
92
|
|
- <view className='Star'>
|
93
|
|
- {
|
94
|
|
- ['', '', '', '', ''].map((item, index) => (
|
95
|
|
- <text className={index > StarIndex ? 'iconfont iconxingxing' : 'iconfont iconxingxing active'} key={`Star-${index}`} onClick={SelectStar(index)}></text>
|
96
|
|
- ))
|
97
|
|
- }
|
98
|
|
- </view>
|
99
|
|
- <view className='Submit'>
|
100
|
|
- <text onClick={SubmitScore}>提交</text>
|
101
|
|
- </view>
|
102
|
|
- </view>
|
103
|
|
- </view>
|
104
|
|
- </view>
|
105
|
|
- }
|
106
|
103
|
</ScrollPageRefresh>
|
107
|
104
|
</Page>
|
108
|
105
|
)
|