竞赛添加加入战队弹框调整

dev_sync_trustie
杨树林 5 years ago
parent 7203345468
commit 42e5a3ca81

@ -39,6 +39,40 @@ class Registration extends React.Component {
page: pageNumber, page: pageNumber,
loadingstate: true, loadingstate: true,
}) })
};
Tmoconfirm = (bool) => {
//boolfalse 取消 true 确认
this.setState({
tmodalsTypes: false
})
if (bool) {
//确认
} else {
//取消
}
}
Tmoconfirm1 = (bool) => {
//boolfalse 取消 true 确认
this.setState({
tmodalsTypes: false
})
if (bool) {
//确认
} else {
//取消
}
} }
render() { render() {
@ -60,8 +94,10 @@ class Registration extends React.Component {
` `
} }
</style> </style>
<PersonModal modalsType={tmodalsType} {...this.props} {...this.state}></PersonModal> <PersonModal modalsType={tmodalsType} {...this.props} {...this.state}
<PersonalModalteam tmodalsTypes={tmodalsTypes} {...this.props} {...this.state}></PersonalModalteam> Tmoconfirm1={(bool) => this.Tmoconfirm1(bool)}></PersonModal>
<PersonalModalteam tmodalsTypes={tmodalsTypes} {...this.props} {...this.state}
Tmoconfirm={(bool) => this.Tmoconfirm(bool)}></PersonalModalteam>
<div className="educontent mb20 "> <div className="educontent mb20 ">
<p className="clearfix mb20 mt10"> <p className="clearfix mb20 mt10">
<a className="btn colorgrey fl hovercolorblue ">在线竞赛</a> <a className="btn colorgrey fl hovercolorblue ">在线竞赛</a>

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

@ -85,10 +85,10 @@ class PersonalModalteam extends Component {
width: "100%" width: "100%"
}}> }}>
<div className="personaldivbutt1"> <div className="personaldivbutt1">
<p>取消</p> <p onClick={() => this.props.Tmoconfirm(false)}>取消</p>
</div> </div>
<div className="personaldivbutt2"> <div className="personaldivbutt2">
<p>确定</p> <p onClick={() => this.props.Tmoconfirm(true)}>确定</p>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save