Commit af1e056c by Hayato Kamimura

【規約同意】名称修正

parent 34b214d4
......@@ -130,7 +130,7 @@
"sitePolicy": "Site Policy",
"agreementToTermsTitle": "Terms of Service",
"TermAgree": "Agree",
"TermDisagree": "Disagree",
"agreeTerm": "Agree",
"disagreeTerm": "Disagree",
"msgDisagreeTerm": "Log out and then go to the login screen. Are you okay?"
}
\ No newline at end of file
......@@ -128,7 +128,7 @@
"sitePolicy": "サイトポリシー",
"agreementToTermsTitle": "利用規約",
"TermAgree": "同意する",
"TermDisagree": "同意しない",
"agreeTerm": "同意する",
"disagreeTerm": "同意しない",
"msgDisagreeTerm": "ログアウトされ、ログイン画面に遷移します。よろしいでしょうか?"
}
\ No newline at end of file
......@@ -127,7 +127,7 @@
"sitePolicy": "사이트 정책",
"agreementToTermsTitle": "이용규약",
"TermAgree": "동의",
"TermDisagree": "동의 안함",
"agreeTerm": "동의",
"disagreeTerm": "동의 안함",
"msgDisagreeTerm": "로그 아웃되어 로그인 화면으로 이동합니다. 실행 하시겠습니까?"
}
\ No newline at end of file
......@@ -37,7 +37,7 @@
<script type="text/javascript">
$(document).ready(function(){
agreementToTerms.initagreement();
agreementToTerms.initAgreement();
})
</script>
</head>
......@@ -46,14 +46,14 @@
<div id="loader"></div>
<div class="tos-wrapper">
<div class="title">
<h2 id="termsTitle">利用規約</h2>
<h2 id="agreementToTermsTitle">利用規約</h2>
<p class="tos-version" id="termsVersion"></p>
</div>
<div class="tos-text">
<p id="agreement"></p>
<p id="terms"></p>
</div>
<div class="btn-wrapper">
<button class="btn btn-agree" id="agreeTerm" onclick="agreementToTerms.sendAgreeTerms()">同意する</a>
<button class="btn btn-agree" id="agreeTerm" onclick="agreementToTerms.agreeTerm()">同意する</a>
<button class="btn btn-disagree" id="disagreeTerm" onclick="agreementToTerms.disagreeTerm()">同意しない</a>
</div>
......
......@@ -2,21 +2,21 @@
var agreementToTerms = {};
//言語、規約情報読み込み
agreementToTerms.initagreement = function(){
var data = agreementToTerms.requireTerms();
$("#termsTitle").text(I18N.i18nText("agreementToTermsTitle"));
$("#agreeTerm").text(I18N.i18nText("TermAgree"));
$("#disagreeTerm").text(I18N.i18nText("TermDisagree"));
agreementToTerms.initAgreement = function(){
var data = agreementToTerms.getTerms();
$("#agreementToTermsTitle").text(I18N.i18nText("agreementToTermsTitle"));
$("#agreeTerm").text(I18N.i18nText("agreeTerm"));
$("#disagreeTerm").text(I18N.i18nText("disagreeTerm"));
$("#termsVersion").text(data.termsVersion);
$("#agreement").text(data.agreement);
}
$("#terms").text(data.terms);
};
//遷移先の決定
agreementToTerms.destinationHtml = function(){
var data = agreementToTerms.requireTerms();
var data = agreementToTerms.getTerms();
if(data.httpStatus == CONSTANT.HTTP_STATUS.OK){
//公開中バージョンに未同意の場合
if(data.termsVersion || data.agreement){
if(data.termsVersion || data.terms){
//利用規約画面に遷移
COMMON.avwScreenMove("agreementToTerms.html");
}else{
......@@ -28,16 +28,16 @@ agreementToTerms.destinationHtml = function(){
COMMON.closeLoading();
COMMON.showAlert('errorOccurred');
}
}
};
//利用規約情報の取得
agreementToTerms.requireTerms = function(){
agreementToTerms.getTerms = function(){
var apiData = {};
var params = {
sid: COMMON.getSid(),
};
const url = COMMON.format(ClientData.conf_apiUrl(), ClientData.userInfo_accountPath()) + "/requireTerms/";
const url = COMMON.format(ClientData.conf_apiUrl(), ClientData.userInfo_accountPath()) + "/getTerms/";
COMMON.cmsAjax(
url,
params,
......@@ -57,8 +57,8 @@ agreementToTerms.requireTerms = function(){
};
//利用規約情報同意の送信
agreementToTerms.sendAgreeTerms = function(){
var apiData = agreementToTerms.requireTerms();
agreementToTerms.agreeTerm = function(){
var apiData = agreementToTerms.getTerms();
params = {
sid: COMMON.getSid(),
termsVersion: apiData.termsVersion,
......@@ -80,7 +80,7 @@ agreementToTerms.sendAgreeTerms = function(){
}
}
)
}
};
//利用規約に同意しない
agreementToTerms.disagreeTerm = function(){
......@@ -88,4 +88,4 @@ agreementToTerms.disagreeTerm = function(){
//ログアウトし、ログイン画面に遷移する
HEADER.processLogout();
}
}
\ No newline at end of file
};
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment