详情请参见“测试结果”

dev_haigong
hjm 6 years ago
parent ed321e58ef
commit 5dedb3f80a

@ -533,6 +533,14 @@ pop_box_new(htmlvalue, 480, 182);
if (currentGamePassed) {
game.status = 2;
game.next_game = next_game;
} else {
this.showDialog({
contentText: <div>
<div>评测未通过</div>
<div>详情请参见测试结果</div>
</div>,
isSingleButton: true
})
}
const output_sets = {
@ -630,11 +638,12 @@ pop_box_new(htmlvalue, 480, 182);
@param okButtonText 确定按钮显示文本 继续查看
*/
showDialog(params) {
const { contentText, callback, moreButtonsRender, okButtonText } = params;
const { contentText, callback, moreButtonsRender, okButtonText, isSingleButton } = params;
this.dialogOkCallback = callback;
this.moreButtonsRender = moreButtonsRender
this.okButtonText = okButtonText;
this.isSingleButton = !!isSingleButton
this.setState({
gDialogOpen: true,
gDialogContentText: contentText
@ -696,14 +705,23 @@ pop_box_new(htmlvalue, 480, 182);
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={() => this.handleGdialogClose()} color="primary">
关闭
</Button>
<Button variant="raised"
onClick={() => this.onGdialogOkBtnClick() } color="primary" autoFocus>
{ this.okButtonText ? this.okButtonText : '确定' }
</Button>
{this.moreButtonsRender && this.moreButtonsRender()}
{ 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>
<Button variant="raised"
onClick={() => this.onGdialogOkBtnClick() } color="primary" autoFocus>
{ this.okButtonText ? this.okButtonText : '确定' }
</Button>
</React.Fragment>
}
{this.moreButtonsRender && this.moreButtonsRender()}
</DialogActions>
</Dialog>

Loading…
Cancel
Save