Browse Source

상품 이미지사이즈 지정

eskim 5 năm trước cách đây
mục cha
commit
c572250dc1

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsDealForm.html

@@ -122,7 +122,7 @@
 		//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt="" onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},

+ 2 - 2
src/main/webapp/WEB-INF/views/goods/GoodsDetailForm.html

@@ -729,7 +729,7 @@
 		//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onclick="cfnOpenImagePreViewPopup(\'goodsImgView\', \''+ _goodsUrl+ "/" + params.value +'\')" onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt="" onclick="cfnOpenImagePreViewPopup(\'goodsImgView\', \''+ _goodsUrl+ "/" + params.value +'?RS=60\')" onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "상품타입", field: "goodsType" , width: 100, cellClass: 'text-center',
@@ -1101,7 +1101,7 @@
 				}
 			}
 
-			$('#goodsDetailForm').find('#goodsImgUrl').attr('src',  _goodsUrl + '/'+ result.sysImgNm);
+			$('#goodsDetailForm').find('#goodsImgUrl').attr('src',  _goodsUrl + '/'+ result.sysImgNm +'?RS=130');
 			$('#goodsDetailForm input[name=sysImgNm]').val(result.sysImgNm);
 			$("#goodsDetailForm input[type=checkbox][checked]").parent("label").addClass("checked");
 

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsDetailSizeStockForm.html

@@ -37,7 +37,7 @@
 			<td class="aC" th:text="${sizeStatus.count}">1</td>
 			<td class="aC"><label class="rdoBtn"><input type="radio" name="basicColor" th:value="${goodsColor.optCd1}"  th:checked="${goodsColor.mainColorYn =='Y'}" /></label></td>
 			<td class="aC">
-				<img width="60" th:src="${uploadGoodsUrl+'/'+goodsColor.sysImgNm}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/image/no.png'}+'\';'" alt="">
+				<img width="60" th:src="${uploadGoodsUrl+'/'+goodsColor.sysImgNm+'?RS=60'}" th:onerror="'this.src=\''+@{${uxImgUrl}+ '/image/no.png'}+'\';'" alt="">
 				<input type="hidden" name="sysImgNmOrg" id="sysImgNmOrg" th:value="${goodsColor.sysImgNm}"/>
 			</td>	
 			<td class="aC" ><th:block th:text="${goodsColor.optCd1}">BK</th:block> 

+ 2 - 2
src/main/webapp/WEB-INF/views/goods/GoodsItemkindForm.html

@@ -174,7 +174,7 @@
 <script type="text/javascript" src="/ux/plugins/gaga/gaga.paging.js?v=2019072202"></script>
 <script th:inline="javascript">
 /*<![CDATA[*/
-	var goodsImgParam = "?width=60&height=60";
+	var sessRoleCd = [[${sessionInfo.roleCd}]];
 	var columnDefs = [];
 	columnDefs = [
 		{width: 40, minWidth: 40, cellClass: 'text-right', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
@@ -183,7 +183,7 @@
 		},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt=""  onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt=""  onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "상품코드", field: "goodsCd", width: 140, cellClass: 'text-center'

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsPopupListForm.html

@@ -256,7 +256,7 @@
 		},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt="" onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "브랜드", field: "brandCd", width: 100, cellClass: 'text-center'},

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsReinboundInformForm.html

@@ -165,7 +165,7 @@
 		{headerName: "브랜드명", field: "brandEnm", width: 130, cellClass: 'text-center'},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt="" onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "상품코드", field: "goodsCd", width: 130, cellClass: 'text-center'},

+ 1 - 1
src/main/webapp/WEB-INF/views/goods/GoodsSetForm.html

@@ -129,7 +129,7 @@
 		//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
 		{headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
 			,cellRenderer: function(params) {
-				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.png\';"/>';
+				return '<img width="60" src="'+ _goodsUrl+ "/" + params.value +'?RS=60" alt="" onerror="this.src=\'/image/no.png\';"/>';
 			}
 		},
 		{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},