1. 로하셀_퍼펙트 피니시 커버 비비_50ml 21호 2. 로하셀_퍼펙트 피니시 커버 비비_50ml 23호
'; // // $('#imageListWrapper').append(image); // // // // input files tag 추가 // $('#writeReviewModalWrap input:file').hide(); // // if ( $('#writeReviewModalWrap input:file').length < 4 ) { // // input files 추가 // addNewInputFile(); // } // }); /** * .x button click event */ // $(document).on('click', '.x', function(event) { // // event.preventDefault(); // // //target // var target = $(this).attr('value'); // // filename 취득 // var fileName = $(this).attr("name"); // // img 삭제 // $('div[name="' + fileName + '"]').remove(); // // input file 삭제 // $('input[name="' + fileName + '"]').remove(); // // var imageSize = Number($(this).attr('fileSize')); // sumImageSize -= imageSize; // // // 파일추가 // if( $('#writeReviewModalWrap input:file').length < maxImageCount && // $('input[name="filename"]').length === 0 ) { // addNewInputFile(); // } // }); // 리뷰 리스트 페이징 function getReviewPage(page) { var selectors = $(".select"); var selectorsIds = []; var skinType = 0; var orderType = $("#actOrder option:selected").val(); var selectedOrderIdx = $("select[name='actOrder'] option:selected").index(); var contentViewPickOption = $("#contentOrder option:selected").val(); var contentViewPickSelectedOrderIdx = $("select[name='contentOrder'] option:selected").index(); var apiUrl = '/ajax/reviews?productId=' + '520648' +'&skinType='+ skinType + '∨derType=' + orderType + '&page=' + page + '&contentViewPickOption=' + contentViewPickOption; selectors.each(function(index, item){ var option = $(item); if(option.val() !== '') { apiUrl += '&optionValue[' + index + ']=' + option.val(); selectorsIds.push({name: option.attr('name'), index: option.prop("selectedIndex")}); } }); $.ajax({ type: 'get', url: apiUrl, cache: false }).done(function(res) { scrollToDealDetail(); $('#dealReview').html(res); $('#actOrder option')[selectedOrderIdx].selected = true; $('#actOrder [value="'+ orderType+ '"]').selected = true; $('#contentOrder [value="'+ contentViewPickOption+ '"]').selected = true; $("#contentOrder option")[contentViewPickSelectedOrderIdx].selected = true; $.each(selectorsIds, function(index,item){ $('.select[name='+item.name+']').prop('selectedIndex', item.index); }); $('.reviewSelect').selectric(); //$(document.body).scrollTop($('#dealReview').offset().top); $('a[rel^=lightbox]').lightBox({ overlayBgColor: '#000', overlayOpacity: '0.5', keyToPrev: 'a', keyToNext: 's', keyToClose: 'd', maxWidth: 615, maxHeight: 370 }); }).fail(function(res) { return false; }); } // select box 타입별 리뷰 리스트 조회 function getReviewList (obj) { var selectors = $(".select"); var selectorsIds = []; var skinType = 0; var orderType = $("#actOrder option:selected").val(); var selectedOrderIdx = $("select[name='actOrder'] option:selected").index(); var contentViewPickOption = $("#contentOrder option:selected").val(); var contentViewPickSelectedOrderIdx = $("select[name='contentOrder'] option:selected").index(); var apiUrl = '/ajax/reviews?productId=' + '520648' + '&skinType='+ skinType + '∨derType=' + orderType + '&contentViewPickOption=' + contentViewPickOption; selectors.each(function(index, item){ var option = $(item); if(option.val() !== '') { apiUrl += '&optionValue[' + index + ']=' + option.val(); selectorsIds.push({name: option.attr('name'), index: option.prop("selectedIndex")}); } }); $.ajax({ type: 'get', url: apiUrl, cache: false }).done(function(res) { $('#dealReview').html(res); $('#actOrder option')[selectedOrderIdx].selected = true; $('#contentOrder [value="'+ contentViewPickOption+ '"]').selected = true; $("#contentOrder option")[contentViewPickSelectedOrderIdx].selected = true; $.each(selectorsIds, function(index,item){ $('.select[name='+item.name+']').prop('selectedIndex', item.index); }); $('.reviewSelect').selectric(); $('a[rel^=lightbox]').lightBox({ overlayBgColor: '#000', overlayOpacity: '0.5', keyToPrev: 'a', keyToNext: 's', keyToClose: 'd', maxWidth: 615, maxHeight: 370 }); return false; }).fail(function(res) { return false; }); }