Prechádzať zdrojové kódy

카드혜택 로직 변경

eskim 5 rokov pred
rodič
commit
647a124bd4

+ 5 - 6
src/main/webapp/WEB-INF/views/mob/goods/CardPrmtFormMob.html

@@ -21,8 +21,8 @@
 		</div>
 		<div class="modal-body" th:if="${cardInfoList != null and !cardInfoList.empty}">
 			<div class="pop_cont">
-				<div class="benefit_blk" th:with="selection=${cardInfoList.?[prmtGb == 'A']}">
-					<th:block th:if="${selection.size() > 0}">
+				<th:block  th:with="selection=${cardInfoList.?[prmtGb == 'A']}">
+				<div class="benefit_blk" th:if="${selection.size() > 0}">
 					<h6>할인혜택</h6>
 					<div class="tbl type1" >
 						<table >
@@ -50,10 +50,9 @@
 							</tbody>
 						</table>
 					</div>
-					</th:block>
 				</div>
-				<div class="benefit_blk"  th:with="selection=${cardInfoList.?[prmtGb == 'B']}">
-					<th:block th:if="${selection.size() > 0}">
+				<th:block th:with="selection=${cardInfoList.?[prmtGb == 'B']}">
+				<div class="benefit_blk" th:if="${selection.size() > 0}">
 					<h6>무이자 할부</h6>
 					<div class="tbl type1">
 						<table>
@@ -74,8 +73,8 @@
 							</tbody>
 						</table>
 					</div>
-					</th:block>
 				</div>
+				</th:block>
 				<th:block th:each="cardInfo, status : ${cardInfoList}" >
 				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">
 					<th:block >

+ 7 - 5
src/main/webapp/WEB-INF/views/web/goods/CardPrmtFormWeb.html

@@ -21,8 +21,9 @@
 		</div>
 		<div class="modal-body" th:if="${cardInfoList != null and !cardInfoList.empty}">
 			<div class="pop_cont">
-				<div class="benefit_blk"  th:with="selection=${cardInfoList.?[prmtGb == 'A']}">
-					<th:block th:if="${selection.size() > 0}">
+				<th:block  th:with="selection=${cardInfoList.?[prmtGb == 'A']}">
+				<div class="benefit_blk"  th:if="${selection.size() > 0}">
+					<th:block >
 					<h6>할인혜택</h6>
 					<div class="tbl type1">
 						<table>
@@ -56,8 +57,9 @@
 					</div>
 					</th:block>
 				</div>
-				<div class="benefit_blk"  th:with="selection=${cardInfoList.?[prmtGb == 'B']}">
-					<th:block th:if="${selection.size() > 0}">
+				</th:block>
+				<th:block th:with="selection=${cardInfoList.?[prmtGb == 'B']}">
+				<div class="benefit_blk" th:if="${selection.size() > 0}" >
 					<h6>무이자 할부</h6>
 					<div class="tbl type1">
 						<table>
@@ -78,8 +80,8 @@
 							</tbody>
 						</table>
 					</div>
-					</th:block>
 				</div>
+				</th:block>
 				<th:block th:each="cardInfo, status : ${cardInfoList}" >
 				<div class="benefit_blk"  th:if="${cardInfo.prmtGb == 'B' and not #strings.isEmpty(cardInfo.note) and cardInfo.rownum ==  1}">
 					<th:block >