Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
65787c76
Commit
65787c76
authored
May 09, 2023
by
Hayato Kamimura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【規約同意】url, 遷移先修正
parent
95388d39
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
22 deletions
+21
-22
abweb/html/agrementToTerms.html
+1
-0
abweb/js/agrementToTerms/agrementToTerms.js
+10
-12
abweb/js/login/login.js
+10
-10
No files found.
abweb/html/agrementToTerms.html
View file @
65787c76
...
...
@@ -31,6 +31,7 @@
<script
type=
"text/javascript"
src=
"../common/js/constant.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/common.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../common/js/header.js"
></script>
<script
type=
"text/javascript"
src=
"../js/login/login.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"../js/agrementToTerms/agrementToTerms.js"
></script>
...
...
abweb/js/agrementToTerms/agrementToTerms.js
View file @
65787c76
//サービスオプション「規約同意」
var
agrementToTerms
=
{};
agrementToTerms
.
baseApiUrl
=
COMMON
.
format
(
ClientData
.
conf_apiUrl
(),
ClientData
.
userInfo_accountPath
());
//言語、規約情報読み込み
agrementToTerms
.
initAgrement
=
function
(){
...
...
@@ -24,12 +25,9 @@ agrementToTerms.destinationHtml = function(){
//ホーム画面に遷移
COMMON
.
avwScreenMove
(
"index.html"
);
}
}
else
if
(
data
.
httpStatus
==
CONSTANT
.
HTTP_STATUS
.
UNAUTHORIZED
){
//401error
}
else
if
(
data
.
httpStatus
==
CONSTANT
.
HTTP_STATUS
.
FORBIDDEN
){
//403error
}
else
if
(
data
.
httpStatus
==
CONSTANT
.
HTTP_STATUS
.
SERVER_ERROR
){
//500error
}
else
{
COMMON
.
closeLoading
();
COMMON
.
showAlert
(
'errorOccurred'
);
}
}
...
...
@@ -37,10 +35,10 @@ agrementToTerms.destinationHtml = function(){
agrementToTerms
.
requireTerms
=
function
(){
var
apiData
=
{};
var
params
=
{
sid
:
C
lientData
.
userInfo_s
id
(),
sid
:
C
OMMON
.
getS
id
(),
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_apiUrl
(),
ClientData
.
userInfo_accountPath
())
+
"/requireTerms?sid="
+
params
.
sid
;
const
url
=
agrementToTerms
.
baseApiUrl
+
"/requireTerms/"
;
COMMON
.
cmsAjax
(
url
,
params
,
...
...
@@ -63,10 +61,10 @@ agrementToTerms.requireTerms = function(){
agrementToTerms
.
sendAgreeTerms
=
function
(){
var
apiData
=
agrementToTerms
.
requireTerms
();
params
=
{
sid
:
C
lientData
.
userInfo_s
id
(),
sid
:
C
OMMON
.
getS
id
(),
termsVersion
:
apiData
.
termsVersion
,
};
const
url
=
COMMON
.
format
(
ClientData
.
conf_apiUrl
(),
ClientData
.
userInfo_accountPath
())
+
"/agreeTerms?sid="
+
params
.
sid
+
"&termsVersion="
+
params
.
termsVersion
;
const
url
=
agrementToTerms
.
baseApiUrl
+
"/agreeTerms/"
;
COMMON
.
cmsAjax
(
url
,
params
,
...
...
@@ -89,7 +87,6 @@ agrementToTerms.sendAgreeTerms = function(){
agrementToTerms
.
disagreeTerm
=
function
(){
if
(
confirm
(
I18N
.
i18nText
(
"msgDisagreeTerm"
))){
//ログアウトし、ログイン画面に遷移する
//HEADER.processLogout();
COMMON
.
avwScreenMove
(
"login.html"
);
HEADER
.
processLogout
();
}
}
\ No newline at end of file
abweb/js/login/login.js
View file @
65787c76
...
...
@@ -218,7 +218,7 @@ LOGIN.processLogin = function () {
if
(
data
.
requirePasswordChange
==
0
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//利用規約
画面に遷移
//利用規約
に同意しているかの確認
agrementToTerms
.
destinationHtml
();
}
else
if
(
data
.
requirePasswordChange
==
1
)
{
$
(
'#getToken'
).
val
(
data
.
token
);
...
...
@@ -247,8 +247,8 @@ LOGIN.processLogin = function () {
var
numDay
=
date
.
subtractByDays
(
skpPwdDt
);
if
(
numDay
<=
30
)
{
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
move to home.html page
COMMON
.
avwScreenMove
(
'index.html'
);
//
利用規約に同意しているかの確認
agrementToTerms
.
destinationHtml
(
);
}
else
if
(
numDay
>
30
)
{
LOGIN
.
OpenChangePasswordDialog
();
$
(
'#btnSkip'
).
show
();
...
...
@@ -259,7 +259,7 @@ LOGIN.processLogin = function () {
// no need to change password
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//利用規約
画面に遷移
//利用規約
に同意しているかの確認
agrementToTerms
.
destinationHtml
();
}
}
else
if
(
data
.
requirePasswordChange
==
2
)
{
...
...
@@ -301,8 +301,8 @@ LOGIN.processLogin = function () {
}
else
{
// No need to change password
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
move to home.html page
COMMON
.
avwScreenMove
(
'index.html'
);
//
利用規約に同意しているかの確認
agrementToTerms
.
destinationHtml
(
);
}
}
}
else
{
...
...
@@ -359,8 +359,8 @@ LOGIN.changePasswordProcess = function () {
$
(
'#dialog-error-message'
).
css
(
'display'
,
'none'
);
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
move to home.html page
COMMON
.
avwScreenMove
(
'index.html'
);
//
利用規約に同意しているかの確認
agrementToTerms
.
destinationHtml
(
);
}
else
if
(
result
.
httpStatus
==
'401'
)
{
COMMON
.
goUrlWithCurrentParams
(
CONSTANT
.
PAGE_NAME
.
LOGIN
);
}
else
if
(
result
.
httpStatus
==
'403'
)
{
...
...
@@ -416,8 +416,8 @@ LOGIN.skipPassFunction = function () {
ClientData
.
userInfo_pwdSkipDt
(
date
);
ClientData
.
userInfo_sid
(
ClientData
.
userInfo_sid_local
());
//
move to home.html page
COMMON
.
avwScreenMove
(
'index.html'
);
//
利用規約に同意しているかの確認
agrementToTerms
.
destinationHtml
(
);
};
// Open Change Password Dialog
...
...
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