diff --git a/src/web/maestro/extension.html b/src/web/maestro/extension.html new file mode 100644 index 0000000..c0581f2 --- /dev/null +++ b/src/web/maestro/extension.html @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + 마에스트로 계정 연장 | 초코마에 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + +
+ + + + + + + + \ No newline at end of file diff --git a/src/web/module/maestro_extension.html b/src/web/module/maestro_extension.html new file mode 100644 index 0000000..f8695da --- /dev/null +++ b/src/web/module/maestro_extension.html @@ -0,0 +1,221 @@ + + + + +
+
+
+ + + +
+ + +
+
+ +
+ +
계정 연장 신청
+
+
    +
  • 1년 연장만 가능합니다.
  • +
  • 업그레이드를 하셔도 1년 연장 효과가 있습니다.
  • +
+
+
+ + +
+ +

마에스트로 계정 연장 안내

+ +
    +
  1. 위에서 업그레이드 하실 상품을 선택하세요.
  2. +
  3. 연장을 신청하신 후, 추가 금액을 계좌이체해 주세요.
  4. +
  5. 입금 내역이 확인되는대로 마에스트로 계정의 유효기간 +1년을 적용해 드리겠습니다.
  6. +
+ +
+ +
\ No newline at end of file diff --git a/src/web/module/maestro_section_help.html b/src/web/module/maestro_section_help.html index a651ed1..5a17cea 100644 --- a/src/web/module/maestro_section_help.html +++ b/src/web/module/maestro_section_help.html @@ -103,6 +103,33 @@ $(document).ready(function() {
+ +
+
계정 연장
+
+

+ + +

+
+
유효 기간 연장 방법
+
+
+ + + +

+
+
+
+ +
계정 업그레이드
diff --git a/src/web/module/maestro_section_main.html b/src/web/module/maestro_section_main.html index 512c567..d6c81d0 100644 --- a/src/web/module/maestro_section_main.html +++ b/src/web/module/maestro_section_main.html @@ -37,13 +37,18 @@ function isExperienceMaestroAccount() { return false; } +function getDiffDay(endDay, today) { + var diffDay = (endDay.getTime() - today.getTime()) / (1000 * 60 * 60 * 24); + return Math.ceil(diffDay); +} + function showEndDate(date) { var endDateArray = date.split(" "); var endDate = endDateArray[0]; // "YY-MM_DD" var today = new Date(); var endDay = new Date(endDate); - var diffDay = (endDay.getTime() - today.getTime()) / (1000 * 60 * 60 * 24); + var diffDay = getDiffDay(endDay, today); $("#maestro_count_down_date").html("유효 기간 : ~ " + endDate + " (남은 기간 : " + Math.ceil(diffDay) + "일)"); if(diffDay < 30) @@ -57,7 +62,29 @@ function showEndDate(date) { } +function showMaestroExtensionMessage(maestroName, date) { + var endDateArray = date.split(" "); + var endDate = endDateArray[0]; // "YY-MM_DD" + + var today = new Date(); + var endDay = new Date(endDate); + var diffDay = getDiffDay(endDay, today); + + if(diffDay > 30) + return; + + $("#maestro_extension").removeClass("d-none"); + var message = "" + maestroName + " 계정의 유효 기간이 얼마 남지 않았습니다.
1년 더 사용을 원하신다면 우측의 [계정 연장] 버튼을 눌러주세요."; + if(diffDay < 0) + message = "" + maestroName + " 계정의 유효 기간이 지났습니다. 등록된 학생들의 정보는 유지되지만, 로그인이 제한됩니다.
계정 연장을 하시면 다시 로그인하고 사용할 수 있게 됩니다."; + + $("#maestro_extension_message").html(message); +} + + function onLoadSuccessMaestroInfo() { + showMaestroExtensionMessage(maestroInfo.maestroName, maestroInfo.availableActivateDateTime); + showEndDate(maestroInfo.availableActivateDateTime); $("#maestro_info_player_count").val("학생수 : " + maestroInfo.getRegisteredPlayerCount() + " / " + maestroInfo.getMaxPlayerCount()); @@ -172,13 +199,13 @@ function showModal(popupModalID, popupContentID, contentFileName) {
-