竞赛新增

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

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

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

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

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

Loading…
Cancel
Save