|
|
@@ -372,7 +372,12 @@ if(image.length>0){
|
|
|
html += ' <div class="swiper-wrapper">';
|
|
|
for (var i = 0; i < image.length; i++) {
|
|
|
html += ' <div class="swiper-slide">';
|
|
|
- html += ' <img alt="" src="'+ imgUrl + image[i].itemVal +'">';
|
|
|
+ if (image[i].linkOpenGb == 'M') {
|
|
|
+ html += ' <a href="http://'+image[i].linkUrl+'" target="_self">><img alt="" src="'+ imgUrl + image[i].itemVal +'"></a>';
|
|
|
+ }else{
|
|
|
+ html += ' <a href="http://'+image[i].linkUrl+'" target="_blank">><img alt="" src="'+ imgUrl + image[i].itemVal +'"></a>';
|
|
|
+ }
|
|
|
+
|
|
|
html += ' </div>';
|
|
|
}
|
|
|
html += ' </div>';
|
|
|
@@ -404,7 +409,13 @@ if(goods1.length>0){
|
|
|
html += ' <div>';
|
|
|
html += ' <h4>';
|
|
|
if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
|
|
|
- html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ console.log("template[i].linkOpenGb"+ template[i].linkOpenGb);
|
|
|
+ if (template[i].linkOpenGb == 'M') { //본창
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }else{
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
html += ' <a href="javascript:void(0)">'+template[i].title+'</a>';
|
|
|
}
|
|
|
@@ -469,7 +480,11 @@ if(goods2.length>0){
|
|
|
html += ' <div>';
|
|
|
html += ' <h4>';
|
|
|
if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
|
|
|
- html+=' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+'<i class="ico_arrow"></i></a>';
|
|
|
+ if (template[i].linkOpenGb == 'M') { //본창
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }else{
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }
|
|
|
}else{
|
|
|
html+=' <a href="javascript:void(0)">'+template[i].title+'</a>';
|
|
|
}
|
|
|
@@ -536,8 +551,13 @@ if(goods4.length>0){
|
|
|
html += '<div class="cont_head">';
|
|
|
html += '<div>';
|
|
|
html += ' <h4>';
|
|
|
+ console.log(template[i].linkOpenGb );
|
|
|
if (template[i].linkUrl != null && template[i].linkUrl != '') { /* 링크 변경 예정 */
|
|
|
- html+=' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ if (template[i].linkOpenGb == "M") { //본창
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_self">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }else{
|
|
|
+ html += ' <a href="http://'+template[i].linkUrl+'" target="_blank">'+template[i].title+' <i class="ico_arrow"></i></a>';
|
|
|
+ }
|
|
|
}else{
|
|
|
html+=' <a href="javascript:void(0)">'+template[i].title+'</a>';
|
|
|
}
|