Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CloudScape.zhao
kiftd
提交
5ba01aae
kiftd
项目概览
CloudScape.zhao
/
kiftd
与 Fork 源项目一致
Fork自
青阳龙野 / kiftd
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
kiftd
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5ba01aae
编写于
2月 09, 2020
作者:
青阳龙野
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update to v1.0.28-release
上级
23ef3fd9
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
38 addition
and
22 deletion
+38
-22
kiftd-1.0.28-RELEASE.jar
kiftd-1.0.28-RELEASE.jar
+0
-0
webContext/js/home.js
webContext/js/home.js
+5
-3
webContext/js/home.min.js
webContext/js/home.min.js
+1
-1
webContext/js/login.js
webContext/js/login.js
+32
-18
未找到文件。
kiftd-1.0.28-RELEASE.jar
浏览文件 @
5ba01aae
无法预览此类型文件
webContext/js/home.js
浏览文件 @
5ba01aae
...
@@ -542,13 +542,15 @@ function startLogin(){
...
@@ -542,13 +542,15 @@ function startLogin(){
$
(
"
#accountid
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountid
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountpwd
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountpwd
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#dologinButton
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#dologinButton
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#vercode
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
}
}
// 结束登陆加载动画
// 结束登陆加载动画
function
finishLogin
(){
function
finishLogin
(){
$
(
"
#accountid
"
).
removeAttr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountid
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#accountpwd
"
).
removeAttr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountpwd
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#dologinButton
"
).
removeAttr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#dologinButton
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#vercode
"
).
removeAttr
(
'
disabled
'
);
}
}
// 登录操作
// 登录操作
...
...
webContext/js/home.min.js
浏览文件 @
5ba01aae
此差异已折叠。
点击以展开。
webContext/js/login.js
浏览文件 @
5ba01aae
...
@@ -52,6 +52,7 @@ function dologin() {
...
@@ -52,6 +52,7 @@ function dologin() {
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
}
}
if
(
check
==
"
y
"
)
{
if
(
check
==
"
y
"
)
{
startLogin
();
$
.
ajax
({
$
.
ajax
({
type
:
"
POST
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
dataType
:
"
text
"
,
...
@@ -67,9 +68,7 @@ function dologin() {
...
@@ -67,9 +68,7 @@ function dologin() {
sendLoginInfo
(
encrypted
);
sendLoginInfo
(
encrypted
);
},
},
error
:
function
()
{
error
:
function
()
{
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:登录请求失败,请检查网络或服务器运行状态
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:登录请求失败,请检查网络或服务器运行状态
"
);
}
}
});
});
}
}
...
@@ -93,6 +92,7 @@ function sendLoginInfo(encrypted) {
...
@@ -93,6 +92,7 @@ function sendLoginInfo(encrypted) {
$
(
"
#vercodebox
"
).
addClass
(
"
hidden
"
);
$
(
"
#vercodebox
"
).
addClass
(
"
hidden
"
);
switch
(
result
)
{
switch
(
result
)
{
case
"
permitlogin
"
:
case
"
permitlogin
"
:
finishLogin
();
$
(
"
#accountidbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountidbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
window
.
location
.
href
=
"
/home.html
"
;
window
.
location
.
href
=
"
/home.html
"
;
...
@@ -100,38 +100,29 @@ function sendLoginInfo(encrypted) {
...
@@ -100,38 +100,29 @@ function sendLoginInfo(encrypted) {
case
"
accountnotfound
"
:
case
"
accountnotfound
"
:
$
(
"
#accountidbox
"
).
addClass
(
"
has-error
"
);
$
(
"
#accountidbox
"
).
addClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:登录失败,账户不存在或未设置
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:登录失败,账户不存在或未设置
"
);
break
;
break
;
case
"
accountpwderror
"
:
case
"
accountpwderror
"
:
$
(
"
#accountpwdbox
"
).
addClass
(
"
has-error
"
);
$
(
"
#accountpwdbox
"
).
addClass
(
"
has-error
"
);
$
(
"
#accountidbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#accountidbox
"
).
removeClass
(
"
has-error
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:登录失败,密码错误或未设置
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:登录失败,密码错误或未设置
"
);
break
;
break
;
case
"
needsubmitvercode
"
:
case
"
needsubmitvercode
"
:
finishLogin
();
$
(
"
#vercodebox
"
).
html
(
"
<label id='vercodetitle' class='col-sm-6'><img id='showvercode' class='vercodeimg' alt='点击获取验证码' src='homeController/getNewVerCode.do?s=
"
+
(
new
Date
()).
getTime
()
+
"
' onclick='getNewVerCode()'></label><div class='col-sm-6'><input type='text' class='form-control' id='vercode' placeholder='验证码……'></div>
"
);
$
(
"
#vercodebox
"
).
html
(
"
<label id='vercodetitle' class='col-sm-6'><img id='showvercode' class='vercodeimg' alt='点击获取验证码' src='homeController/getNewVerCode.do?s=
"
+
(
new
Date
()).
getTime
()
+
"
' onclick='getNewVerCode()'></label><div class='col-sm-6'><input type='text' class='form-control' id='vercode' placeholder='验证码……'></div>
"
);
$
(
"
#vercodebox
"
).
removeClass
(
"
hidden
"
);
$
(
"
#vercodebox
"
).
removeClass
(
"
hidden
"
);
$
(
"
#vercodebox
"
).
addClass
(
"
show
"
);
$
(
"
#vercodebox
"
).
addClass
(
"
show
"
);
break
;
break
;
case
"
error
"
:
case
"
error
"
:
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:登录失败,登录请求无法通过效验(可能是请求耗时过长导致的)
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:登录失败,登录请求无法通过效验(可能是请求耗时过长导致的)
"
);
break
;
break
;
default
:
default
:
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:无法登录,未知错误
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:无法登录,未知错误
"
);
break
;
break
;
}
}
},
},
error
:
function
()
{
error
:
function
()
{
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
showAlert
(
"
提示:登录请求失败,请检查网络或服务器运行状态
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
"
提示:登录请求失败,请检查网络或服务器运行状态
"
);
}
}
});
});
}
}
...
@@ -139,4 +130,27 @@ function sendLoginInfo(encrypted) {
...
@@ -139,4 +130,27 @@ function sendLoginInfo(encrypted) {
//获取一个新的验证码
//获取一个新的验证码
function
getNewVerCode
(){
function
getNewVerCode
(){
$
(
"
#showvercode
"
).
attr
(
"
src
"
,
"
homeController/getNewVerCode.do?s=
"
+
(
new
Date
()).
getTime
());
$
(
"
#showvercode
"
).
attr
(
"
src
"
,
"
homeController/getNewVerCode.do?s=
"
+
(
new
Date
()).
getTime
());
}
function
showAlert
(
text
){
finishLogin
();
$
(
"
#alertbox
"
).
addClass
(
"
alert
"
);
$
(
"
#alertbox
"
).
addClass
(
"
alert-danger
"
);
$
(
"
#alertbox
"
).
text
(
text
);
}
function
startLogin
(){
$
(
"
#loginBtn
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountid
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#accountpwd
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#vercode
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
$
(
"
#loginBtn
"
).
val
(
'
正在登录...
'
);
}
function
finishLogin
(){
$
(
"
#loginBtn
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#accountid
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#accountpwd
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#vercode
"
).
removeAttr
(
'
disabled
'
);
$
(
"
#loginBtn
"
).
val
(
'
登录
'
);
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录