Просмотр исходного кода

상품상세 배송안내 문구관련 수정

eskim 5 лет назад
Родитель
Сommit
7c17616582

+ 3 - 1
src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailDeliveryFormMob.html

@@ -93,7 +93,9 @@
 			</div>
 			<div class="pop_cont" th:if="${deliveryInfo != null and deliveryInfo.delvFeeCd != null and not #strings.isEmpty(deliveryInfo.note)}">
 				<h3>기타사항</h3>
-				<th:block th:if="${not #strings.isEmpty(deliveryInfo.note)}" th:utext="${#strings.unescapeJava(#strings.escapeJava(deliveryInfo.note))}"></th:block>
+				<th:block th:each="note : ${#strings.arraySplit(#strings.replace(#strings.replace(#strings.escapeJava(deliveryInfo.note),'\r',''),'\n','|'),'|')}">
+				<p class="dot" th:text="${note}"></p>
+				</th:block>
 			</div>
 		</div>
 	</div>

+ 2 - 1
src/main/webapp/WEB-INF/views/web/goods/GoodsDetailDeliveryFormWeb.html

@@ -143,7 +143,8 @@
 						<th>
 							기타사항
 						</th>
-						<td  th:if="${not #strings.isEmpty(deliveryInfo.note)}" th:utext="${#strings.unescapeJava(#strings.escapeJava(deliveryInfo.note))}">
+						<td  th:if="${not #strings.isEmpty(deliveryInfo.note)}" 
+							th:utext="${#strings.unescapeJava(#strings.replace(#strings.escapeJava(deliveryInfo.note),'\n' ,'&lt;br /&gt;'))}">
 							상품에 따라 반송주소/방법이 각각 다를 수 있습니다.<br>
 						</td>
 					</tr>