Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sh-ds
Project
Project
Details
Activity
Releases
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
李良停
sh-ds
Commits
4264d9eb
Commit
4264d9eb
authored
Mar 17, 2021
by
喻春霖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
ca782b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
15 deletions
+27
-15
ds.html
eden-authcenter-agent/src/main/resources/templates/ds.html
+27
-15
No files found.
eden-authcenter-agent/src/main/resources/templates/ds.html
View file @
4264d9eb
...
...
@@ -5,6 +5,31 @@
<html
class=
"no-js"
xmlns:th=
"http://www.w3.org/1999/xhtml"
>
<!--<![endif]-->
<head>
<script
type=
"text/javascript"
th:src=
"@{/static/js/browser.js}"
></script>
<script
th:inline=
"javascript"
>
/*<![CDATA[*/
var
loginUrl1
=
[[
$
{
loginUrl1
}]];
var
loginUrl2
=
[[
$
{
loginUrl2
}]];
var
loginUrl3
=
[[
$
{
loginUrl3
}]];
var
logId
=
[[
$
{
logId
}]];
var
loginType
=
[[
$
{
loginType
}]];
var
ctxPath
=
/*[[@{/}]]*/
''
;
function
toLogin
(
idp
)
{
var
info
=
new
Browser
();
var
baseUrl
=
ctxPath
+
"auth/tologin?logId="
+
logId
+
"&oauthType="
;
if
(
idp
==
"dianjiaoguan"
)
{
window
.
location
.
href
=
baseUrl
+
"dianjiaoguan&loginUrl="
+
encodeURIComponent
(
loginUrl1
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
if
(
idp
==
"edenoperation"
)
{
window
.
location
.
href
=
baseUrl
+
"edenoperation&loginUrl="
+
encodeURIComponent
(
loginUrl2
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
{
window
.
location
.
href
=
baseUrl
+
idp
+
"&loginUrl="
+
encodeURIComponent
(
loginUrl3
+
"&auth_source="
+
idp
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
}
if
(
loginType
&&
loginType
.
length
>
0
){
toLogin
(
loginType
);
}
</script>
<meta
charset=
"utf-8"
/>
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<meta
content=
""
name=
"description"
/>
...
...
@@ -14,7 +39,7 @@
<link
rel=
"stylesheet"
th:href=
"@{/static/css/bootstrap.min.css}"
/>
<link
rel=
"stylesheet"
th:href=
"@{/static/css/normalize.css}"
/>
<script
type=
"text/javascript"
th:src=
"@{/static/js/jquery-1.10.2.min.js}"
></script>
<script
type=
"text/javascript"
src=
"@{/static/js/browser.js}"
></script>
<script
type=
"text/javascript"
th:
src=
"@{/static/js/browser.js}"
></script>
<style>
.form-group
{
...
...
@@ -55,7 +80,7 @@
<div
class=
"loginContainer"
>
<!--<h1>上海数字教材运营管理中心</h1>-->
<div
class=
"login-box text-center"
>
<img
class=
"logo-top-left"
src=
'@{/static/img/Rlogo.png}'
/>
<img
class=
"logo-top-left"
th:
src=
'@{/static/img/Rlogo.png}'
/>
<p
class=
"title"
>
发现服务·速享之旅
</p>
<div
class=
"title-line-city"
>
...
...
@@ -102,18 +127,5 @@
var
ctxPath
=
/*[[@{/}]]*/
''
;
/*]]>*/
</script>
<script
type=
"text/javascript"
>
function
toLogin
(
idp
)
{
var
info
=
new
Browser
();
var
baseUrl
=
ctxPath
+
"auth/tologin?logId="
+
logId
+
"&oauthType="
;
if
(
idp
==
"djg"
)
{
window
.
location
.
href
=
baseUrl
+
"dianjiaoguan&loginUrl="
+
encodeURIComponent
(
loginUrl1
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
if
(
idp
==
"szjc"
)
{
window
.
location
.
href
=
baseUrl
+
"edenoperation&loginUrl="
+
encodeURIComponent
(
loginUrl2
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
else
{
window
.
location
.
href
=
baseUrl
+
idp
+
"&loginUrl="
+
encodeURIComponent
(
loginUrl3
+
"&auth_source="
+
idp
)
+
"&browser="
+
info
.
browser
+
"&device="
+
info
.
device
+
"&os="
+
info
.
os
+
"&version="
+
info
.
version
;
}
}
</script>
</body>
</html>
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