Explorar o código

增加图片跳转地址

xusonglin %!s(int64=4) %!d(string=hai) anos
pai
achega
6fba605827

+ 3 - 3
tianti-modules/tianti-module-gateway/src/main/webapp/static/template/banner.js

@@ -27,7 +27,7 @@
 
         html += '<div class="item ' + (i == 0 ? 'active' : '') + '">';
         var coverImageUrl = list[i].coverImageUrl;
-        html += '<a href="javascript:;"><img src="' + (coverImageUrl ? window.serverUploadPath + coverImageUrl : "") + '" /></a>';
+        html += '<a href="'+list[i].href+'"><img src="' + (coverImageUrl ? window.serverUploadPath + coverImageUrl : "") + '" /></a>';
         html += '</div>';
     }
 
@@ -70,7 +70,7 @@
             <a class="right carousel-control" href="#myCarousel" data-slide="next">
                 <span class="glyphicon glyphicon-chevron-right"></span>
             </a>
-        </div>    
+        </div>
 
 
     */
@@ -82,4 +82,4 @@
 
     return html;
 
-});
+});