فهرست منبع

asis html 이미지 경로 수정

eskim 5 سال پیش
والد
کامیت
4537373104

+ 15 - 0
src/main/webapp/WEB-INF/views/mob/goods/GoodsDealDescFormMob.html

@@ -292,4 +292,19 @@
 		<!-- //상품필수정보 노출 -->
 	</div>
 </div>
+<script th:inline="javascript">
+/*<![CDATA[*/
+
+// 상품상세 asis html  이지미 경로 수정
+   $(document).ready( function() {
+   	 $(".pd_descrp_pop .cont_body").find('img').each(function() {
+			let tmpImgSrc = $(this).attr('src');
+			if (tmpImgSrc.indexOf('Upload') == 1 ){  // /Upload
+				$(this).attr('src' , tmpImgSrc.replace('/Upload', _imgUrl+"/Local"));
+			}
+			
+		});
+	});
+/*]]>*/
+</script>	
 </html>

+ 11 - 0
src/main/webapp/WEB-INF/views/mob/goods/GoodsDetailFormMob.html

@@ -2079,6 +2079,17 @@
 		fnEpCouponDown([[${afLinkCd}]], [[${params.goodsCd}]], 1);
 	});
 	
+	 // 상품상세 asis html  이지미 경로 수정
+    window.onload = function(){
+   	 $(".pd_descrp .cont_body").find('img').each(function() {
+			let tmpImgSrc = $(this).attr('src');
+			if (tmpImgSrc.indexOf('Upload') == 1 ){  // /Upload
+				$(this).attr('src' , tmpImgSrc.replace('/Upload', _imgUrl+"/Local"));
+			}
+			
+		});
+	}
+	 
 	 $('.Purchase_pop .btPop_close').click(function(){
 			$('html, body').css({'overflow': 'visible', 'height': '100%'});
 			$('.container').removeClass('btPop_open');

+ 16 - 0
src/main/webapp/WEB-INF/views/web/goods/GoodsDealDescFormWeb.html

@@ -247,4 +247,20 @@
 		<span>상세정보 더보기</span>
 	</button>
 </div>
+
+<script th:inline="javascript">
+/*<![CDATA[*/
+
+// 상품상세 asis html  이지미 경로 수정
+   $(document).ready( function() {
+   	 $(".pd_descrp_pop .cont_body").find('img').each(function() {
+			let tmpImgSrc = $(this).attr('src');
+			if (tmpImgSrc.indexOf('Upload') == 1 ){  // /Upload
+				$(this).attr('src' , tmpImgSrc.replace('/Upload', _imgUrl+"/Local"));
+			}
+			
+		});
+	});
+/*]]>*/
+</script>	
 </html>

+ 17 - 0
src/main/webapp/WEB-INF/views/web/goods/GoodsDetailFormWeb.html

@@ -1469,6 +1469,8 @@
 		
 		$('.timer_box').css('display', 'none');
 		
+		
+		
 		//공유 버튼 토글 
 		$("button[data-name=openShare]").on("click", function(){
 			$(this).toggleClass("on").next(".shareWrap").toggleClass("on");
@@ -1746,6 +1748,8 @@
 		
 		// ep 쿠폰확인
 		fnEpCouponDown([[${afLinkCd}]], [[${params.goodsCd}]], 1);
+		
+		
 	});
 	
 	// 상품평 레이어 호출후 콜백에서 호출하므로 여기에 있어야함
@@ -1805,6 +1809,19 @@
              // 이 부분에 적절한 fail-over 코드를 추가하여 주십시요.
          }
      }
+     
+     // 상품상세 asis html  이지미 경로 수정
+     window.onload = function(){
+    	 $(".pd_descrp .cont_body").find('img').each(function() {
+ 			let tmpImgSrc = $(this).attr('src');
+ 			if (tmpImgSrc.indexOf('Upload') == 1 ){  // /Upload
+ 				$(this).attr('src' , tmpImgSrc.replace('/Upload', _imgUrl+"/Local"));
+ 			}
+ 			
+ 		});
+ 	}
+     
+     
 /*]]>*/
 </script>