Fix: trial maestro account
This commit is contained in:
1 parent
9eec33cc49
commit
3d474b266c
22 files changed
+637
-101
No files matched your search
@@ -19,6 +19,44 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
function activateStatus(activateStatus) {
|
||||
switch(activateStatus) {
|
||||
case 0:
|
||||
return "미승인";
|
||||
|
||||
case 1:
|
||||
return "체험";
|
||||
|
||||
case 2:
|
||||
return "활성화";
|
||||
|
||||
case 100:
|
||||
return "등록 취소";
|
||||
|
||||
default:
|
||||
return activateStatus + "? (N/A)";
|
||||
}
|
||||
}
|
||||
|
||||
function activateStatusValue(activateStatus) {
|
||||
switch(activateStatus) {
|
||||
case "미승인":
|
||||
return 0;
|
||||
|
||||
case "체험":
|
||||
return 1;
|
||||
|
||||
case "활성화":
|
||||
return 2;
|
||||
|
||||
case "등록 취소":
|
||||
return 100;
|
||||
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
function accountType(accountType) {
|
||||
switch(accountType) {
|
||||
case 1:
|
||||
@@ -44,12 +82,40 @@ function accountType(accountType) {
|
||||
return accountType + "? (N/A)";
|
||||
}
|
||||
|
||||
function trialAccountType(accountType) {
|
||||
switch(accountType) {
|
||||
case 1:
|
||||
return "20명 (0원)";
|
||||
|
||||
case 2:
|
||||
return "50명 (0원)";
|
||||
|
||||
case 3:
|
||||
return "100명 (0원)";
|
||||
|
||||
case 4:
|
||||
return "500명 (0원)";
|
||||
|
||||
case 5:
|
||||
return "1,000명 (0원)";
|
||||
|
||||
case 100:
|
||||
case 101:
|
||||
return "해당없음";
|
||||
}
|
||||
|
||||
return accountType + "? (N/A)";
|
||||
}
|
||||
|
||||
function accountStatus(accountType, activateStatus) {
|
||||
if(activateStatus == 0)
|
||||
return "입금대기";
|
||||
else if(activateStatus == 1)
|
||||
return "체험";
|
||||
else if(activateStatus == 100)
|
||||
return "환불";
|
||||
|
||||
// activateStatus == 2 : "활성화"
|
||||
switch(accountType) {
|
||||
case 1:
|
||||
return "20명";
|
||||
@@ -121,18 +187,23 @@ function accountTypePrice(accountType) {
|
||||
function accountTypeValue(accountType) {
|
||||
switch(accountType) {
|
||||
case "20명 (1만원)":
|
||||
case "20명 (0원)":
|
||||
return 1;
|
||||
|
||||
case "50명 (2만원)":
|
||||
case "50명 (0원)":
|
||||
return 2;
|
||||
|
||||
case "100명 (3만원)":
|
||||
case "100명 (0원)":
|
||||
return 3;
|
||||
|
||||
case "500명 (4만원)":
|
||||
case "500명 (0원)":
|
||||
return 4;
|
||||
|
||||
case "1,000명 (5만원)":
|
||||
case "1,000명 (0원)":
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
function MaestroInfo() {
|
||||
this.maestroID = sessionStorage.getItem("maestroID");
|
||||
this.maestroName = "";
|
||||
this.activateStatus = 0;
|
||||
this.accountType = 0;
|
||||
this.availableActivateDateTime = "";
|
||||
this.playerCount = 0;
|
||||
@@ -15,6 +16,7 @@ MaestroInfo.prototype.loadMaestroInfo = function(onSuccess, onFail) {
|
||||
|
||||
function(jsonData) {
|
||||
self.maestroName = jsonData["name"];
|
||||
self.activatedStatus = jsonData["activatedStatus"];
|
||||
self.accountType = jsonData["accountType"];
|
||||
self.availableActivateDateTime = jsonData["availableActivateDateTime"];
|
||||
self.playerCount = jsonData["playerCount"];
|
||||
|
||||
Reference in new issue
Block a user