添加题目页面
[TOC]
简要描述
- 添加题目页面接口
请求URL
http://10.1.2.14:8090/superUser/addQuesPage
请求方式
- POST
返回示例
<!DOCTYPE html\>
<html\>
<head\>
<meta charset\="utf-8"\>
<meta http-equiv\="X-UA-Compatible" content\="IE=edge"\>
<title\>易安卓后台管理登陆</title\>
<!-- Tell the browser to be responsive to screen width -->
<meta content\="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name\="viewport"\>
<!-- Bootstrap 3.3.6 -->
<link rel\="stylesheet" href\="../../../bower\_components/bootstrap/dist/css/bootstrap.min.css"\>
<!-- Font Awesome -->
<link rel\="stylesheet" href\="../../../bower\_components/font-awesome/css/font-awesome.min.css"\>
<!-- Ionicons -->
<link rel\="stylesheet" href\="../../../bower\_components/Ionicons/css/ionicons.min.css"\>
<!-- Theme style -->
<link rel\="stylesheet" href\="../../../dist/css/AdminLTE.min.css"\>
<link rel\="stylesheet" href\="../../../dist/css/skins/skin-blue.min.css"\>
<script src\="../../../bower\_components/jquery/dist/jquery.min.js"\></script\>
<script src\="../../../bower\_components/bootstrap/dist/js/bootstrap.min.js"\></script\>
<script src\="../../../dist/js/adminlte.min.js"\></script\>
<!--\[if lt IE 9\]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<!\[endif\]-->
<link rel\="stylesheet" href\="../../../css/bootstrapValidator.min.css"\>
<script src\="../../../js/bootstrapValidator.min.js"\></script\>
<script src\="../../../js/zh\_CN.js"\></script\>
</head\>
<body class\="hold-transition login-page"\>
<div class\="login-box"\>
<div class\="login-logo"\>
<a href\="#"\><b\>易</b\>安卓</a\>
</div\>
<div class\="login-box-body"\>
<div class\="row"\>
<div class\="col-md-8"\>
<p class\="login-box-msg"\>易安卓后台管理登陆</p\>
<form method\="post" id\="login-form" style\="margin-bottom: 10px"\>
<div class\="form-group has-feedback"\>
<input type\="text" class\="form-control" placeholder\="管理员账号名" name\="account"\>
<span class\="glyphicon glyphicon-user form-control-feedback"\></span\>
</div\>
<div class\="form-group has-feedback"\>
<input type\="password" class\="form-control" placeholder\="密码" name\="password"\>
<span class\="glyphicon glyphicon-lock form-control-feedback"\></span\>
</div\>
<div class\="row"\>
<div class\="col-xs-12"\>
<button type\="submit" class\="btn btn-primary btn-block btn-flat" id\="sub"\>登陆</button\>
</div\>
</div\>
</form\>
<a href\="/schoolLogin" class\="text-center"\>学校用户登陆</a\>
</div\>
<div class\="col-md-4 text-center"\>
<div class\="col-md-10 col-md-offset-1" style\="margin-top: 40px"\>
<img src\="../../../upload/default/images/app-QR-code.png" class\="img-responsive center-block" style\="margin-bottom: 10px"\>
<a\>扫码下载APP</a\>
</div\>
</div\>
</div\>
</div\>
<script\>
$(function () {
$('#login-form').bootstrapValidator({
message: 'This value is not valid',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
account: {
message: '用户名验证失败',
validators: {
notEmpty: {
message: '用户名不能为空'
},
stringLength: {
min: 5,
max: 20,
message: '用户名长度必须在6到20个字符之间'
}
}
},
password: {
validators: {
notEmpty: {
message: '密码不能为空'
}, stringLength: {
min: 6,
max: 20,
message: '密码长度必须在6到20字符之间'
}
}
}
}
});
$('#sub').on("click", function () {
var bootstrapValidator \= $('#login-form').data('bootstrapValidator');
bootstrapValidator.validate();
if (bootstrapValidator.isValid()) {
$.ajax({
type: 'POST',
url: '/adminUserLogin',
data: $('#login-form').serialize(),
success: function (data) {
if (data.res)
window.location.href \= window.location.protocol + '/superMain';
else
alert(data.message);
}
});
}
});
document.onkeydown \= function (e) {
var keyNum \= window.event ? e.keyCode : e.which;
if (keyNum \== 13) {
var bootstrapValidator \= $('#login-form').data('bootstrapValidator');
bootstrapValidator.validate();
if (bootstrapValidator.isValid()) {
$.ajax({
type: 'POST',
url: '/adminUserLogin',
data: $('#login-form').serialize(),
success: function (data) {
返回参数说明
参数名 | 类型 | 说明 |
---|
备注
- 更多返回错误代码请看首页的错误代码描述