Przeglądaj źródła

베스트, 위시 리스트 목록에 찜하기관련 수정

tsit05 4 lat temu
rodzic
commit
0877c82901

+ 2 - 0
src/main/java/com/style24/front/biz/service/TsfDisplayService.java

@@ -805,6 +805,8 @@ public class TsfDisplayService {
 				Goods tempBest = new Goods();
 				tempBest.setBrandGroupNm(tempData.getProduct().getBrandName());
 				tempBest.setGoodsCd(tempData.getProduct().getItemId());
+				tempBest.setMainColorCd("");
+				tempBest.setGoodsNm(tempData.getProduct().getItemName());
 				tempBest.setGoodsFullNm(tempData.getProduct().getItemName());
 				tempBest.setListPrice((int) tempData.getProduct().getOriginalPrice());
 				tempBest.setCurrPrice((int) tempData.getProduct().getSalePrice());

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/display/BestMainFormMob.html

@@ -310,7 +310,7 @@
 				$.each(result.dataList, function (idx, item){
 					tag += '<div class="item_prod">\n';
 					tag += '	<div class="item_state">\n';
-					tag += '		<button type="button" class="itemLike" goodsCd=\''+item.goodsCd+'\' onclick="wishlistDelete(this)">관심상품 추가</button>\n';
+					tag += '		<button type="button" class="itemLike"  onclick="wishlistDelete(this)" goodsCd="'+item.goodsCd+'" goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
 					tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\', \''+item.colorCd+'\')">\n';
 					tag += '<div class="shape ';
 					if(idx==0){

+ 1 - 1
src/main/webapp/WEB-INF/views/mob/mypage/MypageWishListFormMob.html

@@ -54,7 +54,7 @@ var ajaxWishList = function () {
 						if (item.regDtMonth == month[i].regDt) {
 							html += '		<div class="item_prod">\n';
 							html += '			<div class="item_state">\n';
-							html += '				<button type="button" class="itemLike likeit" goodsCd=\''+item.goodsCd+'\' onclick="wishlistDelete(this)">관심상품 추가</button>\n';
+							html += '				<button type="button" class="itemLike likeit" goodsCd=\''+item.goodsCd+'\' goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN17_01" planDtlSq="" onclick="wishlistDelete(this)">관심상품 추가</button>\n';
 							html += '				<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\',\'\',\'IN17_01\')">\n';
 							html += '					<div class="itemPic">\n';
 							html += '						<img class="vLHTC pd_img"  src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '">\n';

+ 4 - 4
src/main/webapp/WEB-INF/views/web/display/BestMainFormWeb.html

@@ -192,8 +192,8 @@
 					html += '<div class="swiper-slide">\n';
 					html += '	<div class="item_prod">\n';
 					html += '		<div class="item_state">\n';
-					html += '		<button type="button" class="itemLike" onclick="wishlistDelete(this)">관심상품 추가</button>\n';
-					html += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\')">\n';
+					html += '		<button type="button" class="itemLike" onclick="cfnPutWishList(this)" goodsCd="'+item.itemId+'" goodsNm="'+ item.itemName+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
+					html += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.itemId+'\',\'\',\'IN10_01\')">\n';
 					html += '				<div class="itemPic">\n';
 					html += '					<img alt="" class="vLHTC pd_img" src="' + item.imageUrl + '">\n';
 					html += '				</div>\n';
@@ -239,8 +239,8 @@
 			$.each(result.dataList, function (idx, item){
 				tag += '<div class="item_prod">\n';
 				tag += '	<div class="item_state">\n';
-				tag += '		<button type="button" class="itemLike" goodsCd=\''+item.goodsCd+'\' onclick="wishlistDelete(this)">관심상품 추가</button>\n';
-				tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\', \''+item.colorCd+'\')">\n';
+				tag += '		<button type="button" class="itemLike" onclick="wishlistDelete(this)" goodsCd="'+item.goodsCd+'" goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN10_01" planDtlSq="">관심상품 추가</button>\n';
+				tag += '		<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\', \''+item.mainColorCd+'\',\'IN10_01\')">\n';
 				tag += '<div class="shape ';
 				if(idx==0){
 					tag += ' ranker';

+ 1 - 1
src/main/webapp/WEB-INF/views/web/mypage/MypageWishListFormWeb.html

@@ -75,7 +75,7 @@ var ajaxWishList = function () {
 						if (item.regDtMonth == month[i].regDt) {
 							html+='		<div class="item_prod">\n';
 							html+='			<div class="item_state">\n';
-							html+='				<button type="button" class="itemLike likeit" goodsCd=\''+item.goodsCd+'\' onclick="wishlistDelete(this)">관심상품 추가</button>\n';
+							html+='				<button type="button" class="itemLike likeit" goodsCd=\''+item.goodsCd+'\'  goodsNm="'+ item.goodsNm+'" ithrCd="" contentsLoc="IN17_01" planDtlSq="" onclick="wishlistDelete(this)">관심상품 추가</button>\n';
 							html+='				<a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\',\'\',\'IN17_01\')">\n';
 							html+='					<div class="itemPic">\n';
 							html+='						<img alt="" class=" vLHTC pd_img" src="' + _uploadGoodsUrl + '/' + item.sysImgNm + '?RS=550">\n';