Commit 545136d9 by zhanghaozhe

周年庆

parent 95661967
......@@ -1182,7 +1182,7 @@ class Anniversary2020 extends Component {
}}></WinPrize>
}
{
isShowTeamMember && <TeamMember members={team.team_info} close={() => {
isShowTeamMember && <TeamMember members={team.team_info} uid={user.data.uid} close={() => {
this.setState({
isShowTeamMember: false,
});
......@@ -1222,8 +1222,8 @@ function WinPrize({name, close, info}) {
</div>
}
function TeamMember({members, close}) {
const _members = Array.isArray(members) && members.slice(0, members.length - 2)
function TeamMember({members, close, uid}) {
const _members = Array.isArray(members) && members.filter(item => item.uid != uid)
const statusText = ['回答错误', '回答正确', '未作答']
const statusClass = ['wrong', 'correct', 'unanswered']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment