fix : 상점관리 > 쇼핑몰관리 - 1엔 환율, 구독서비스 안내문구 추가
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
fn_create_ckeditor('#joinGuidanceWords', sopmalCd);
|
||||
fn_create_ckeditor('#joinBnef', sopmalCd);
|
||||
fn_create_ckeditor('#joinComptWords', sopmalCd);
|
||||
fn_create_ckeditor('#subsvcGuidanceWords', sopmalCd);
|
||||
|
||||
$("#kakaoIntrlckAt-Y").on("change", function () {
|
||||
if ($(this).is(":checked")) {
|
||||
@@ -159,6 +160,24 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 환율 입력 (숫자와 소숫점. 2자리수까지 허용)
|
||||
$("#buyRate, #sellRate").on("input", function () {
|
||||
let value = $(this).val();
|
||||
value = value.replace(/[^0-9.]/g, "");
|
||||
|
||||
const dotCount = (value.match(/\./g) || []).length;
|
||||
if (dotCount > 1) {
|
||||
value = value.substring(0, value.lastIndexOf("."));
|
||||
}
|
||||
|
||||
const parts = value.split(".");
|
||||
if (parts[1] && parts[1].length > 2) {
|
||||
value = parts[0] + "." + parts[1].slice(0, 2);
|
||||
}
|
||||
|
||||
$(this).val(value);
|
||||
});
|
||||
});
|
||||
isChkd_Dup = false;
|
||||
|
||||
@@ -481,6 +500,7 @@
|
||||
regForm.find("#joinGuidanceWords").val(fn_get_editor_data('#joinGuidanceWords'));
|
||||
regForm.find("#joinBnef").val(fn_get_editor_data('#joinBnef'));
|
||||
regForm.find("#joinComptWords").val(fn_get_editor_data('#joinComptWords'));
|
||||
regForm.find("#subsvcGuidanceWords").val(fn_get_editor_data('#subsvcGuidanceWords'));
|
||||
let params = regForm.serialize();
|
||||
|
||||
if (isChkd_Dup) {
|
||||
@@ -1511,6 +1531,26 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>환율(살때) 일본 1円(엔)기준</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right number" name="buyRate" id="buyRate" title="1엔 환율(살때)">
|
||||
<span class="input-unit-text">원</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<th>환율(팔때) 일본 1円(엔)기준</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right number" name="sellRate" id="sellRate" title="1엔 환율(팔때)">
|
||||
<span class="input-unit-text">원</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1956,7 +1996,17 @@
|
||||
<td colspan="3">
|
||||
<div class="td-inner">
|
||||
<textarea class="textarea" id="joinComptWords" name="joinComptWords"
|
||||
title="회원가입 주요혜택" rows="2">
|
||||
title="회원가입 완료문구" rows="2">
|
||||
</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>구독서비스 안내문구</th>
|
||||
<td colspan="3">
|
||||
<div class="td-inner">
|
||||
<textarea class="textarea" id="subsvcGuidanceWords" name="subsvcGuidanceWords"
|
||||
title="구독서비스 안내문구" rows="2">
|
||||
</textarea>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
fn_create_ckeditor('#joinGuidanceWords', sopmalCd);
|
||||
fn_create_ckeditor('#joinBnef', sopmalCd);
|
||||
fn_create_ckeditor('#joinComptWords', sopmalCd);
|
||||
fn_create_ckeditor('#subsvcGuidanceWords', sopmalCd);
|
||||
|
||||
// fn_get_join_info();
|
||||
|
||||
@@ -195,6 +196,24 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 환율 입력 (숫자와 소숫점. 2자리수까지 허용)
|
||||
$("#buyRate, #sellRate").on("input", function () {
|
||||
let value = $(this).val();
|
||||
value = value.replace(/[^0-9.]/g, "");
|
||||
|
||||
const dotCount = (value.match(/\./g) || []).length;
|
||||
if (dotCount > 1) {
|
||||
value = value.substring(0, value.lastIndexOf("."));
|
||||
}
|
||||
|
||||
const parts = value.split(".");
|
||||
if (parts[1] && parts[1].length > 2) {
|
||||
value = parts[0] + "." + parts[1].slice(0, 2);
|
||||
}
|
||||
|
||||
$(this).val(value);
|
||||
});
|
||||
});
|
||||
|
||||
const fn_get_join_info = function() {
|
||||
@@ -210,6 +229,7 @@
|
||||
fn_set_editor_data("#joinGuidanceWords", resultJson.joinInfo.joinGuidanceWords);
|
||||
fn_set_editor_data("#joinBnef", resultJson.joinInfo.joinBnef);
|
||||
fn_set_editor_data("#joinComptWords", resultJson.joinInfo.joinComptWords);
|
||||
fn_set_editor_data("#subsvcGuidanceWords", resultJson.joinInfo.subsvcGuidanceWords);
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -679,6 +699,7 @@
|
||||
updForm.find("#joinGuidanceWords").val(fn_get_editor_data('#joinGuidanceWords'));
|
||||
updForm.find("#joinBnef").val(fn_get_editor_data('#joinBnef'));
|
||||
updForm.find("#joinComptWords").val(fn_get_editor_data('#joinComptWords'));
|
||||
updForm.find("#subsvcGuidanceWords").val(fn_get_editor_data('#subsvcGuidanceWords'));
|
||||
let params = updForm.serialize();
|
||||
|
||||
if (fn_check_selectStplatBox() > 0) {
|
||||
@@ -1649,7 +1670,26 @@
|
||||
<input type="text" class="input-text sm right number" name="ordrAtmcPurchsDcsnPd" id="ordrAt" title="자동 구매 확정기간" maxlength="3" value="${resultMap.sopmalDetailList[0].ordrAtmcPurchsDcsnPd }" ${ordrAtmcPurchsDcsnPdDisabled }>
|
||||
<span class="input-unit-text">일</span>
|
||||
</div>
|
||||
<span class="gray-7">(출고 완료, 배송중, 배송 완료 후 해당기간 경과 시 자동 구매 확정)</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>환율(살때) 일본 1円(엔)기준</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right" name="buyRate" id="buyRate" title="1엔 환율(살때)" value="${resultMap.sopmalDetailList[0].buyRate }">
|
||||
<span class="input-unit-text">원</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<th>환율(팔때) 일본 1円(엔)기준</th>
|
||||
<td>
|
||||
<div class="td-inner">
|
||||
<div class="input-container">
|
||||
<input type="text" class="input-text sm right" name="sellRate" id="sellRate" title="1엔 환율(팔때)" value="${resultMap.sopmalDetailList[0].sellRate }">
|
||||
<span class="input-unit-text">원</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -2171,12 +2211,23 @@
|
||||
<td colspan="3">
|
||||
<div class="td-inner">
|
||||
<textarea class="textarea" id="joinComptWords" name="joinComptWords"
|
||||
title="회원가입 주요혜택" rows="2">
|
||||
title="회원가입 완료문구" rows="2">
|
||||
${resultMap.sopmalDetailList[0].joinComptWords }
|
||||
</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>구독서비스 안내문구</th>
|
||||
<td colspan="3">
|
||||
<div class="td-inner">
|
||||
<textarea class="textarea" id="subsvcGuidanceWords" name="subsvcGuidanceWords"
|
||||
title="구독서비스 안내문구" rows="2">
|
||||
${resultMap.sopmalDetailList[0].subsvcGuidanceWords }
|
||||
</textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user