Authored by 2586703@qq.com

详情页slider js

... ... @@ -372,7 +372,7 @@ define('yohood', function(require, exports) {
});
$(".brand-content").html(template.replace('{li}', html));
} else {
$(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand) ));
$(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand)));
}
}
});
... ... @@ -484,7 +484,7 @@ define('yohood', function(require, exports) {
detailSwiper.swipeNext();
});
$('.detail-slide-ctrl-tabs').slider();
$('.detail-slide-big-ctrl').on('click', 'a', function() {
$('.detail-slide-big-ctrl,.slide-shadow').on('click', 'a', function() {
$('.detail-slide-ctrl-tabs').slider('slideTo', detailSwiper.activeLoopIndex);
});
$('.detail-slide-ctrl-tabs').on('click', 'li', function() {
... ... @@ -599,7 +599,7 @@ define('yohood', function(require, exports) {
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) {
var playIcon = '';
var titleStyle = '';
var title = $('<p>'+title+'</p>').text();
var title = $('<p>' + title + '</p>').text();
var html = '<div class="layout-item clearfix">' +
'<div class="image-box">' +
'<a href="' + url + '" target="_blank" title="' + title + '">' +
... ...