|
|
@ -165,52 +165,52 @@ class Registration extends React.Component {
|
|
|
|
* 加入战队
|
|
|
|
* 加入战队
|
|
|
|
* */
|
|
|
|
* */
|
|
|
|
Jointheteam = () => {
|
|
|
|
Jointheteam = () => {
|
|
|
|
// if (this.state.enrolled === true) {
|
|
|
|
if (this.state.enrolled === true) {
|
|
|
|
// //已经报名
|
|
|
|
//已经报名
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// messagePerbool: true,
|
|
|
|
messagePerbool: true,
|
|
|
|
// intpermessages: "您已报名,无需重复报"
|
|
|
|
intpermessages: "您已报名,无需重复报"
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// return;
|
|
|
|
return;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// if (this.state.enroll_ended === true) {
|
|
|
|
if (this.state.enroll_ended === true) {
|
|
|
|
// //报名截止
|
|
|
|
//报名截止
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// messagePerbool: true,
|
|
|
|
messagePerbool: true,
|
|
|
|
// intpermessages: "报名已截止,无需报名"
|
|
|
|
intpermessages: "报名已截止,无需报名"
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// return
|
|
|
|
return
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// if (this.props.isAdmin() === true) {
|
|
|
|
if (this.props.isAdmin() === true) {
|
|
|
|
// //老师
|
|
|
|
//老师
|
|
|
|
// if (this.state.teacher_staff === null) {
|
|
|
|
if (this.state.teacher_staff === null) {
|
|
|
|
// //禁止老师
|
|
|
|
//禁止老师
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// messagePerbool: true,
|
|
|
|
messagePerbool: true,
|
|
|
|
// intpermessages: "已禁止老师报名"
|
|
|
|
intpermessages: "已禁止老师报名"
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// return;
|
|
|
|
return;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// tmodalsTypes: true
|
|
|
|
tmodalsTypes: true
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// } else {
|
|
|
|
} else {
|
|
|
|
// //学生
|
|
|
|
//学生
|
|
|
|
// if (this.state.member_staff === null) {
|
|
|
|
if (this.state.member_staff === null) {
|
|
|
|
// //禁止学生
|
|
|
|
//禁止学生
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// messagePerbool: true,
|
|
|
|
messagePerbool: true,
|
|
|
|
// intpermessages: "已禁止学生报名"
|
|
|
|
intpermessages: "已禁止学生报名"
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// return;
|
|
|
|
return;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// this.setState({
|
|
|
|
this.setState({
|
|
|
|
// tmodalsTypes: true
|
|
|
|
tmodalsTypes: true
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
// this.setState({
|
|
|
|
tmodalsTypes: true
|
|
|
|
// tmodalsTypes: true
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|