|
|
@@ -171,8 +171,8 @@ let shotBrandGoodsList = [[${shotBrandGoodsList}]];
|
|
|
if(shotBrandList.length>0){
|
|
|
var html = '';
|
|
|
$.each(shotBrandList, function(idx, item) {
|
|
|
- html += '<div class="inner" id="type'+idx+'">';
|
|
|
- html += ' <div class="dp_listItems_wrap type1">';
|
|
|
+ html += '<div class="inner">';
|
|
|
+ html += ' <div class="dp_listItems_wrap type'+(idx+1)+'">';
|
|
|
html += ' <h2 class="dp_subtitle">'+item.brandNm+'</h2>';
|
|
|
html += ' <div class="itemsGrp">';
|
|
|
$.each(shotBrandGoodsList, function(idx2, item2) {
|
|
|
@@ -324,12 +324,12 @@ var fnOpenDaumAddr = function() {
|
|
|
}
|
|
|
|
|
|
var fnCornerClick = function (result1,result2) {
|
|
|
- var num = result1 - 1;
|
|
|
+ var num = result1;
|
|
|
$("#filter").text(result2);
|
|
|
//var offset = $('.dp_listItems_cont.type'+(result1)).offset(); //선택한 태그의 위치를 반환
|
|
|
- var offset = $('#type'+num).offset(); //선택한 태그의 위치를 반환
|
|
|
+ var offset = $('.dp_listItems_wrap.type'+result1).offset(); //선택한 태그의 위치를 반환
|
|
|
//animate()메서드를 이용해서 선택한 태그의 스크롤 위치를 지정해서 0.4초 동안 부드럽게 해당 위치로 이동함
|
|
|
- $('html').animate({scrollTop : offset.top}, 400);
|
|
|
+ $('html').animate({scrollTop : offset.top - 60}, 400);
|
|
|
|
|
|
}
|
|
|
|