Prechádzať zdrojové kódy

핫딜, 코너상품 수정

sowon4187 5 rokov pred
rodič
commit
eb0d7041c4

+ 7 - 2
src/main/java/com/style24/front/biz/web/TsfPlanningController.java

@@ -159,7 +159,9 @@ public class TsfPlanningController extends TsfBaseController {
 		plan.setCustGb(TsfSession.getCustGb());
 		review.setFrontGb(TsfSession.getFrontGb());
 		review.setCustGb(TsfSession.getCustGb());
-		plan.setCustNo(TsfSession.isLogin() ? TsfSession.getInfo().getCustNo() : 0);
+		if (TsfSession.isLogin()) {
+			plan.setCustNo(TsfSession.getInfo().getCustNo());
+		}
 
 		// 기본 set
 		plan.setExceptPlanSq(plan.getPlanSq());
@@ -212,7 +214,6 @@ public class TsfPlanningController extends TsfBaseController {
 		mav.addObject("planCornerList", planningService.getPlanCornerList(plan));
 		// 코너 상품
 		mav.addObject("planCornerGoodsList", planningService.getPlanningCornerGoodsList(plan));
-		//mav.addObject("planCornerListLength", planningService.getPlanCornerList(plan).size());
 
 		// Popup Parameter
 		mav.addObject("preview", plan.getPreview());
@@ -242,6 +243,9 @@ public class TsfPlanningController extends TsfBaseController {
 			mav.setViewName(super.getDeviceViewName("planning/PlanningEventAttendForm"));
 			return mav;
 		}
+//		else if(planGb.equals("S")) {
+//			mav.setViewName("redirect:/planning/shot/delivery/guide/form?planSq="+plan.getPlanSq());
+//		}
 
 		// 브랜드그룹 정보 : 브랜드메인 링크에 설정된 기획전으로 들어올때 GNB 변경때문에 사용
 		mav.addObject("brandGroupInfo", displayService.getGnbBrandGroup(plan.getBrandGroupNo()));
@@ -503,6 +507,7 @@ public class TsfPlanningController extends TsfBaseController {
 		Integer custNo = null;
 		if (TsfSession.isLogin()) {
 			custNo = TsfSession.getInfo().getCustNo();
+			plan.setCustNo(custNo);
 			// 고객정보 조회
 			Customer customer = new Customer();
 			customer.setSiteCd(TscConstants.Site.STYLE24.value());

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

@@ -382,7 +382,6 @@
 let reviewList = [[${reviewInfo}]];
 let reviewStat = [[${reviewStat}]];
 let reviewAttach = [[${alreadyReviewAttach}]];
-console.log(reviewAttach);
 let reviewUrl =[[${@environment.getProperty('upload.image.view')}]];
 // 별점 class="on"
 var $starEls = $('#star button#starBtn');
@@ -600,6 +599,7 @@ var fnChooseFile = function(obj) {
 		}else if((new RegExp("mp4", "i")).test(file.name)){
 			setTimeout(function(){
 				$(".pics").children().eq(0).append("<input type='hidden' name='kufKeyArr' id='kufKey"+(picLength+1)+"'>");
+				$(".pics").children().eq(0).append("<input type='hidden' name='kmcKeyArr' id='kmcKey"+(picLength+1)+"'>");
 				gagaKollus.upload('Review', file, $('#kufKey'+(picLength+1)));
 			}, 2000);
 		}else{

+ 1 - 1
src/main/webapp/WEB-INF/views/web/planning/PlanningDetailFormWeb.html

@@ -269,7 +269,7 @@ if(planCornerList.length>0){
 			html += '                 <div class="item_prod">';
 			html += '                     <div class="item_state">';
 			html += '		<button type="button" class="itemLike';
-			if(item.likeIt == 'likeit'){
+			if(item2.likeIt == 'likeit'){
 				html += ' likeit';
 			}
 			html += ' "';

+ 4 - 5
src/main/webapp/WEB-INF/views/web/planning/PlanningShotGuideFormWeb.html

@@ -154,7 +154,6 @@ if(planCornerList.length>0){
 	$.each(planCornerList, function(idx, item)  {
 		html += '             <li><a href="#brand'+idx+'">'+item.cornerNm+'</a></li>';
 	})
-	
 	html += '         </ul>';
 	html += '     </div>';
 	html += '</div>';
@@ -169,11 +168,11 @@ if(planCornerList.length>0){
 		$.each(planCornerGoodsList, function(idx2, item2)  {
 			html += '                 <div class="item_prod">';
 			html += '                     <div class="item_state">';
-			html += '		<button type="button" class="itemLike';
-			if(item.likeIt == 'likeit'){
-				html += ' likeit';
+			if(item2.likeIt === 'likeit'){
+			html += '		<button type="button" class="itemLike likeit active"';
+			}else{
+				html += '		<button type="button" class="itemLike"';
 			}
-			html += ' "';
 			html += ' onClick="cfnPutWishList(this);" goodsCd=\''+item2.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
 			
 			html += '                         <a href="javascript:void(0);" onclick="cfnGoToGoodsDetail(\'' + item2.goodsCd + '\')" class="itemLink">';

+ 8 - 9
src/main/webapp/WEB-INF/views/web/social/SocialMainFormWeb.html

@@ -97,30 +97,26 @@ let fnGetSocialList = function(result) {
 	var html = '';
 
 	$.each(result.dataList, function(idx, item) {
+		
+		html += ' <div class="item_prod"class="item_prod">';
 		if (item.stockQtySum == 0) {
-			html += ' <div class="item_prod"class="item_prod sold_out">';
+			html += '    <div class="item_state sold_out"> ';
 		}else{
-			html += ' <div class="item_prod"class="item_prod">';
+			html += '    <div class="item_state"> ';
 		}
-		
-		html += '    <div class="item_state"> ';
 		if (item.likeIt == 'likeit') {
 			html += '        <button type="button" class="itemLike active" onclick="cfnPutWishList(this);" onClick="cfnPutWishList(this);" goodsCd=\''+item.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
 		}else{
 			html += '        <button type="button" class="itemLike" onclick="cfnPutWishList(this);" onClick="cfnPutWishList(this);" goodsCd=\''+item.goodsCd+'\', ithrCd=\'\', contentsLoc=\'\', planDtlSq=\'\'>관심상품 추가</button>';
 		}
 		
-		html += '        <a href="javascript:void(0);" class="itemLink" th:onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\')" >';
+		html += '        <a href="javascript:void(0);" class="itemLink" onclick="cfnGoToGoodsDetail(\''+item.goodsCd+'\')" >';
 		html += '            <div class="itemPic">';
 		html += '                <img alt="BLUE-a" class=" vLHTC pd_img" src="'+ goodsView +'/'+item.sysImgNm +'">';
 		html += '            </div>';
 		html += '            <div class="itemSpecialPrice"><span>특가</span></div>';
 		html += '            <p class="itemBrand">'+item.brandGroupNm+'</p>';
 		html += '            <div class="itemName">'+item.goodsNm+'</div>';
-		if(item.goodsTnm != null){
-			html += '           <div class="itemComment">'+item.goodsTnm+'</div>';
-		}
-
 		html += '            <p class="itemPrice">';
 		html += item.currPrice.addComma() +'원';
 		if (item.currPrice != item.listPrice) {
@@ -130,6 +126,9 @@ let fnGetSocialList = function(result) {
 			html += '                                 <span class=" itemPercent">'+item.dcRate.addComma()+'%</span>';
 		}
 		html += '            </p>';
+		if(item.goodsTnm != null){
+			html += '           <div class="itemComment">'+item.goodsTnm+'</div>';
+		}
 		html += '        </a>';
 		html += '        	 <div class="shopBagBtn">';
 		html += '                <button type="button" class="btn btn_defalt" onclick="socialAddCart(this)" goodsCd=\''+item.goodsCd+'\', minOrdQty=\''+item.minOrdQty+'\', goodsType=\''+item.goodsType+'\', optCd=\''+item.optCd+'\'">';