竞赛新增

dev_sync_trustie
杨树林 6 years ago
parent 42e5a3ca81
commit 08d4b56880

@ -20,10 +20,10 @@ class CompetitionMaxImg extends React.Component {
<p className="registrationbackp3">提供企业级工程实训以实现工程化专业教学的自动化和智能化</p> <p className="registrationbackp3">提供企业级工程实训以实现工程化专业教学的自动化和智能化</p>
<div className="registrationbackp2button"> <div className="registrationbackp2button">
<div className="registbut1"> <div className="registbut1">
<p>加入战队</p> <p onClick={() => this.props.Jointheteam()}>加入战队</p>
</div> </div>
<div className="registbut2"> <div className="registbut2">
<p>创建战队</p> <p onClick={() => this.props.Createateam()}>创建战队</p>
</div> </div>
</div> </div>
@ -35,10 +35,10 @@ class CompetitionMaxImg extends React.Component {
<p className="registrationbackp4">高校智能课堂与综合实训平台</p> <p className="registrationbackp4">高校智能课堂与综合实训平台</p>
<div className="registrationbackp2button2"> <div className="registrationbackp2button2">
<div className="registbut11"> <div className="registbut11">
<p>加入战队</p> <p onClick={() => this.props.Jointheteam()}>加入战队</p>
</div> </div>
<div className="registbut22"> <div className="registbut22">
<p>创建战队</p> <p onClick={() => this.props.Createateam()}>创建战队</p>
</div> </div>
</div> </div>
@ -50,10 +50,10 @@ class CompetitionMaxImg extends React.Component {
<p className="registrationbackp22">高校智能课堂与综合实训平台</p> <p className="registrationbackp22">高校智能课堂与综合实训平台</p>
<div className="registrationbackp2button3"> <div className="registrationbackp2button3">
<div className="registbut111"> <div className="registbut111">
<p>加入战队</p> <p onClick={() => this.props.Jointheteam()}>加入战队</p>
</div> </div>
<div className="registbut222"> <div className="registbut222">
<p>创建战队</p> <p onClick={() => this.props.Createateam()}>创建战队</p>
</div> </div>
</div> </div>

@ -29,7 +29,7 @@ class Registration extends React.Component {
limit: 20, limit: 20,
type: 3, type: 3,
tmodalsType: false, tmodalsType: false,
tmodalsTypes: true, tmodalsTypes: false,
} }
} }
@ -40,6 +40,23 @@ class Registration extends React.Component {
loadingstate: true, loadingstate: true,
}) })
}; };
/**
* 加入战队
* */
Jointheteam = () => {
this.setState({
tmodalsTypes: true
})
}
/**
* 创建战队
**/
Createateam = () => {
this.setState({
tmodalsType: true
})
}
Tmoconfirm = (bool) => { Tmoconfirm = (bool) => {
@ -62,7 +79,7 @@ class Registration extends React.Component {
Tmoconfirm1 = (bool) => { Tmoconfirm1 = (bool) => {
//boolfalse 取消 true 确认 //boolfalse 取消 true 确认
this.setState({ this.setState({
tmodalsTypes: false tmodalsType: false
}) })
if (bool) { if (bool) {
//确认 //确认
@ -109,7 +126,8 @@ class Registration extends React.Component {
</p> </p>
</div> </div>
{/*大图*/} {/*大图*/}
<CompetitionMaxImg type={type}></CompetitionMaxImg> <CompetitionMaxImg type={type} Jointheteam={() => this.Jointheteam()}
Createateam={() => this.Createateam()}></CompetitionMaxImg>
{/*大图结尾*/} {/*大图结尾*/}
{/*没数据*/} {/*没数据*/}
{ {

@ -174,13 +174,32 @@
} }
.registbut1 p { .registbut1 p {
width: 100%;
height: 100%;
color: #05101A; color: #05101A;
line-height: 54px;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
cursor: pointer cursor: pointer
} }
.registbut11 p {
width: 100%;
height: 100%;
line-height: 48px;
}
.registbut22 p {
width: 100%;
height: 100%;
line-height: 48px;
}
.registbut2 p { .registbut2 p {
line-height: 54px;
width: 100%;
height: 100%;
color: #05101A; color: #05101A;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
@ -194,6 +213,19 @@
cursor: not-allowed; cursor: not-allowed;
} }
.registbut111 p {
width: 100%;
height: 100%;
line-height: 41px;
}
.registbut222 p {
width: 100%;
height: 100%;
line-height: 41px;
}
.registbut2 { .registbut2 {
text-align: center; text-align: center;
color: #05101A; color: #05101A;

@ -538,10 +538,10 @@ class PersonModal extends Component {
width: "100%" width: "100%"
}}> }}>
<div className="personbut1"> <div className="personbut1">
<p onClick={() => this.Tmoconfirm1(false)}> 取消</p> <p onClick={() => this.props.Tmoconfirm1(false)}> 取消</p>
</div> </div>
<div className="personbut2"> <div className="personbut2">
<p onClick={() => this.Tmoconfirm1(true)}>确定</p> <p onClick={() => this.props.Tmoconfirm1(true)}>确定</p>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save