Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
c5f8dc88
Commit
c5f8dc88
authored
Apr 02, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
cf3462ff
7e8bfccc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
login.js
src/main/resources/static/views/login/login.js
+22
-22
No files found.
src/main/resources/static/views/login/login.js
View file @
c5f8dc88
...
@@ -10,28 +10,6 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
...
@@ -10,28 +10,6 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
}])
}])
.
controller
(
'loginCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
,
$location
,
$http
,
localStorageService
)
{
.
controller
(
'loginCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
,
$location
,
$http
,
localStorageService
)
{
if
(
$rootScope
.
loginData
.
login
==
true
){
whereToGo
(
$rootScope
.
loginData
.
roleList
[
0
].
process
)
}
$scope
.
enterEvent
=
function
(
e
)
{
var
keycode
=
window
.
event
?
e
.
keyCode
:
e
.
which
;
if
(
keycode
==
13
){
$scope
.
doLogin
();
}
}
var
browserName
=
function
(
userAgent
){
if
(
userAgent
.
index0f
(
'Firefox'
)
!=
-
1
)
location
.
reload
([
true
])
if
(
userAgent
.
index0f
(
" Chrome"
)
!==
-
1
){
location
.
reload
([
true
])
}
}
var
whereToGo
=
function
(
process
){
var
whereToGo
=
function
(
process
){
switch
(
process
){
switch
(
process
){
case
1
:
case
1
:
...
@@ -75,6 +53,28 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
...
@@ -75,6 +53,28 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
break
;
break
;
}
}
}
}
if
(
$rootScope
.
loginData
.
login
==
true
){
whereToGo
(
$rootScope
.
loginData
.
roleList
[
0
].
process
)
}
$scope
.
enterEvent
=
function
(
e
)
{
var
keycode
=
window
.
event
?
e
.
keyCode
:
e
.
which
;
if
(
keycode
==
13
){
$scope
.
doLogin
();
}
}
var
browserName
=
function
(
userAgent
){
if
(
userAgent
.
index0f
(
'Firefox'
)
!=
-
1
)
location
.
reload
([
true
])
if
(
userAgent
.
index0f
(
" Chrome"
)
!==
-
1
){
location
.
reload
([
true
])
}
}
$scope
.
user
=
{};
$scope
.
user
=
{};
$scope
.
doLogin
=
function
(){
$scope
.
doLogin
=
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment