|
|
@ -533,6 +533,14 @@ pop_box_new(htmlvalue, 480, 182);
|
|
|
|
if (currentGamePassed) {
|
|
|
|
if (currentGamePassed) {
|
|
|
|
game.status = 2;
|
|
|
|
game.status = 2;
|
|
|
|
game.next_game = next_game;
|
|
|
|
game.next_game = next_game;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.showDialog({
|
|
|
|
|
|
|
|
contentText: <div>
|
|
|
|
|
|
|
|
<div>评测未通过</div>
|
|
|
|
|
|
|
|
<div>详情请参见“测试结果”</div>
|
|
|
|
|
|
|
|
</div>,
|
|
|
|
|
|
|
|
isSingleButton: true
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const output_sets = {
|
|
|
|
const output_sets = {
|
|
|
@ -630,11 +638,12 @@ pop_box_new(htmlvalue, 480, 182);
|
|
|
|
@param okButtonText “确定”按钮显示文本,如 继续查看
|
|
|
|
@param okButtonText “确定”按钮显示文本,如 继续查看
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
showDialog(params) {
|
|
|
|
showDialog(params) {
|
|
|
|
const { contentText, callback, moreButtonsRender, okButtonText } = params;
|
|
|
|
const { contentText, callback, moreButtonsRender, okButtonText, isSingleButton } = params;
|
|
|
|
|
|
|
|
|
|
|
|
this.dialogOkCallback = callback;
|
|
|
|
this.dialogOkCallback = callback;
|
|
|
|
this.moreButtonsRender = moreButtonsRender
|
|
|
|
this.moreButtonsRender = moreButtonsRender
|
|
|
|
this.okButtonText = okButtonText;
|
|
|
|
this.okButtonText = okButtonText;
|
|
|
|
|
|
|
|
this.isSingleButton = !!isSingleButton
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
gDialogOpen: true,
|
|
|
|
gDialogOpen: true,
|
|
|
|
gDialogContentText: contentText
|
|
|
|
gDialogContentText: contentText
|
|
|
@ -696,6 +705,13 @@ pop_box_new(htmlvalue, 480, 182);
|
|
|
|
</DialogContentText>
|
|
|
|
</DialogContentText>
|
|
|
|
</DialogContent>
|
|
|
|
</DialogContent>
|
|
|
|
<DialogActions>
|
|
|
|
<DialogActions>
|
|
|
|
|
|
|
|
{ this.isSingleButton ? <div className="task-popup-submit clearfix"
|
|
|
|
|
|
|
|
style={{ textAlign: 'center' }}>
|
|
|
|
|
|
|
|
<a className="task-btn task-btn-orange"
|
|
|
|
|
|
|
|
onClick={this.handleGdialogClose}
|
|
|
|
|
|
|
|
>知道啦</a>
|
|
|
|
|
|
|
|
</div> :
|
|
|
|
|
|
|
|
<React.Fragment>
|
|
|
|
<Button onClick={() => this.handleGdialogClose()} color="primary">
|
|
|
|
<Button onClick={() => this.handleGdialogClose()} color="primary">
|
|
|
|
关闭
|
|
|
|
关闭
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
@ -703,6 +719,8 @@ pop_box_new(htmlvalue, 480, 182);
|
|
|
|
onClick={() => this.onGdialogOkBtnClick() } color="primary" autoFocus>
|
|
|
|
onClick={() => this.onGdialogOkBtnClick() } color="primary" autoFocus>
|
|
|
|
{ this.okButtonText ? this.okButtonText : '确定' }
|
|
|
|
{ this.okButtonText ? this.okButtonText : '确定' }
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
}
|
|
|
|
{this.moreButtonsRender && this.moreButtonsRender()}
|
|
|
|
{this.moreButtonsRender && this.moreButtonsRender()}
|
|
|
|
</DialogActions>
|
|
|
|
</DialogActions>
|
|
|
|
</Dialog>
|
|
|
|
</Dialog>
|
|
|
|