代码整理
This commit is contained in:
14
zyplayer-doc-manage/src/main/webapp/statics/common/403.html
Normal file
14
zyplayer-doc-manage/src/main/webapp/statics/common/403.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<title>403错误页面</title>
|
||||
<style>
|
||||
</style>
|
||||
<div style="text-align: center;">您没有权限访问此页面</div>
|
||||
</body>
|
||||
</html>
|
||||
14
zyplayer-doc-manage/src/main/webapp/statics/common/404.html
Normal file
14
zyplayer-doc-manage/src/main/webapp/statics/common/404.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<title>404错误页面</title>
|
||||
<style>
|
||||
</style>
|
||||
<div style="text-align: center;">您访问的页面不存在</div>
|
||||
</body>
|
||||
</html>
|
||||
14
zyplayer-doc-manage/src/main/webapp/statics/common/500.html
Normal file
14
zyplayer-doc-manage/src/main/webapp/statics/common/500.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<title>500错误页面</title>
|
||||
<style>
|
||||
</style>
|
||||
<div style="text-align: center;">服务器错误</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,6 +4,14 @@
|
||||
* @since 2017年5月7日
|
||||
*/
|
||||
|
||||
var ctx = "/";
|
||||
var statics = "/statics/";
|
||||
|
||||
window.onload=function(){
|
||||
ctx = getCookie("ctx");
|
||||
statics = ctx + "statics/";
|
||||
}
|
||||
|
||||
function serialize(value) {
|
||||
if (typeof value === 'string') {
|
||||
return value;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="heading divider primary-pale">
|
||||
<div class="title">登录 <span class="reason"> 您没有权限访问该内容或需要登录</span></div>
|
||||
</div>
|
||||
<form action="/login" method="post">
|
||||
|
||||
<div class="content box">
|
||||
<div class="control has-label-left"><!-- has-error -->
|
||||
<input type="text" name="username" class="input" v-model="userId" placeholder="用户名">
|
||||
@@ -29,10 +29,10 @@
|
||||
<label for="account"><i class="icon-key"></i></label>
|
||||
</div>
|
||||
<div class="control">
|
||||
<button type="submit" v-on:click="loginSubmit1" class="btn block primary">登录</button>
|
||||
<button type="submit" v-on:click="loginSubmit" class="btn block primary">登录</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,10 +58,10 @@
|
||||
password: app.password,
|
||||
validateCode: "1234"
|
||||
};
|
||||
post("/login", param, function(result) {
|
||||
post(ctx + "login", param, function(result) {
|
||||
console.log(result);
|
||||
if(result.errCode == 200) {
|
||||
//location.href = "/manage/web/home";
|
||||
alert("登录失败1," + result.errMsg);
|
||||
location.href = result.data;
|
||||
} else {
|
||||
alert("登录失败," + result.errMsg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user