Przeglądaj źródła

Merge branch 'stage_tsit' into jmh

jmh 4 lat temu
rodzic
commit
b11785d87c

+ 1 - 0
src/main/webapp/WEB-INF/views/mob/common/fragments/ScriptsMob.html

@@ -20,5 +20,6 @@
 <script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.common.js'}" src="/ux/plugins/gaga/gaga.common.js"></script>
 <script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.validation.js'}" src="/ux/plugins/gaga/gaga.validation.js"></script>
 <script type="text/javascript" th:src="@{'/ux/plugins/vg-controller-client.latest.min.js'}" src="/ux/plugins/vg-controller-client.latest.min.js"></script>
+<script type="text/javascript" th:src="@{'/biz/comLib.js'}" src="/biz/comLib.js"></script>
 </th:block>
 </html>

+ 1 - 0
src/main/webapp/WEB-INF/views/web/common/fragments/ScriptsWeb.html

@@ -20,5 +20,6 @@
 <script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.common.js'}" src="/ux/plugins/gaga/gaga.common.js"></script>
 <script type="text/javascript" th:src="@{'/ux/plugins/gaga/gaga.validation.js'}" src="/ux/plugins/gaga/gaga.validation.js"></script>
 <script type="text/javascript" th:src="@{'/ux/plugins/vg-controller-client.latest.min.js'}" src="/ux/plugins/vg-controller-client.latest.min.js"></script>
+<script type="text/javascript" th:src="@{'/biz/comLib.js'}" src="/biz/comLib.js"></script>
 </th:block>
 </html>

+ 17 - 0
src/main/webapp/biz/comLib.js

@@ -0,0 +1,17 @@
+var comLib = {};
+
+/*
+ * 기획전 상품쿠폰 다운로드
+ * 로그인을 체크하고 로그인 되어 있을 경우 해당 쿠폰을 발급합니다.
+ * 생성일 : 2021년 09월 07일 화요일
+ * 생성자 : lmc
+ */
+comLib.fnPlanCouponDown = function(cpnId, fnCallBack){
+
+	if (!cfCheckLogin()) {
+		cfnGoToPage(_PAGE_LOGIN);
+		return false;
+	}
+
+	gagajf.ajaxJsonSubmit(_PAGE_PLANNING_CPN_DOWNLOAD, JSON.stringify({cpnId: cpnId}), fnCallBack);
+}