|
|
@@ -316,15 +316,13 @@
|
|
|
//가격 슬라이드
|
|
|
//var custom_values = ['9,000원', '230,000원', '487,000원', '700,000원', '1,360,000원', '1,799,000원'];
|
|
|
if(!gagajf.isNull(filterPriceList)){
|
|
|
- console.log('111');
|
|
|
$.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
custom_values[priceIdx] = priceItem.filterNm;
|
|
|
});
|
|
|
|
|
|
let my_from = custom_values.indexOf(custom_values[0]);
|
|
|
let my_to = custom_values.indexOf(custom_values[5]);
|
|
|
- console.log('1>>priceFrom>>'+$("#filterData").find("input:hidden[name=priceFrom]").val());
|
|
|
- console.log('1>>priceTo>>'+$("#filterData").find("input:hidden[name=priceTo]").val());
|
|
|
+
|
|
|
if(gagajf.isNull($("#filterForm input:hidden[name=priceFrom]").val())){
|
|
|
my_from = $("#filterForm input:hidden[name=priceFrom]").val();
|
|
|
}
|
|
|
@@ -424,8 +422,6 @@
|
|
|
$("#searchGoodsForm input:hidden[name=priceTo]").remove();
|
|
|
let min = data.from;
|
|
|
let max = data.to;
|
|
|
- console.log('Price from>>'+custom_values[min]);
|
|
|
- console.log('Price to>>'+custom_values[max]);
|
|
|
$("#price_input_from").val(custom_values[0]);
|
|
|
$("#price_input_to").val(custom_values[5]);
|
|
|
|
|
|
@@ -931,7 +927,6 @@
|
|
|
|
|
|
// 사파리 - event.persisted || 크롬 - window.performance.navigation.type 이 1이면 새로고침, 2면 페이지 이동을 통한 캐쉬페이징
|
|
|
$(window).on("pageshow", function(event) {
|
|
|
- console.log('test1');
|
|
|
$('#filterForm input[name=brandGroup]:checked').each(function(){
|
|
|
let filterGb = 'brandGroup';
|
|
|
$(this).attr('onclick','filterSel(this,\''+filterGb+'\',\'on\');');
|
|
|
@@ -943,32 +938,6 @@
|
|
|
$(this).attr('onclick','filterSel(this,\''+filterGb+'\',\'on\',\''+rowNum+'\');');
|
|
|
$(this).parent().addClass("active");
|
|
|
});
|
|
|
- // $('#filterForm input[name=price]').each(function(){
|
|
|
- // console.log('priceFrom>>'+ $("#searchGoodsForm input:hidden[name=priceFrom]").val() );
|
|
|
- // console.log('priceTo>>'+ $("#searchGoodsForm input:hidden[name=priceTo]").val() );
|
|
|
- // // $(this).parent().addClass("active");
|
|
|
- // $("#priceSpan").remove();
|
|
|
- // $("#searchGoodsForm input:hidden[name=priceFrom]").remove();
|
|
|
- // $("#searchGoodsForm input:hidden[name=priceTo]").remove();
|
|
|
- // let min = $("#searchGoodsForm input:hidden[name=priceFrom]").val();
|
|
|
- // let max = $("#searchGoodsForm input:hidden[name=priceTo]").val();
|
|
|
- // $("#price_input_from").val(custom_values[0]);
|
|
|
- // $("#price_input_to").val(custom_values[5]);
|
|
|
- //
|
|
|
- // fnFilterSlider('price' , custom_values[min].addComma(), custom_values[max].addComma());
|
|
|
- // });
|
|
|
- // $('#filterForm input[name=range]:checked').each(function(){
|
|
|
- // console.log('eeeeeeeeeeeeeee');
|
|
|
- // $("#dcrateSpan").remove();
|
|
|
- // //$("#searchGoodsForm input:hidden[name=dcRateFrom]").remove();
|
|
|
- // //$("#searchGoodsForm input:hidden[name=dcRateTo]").remove();
|
|
|
- // let min = $("#searchGoodsForm input:hidden[name=dcRateFrom]").val();
|
|
|
- // let max = $("#searchGoodsForm input:hidden[name=dcRateTo]").val();
|
|
|
- // $("#price_input_from").val(0);
|
|
|
- // $("#price_input_to").val(100);
|
|
|
- //
|
|
|
- // fnFilterSlider('dcrate' , custom_values02[min].replace('%',''), custom_values02[max].replace('%',''));
|
|
|
- // });
|
|
|
$('#filterForm input[name=season]:checked').each(function(){
|
|
|
let filterGb = 'season';
|
|
|
$(this).attr('onclick','filterSel(this,\''+filterGb+'\',\'on\');');
|
|
|
@@ -1015,13 +984,11 @@
|
|
|
if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
|
|
|
var historyData = sessionStorage.getItem(document.location.href);
|
|
|
if(historyData!=null){
|
|
|
- console.log('historyData1111>>'+historyData);
|
|
|
+ console.log('historyData>>'+historyData);
|
|
|
historyData = JSON.parse(historyData);
|
|
|
}else{
|
|
|
- console.log('nnnnnnooooo');
|
|
|
historyData = {};
|
|
|
}
|
|
|
-
|
|
|
if(typeof historyData.sortingTypeNm!='undefined' && historyData.sortingTypeNm!=''){
|
|
|
$(".arrayWrap .btn").text(historyData.sortingTypeNm);
|
|
|
}
|
|
|
@@ -1037,41 +1004,27 @@
|
|
|
$("#totCntId").text(historyData.totalCount);
|
|
|
}
|
|
|
if(!gagajf.isNull(filterPriceList)){
|
|
|
- console.log('111');
|
|
|
- $.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
- custom_values[priceIdx] = priceItem.filterNm;
|
|
|
- });
|
|
|
-
|
|
|
- let my_from = custom_values.indexOf(custom_values[0]);
|
|
|
- let my_to = custom_values.indexOf(custom_values[5]);
|
|
|
- console.log('1>>priceFrom>>'+$("#filterData").find("input:hidden[name=priceFrom]").val());
|
|
|
- console.log('1>>priceTo>>'+$("#filterData").find("input:hidden[name=priceTo]").val());
|
|
|
- if(gagajf.isNull($("#filterData").find("input:hidden[name=priceFrom]").val())){
|
|
|
- my_from = $("#filterData").find("input:hidden[name=priceFrom]").val().addComma();
|
|
|
+ let min = 0;
|
|
|
+ let max = 5;
|
|
|
+ let priceFrom = '';
|
|
|
+ let priceTo = '';
|
|
|
+ if(!gagajf.isNull($("#searchGoodsForm").find("input:hidden[name=priceFrom]").val())){
|
|
|
+ priceFrom = $("#searchGoodsForm").find("input:hidden[name=priceFrom]").val();
|
|
|
}
|
|
|
- if(gagajf.isNull($("#filterData").find("input:hidden[name=priceTo]").val())){
|
|
|
- my_to = $("#filterData").find("input:hidden[name=priceTo]").val().addComma();
|
|
|
+ if(!gagajf.isNull($("#searchGoodsForm").find("input:hidden[name=priceTo]").val())){
|
|
|
+ priceTo = $("#searchGoodsForm").find("input:hidden[name=priceTo]").val();
|
|
|
}
|
|
|
- let minValue = custom_values[0];
|
|
|
- let maxValue = custom_values[5];
|
|
|
-
|
|
|
- $(".dp .js-range-slider01, .sch_result .js-range-slider01").ionRangeSlider({
|
|
|
- type: "double",
|
|
|
- min: minValue,
|
|
|
- max: maxValue,
|
|
|
- from: my_from,
|
|
|
- to: my_to,
|
|
|
- grid: true,
|
|
|
- skin: "round",
|
|
|
- postfix: "원",
|
|
|
- prettify_separator: ",",
|
|
|
- values: custom_values,
|
|
|
- min_interval: 1,
|
|
|
- // onChange : fnCheckPrice,
|
|
|
- onFinish : function(data){
|
|
|
- fnCheckPrice(data);
|
|
|
+ $.each(filterPriceList, function (priceIdx, priceItem){
|
|
|
+ custom_values[priceIdx] = priceItem.filterNm;
|
|
|
+ if(custom_values[priceIdx] == priceFrom){
|
|
|
+ min = priceIdx;
|
|
|
+ }
|
|
|
+ if(custom_values[priceIdx] == priceTo){
|
|
|
+ max = priceIdx;
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ fnFilterSliderMove(min,max);
|
|
|
}
|
|
|
if(typeof historyData.sortingType!='undefined' && historyData.sortingType!=''){
|
|
|
$("#sortSelect").val(historyData.sortingType);
|
|
|
@@ -1079,7 +1032,9 @@
|
|
|
fnSortList(this,historyData.sortingType);
|
|
|
}else{
|
|
|
$(".fillter").show();
|
|
|
+ fnCategoryGoodsInfiniteScrollInit();
|
|
|
fnGoodsListSearch();
|
|
|
+ fnImgOnoff();
|
|
|
}
|
|
|
}else{
|
|
|
fnCategoryGoodsInfiniteScrollInit();
|
|
|
@@ -1113,6 +1068,42 @@
|
|
|
}
|
|
|
|
|
|
/*]]>*/
|
|
|
+
|
|
|
+ // 동영상 플레이어
|
|
|
+ var iframe= document.createElement('iframe');
|
|
|
+ iframe.setAttribute('allowFullScreen', '');
|
|
|
+ iframe.setAttribute('allow', 'fullscreen');
|
|
|
+ var controller;
|
|
|
+ var player = document.getElementById('player');
|
|
|
+
|
|
|
+ player.onload = function() {
|
|
|
+ try {
|
|
|
+ var controller = new VgControllerClient({
|
|
|
+ target_window: document.getElementById('pdThumbVideo').contentWindow
|
|
|
+ // target_window: document.getElementsByClassName('pd_mov').contentWindow
|
|
|
+ });
|
|
|
+ var playMov;
|
|
|
+
|
|
|
+ controller.on('ready', function(){
|
|
|
+ //플레이어 준비 완료
|
|
|
+ controller.set_ratio('fill');
|
|
|
+ // contain : 비율에 맞게 채웁니다.
|
|
|
+ //fill : 화면에 꽉 차게 채웁니다.
|
|
|
+ //enlargement : 세로 높이를 꽉 차게 맞춥니다. 좌우로 스크롤이 가능합니다
|
|
|
+ controller.play();
|
|
|
+ });
|
|
|
+ controller.on('done', function(){
|
|
|
+ //플레이어 재생 완료
|
|
|
+ controller.play();
|
|
|
+ });
|
|
|
+
|
|
|
+ } catch(e) {
|
|
|
+ // Videogateweay Controller Library는 window.postMessage API를 이용하기 때문에
|
|
|
+ // 해당 기능을 지원하지 않는 웹브라우져에서는 동작하지 않습니다.
|
|
|
+ // 이 부분에 적절한 fail-over 코드를 추가하여 주십시요.
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
@@ -1128,6 +1119,7 @@
|
|
|
//$(noneSrc).attr("src", no_src);
|
|
|
}
|
|
|
</script>
|
|
|
+
|
|
|
|
|
|
</th:block>
|
|
|
|