Authored by unknown

banner 背景色 @review by 王成龙

... ... @@ -2,7 +2,7 @@
<div class="slide-wrapper">
<ul>
{{# list}}
<li style="backgroundColor:{{bgColor}}">
<li style="background:{{bgColor}}">
<a href="{{href}}" target= "_blank">
<img class="lazy" data-original="{{img}}" alt="">
</a>
... ...
... ... @@ -21,6 +21,10 @@ var $ = require('yoho.jquery'),
Slider.prototype = {
init: function() {
if (!this.$element) {
return;
}
if (this.len <= 1) {
lazyLoad(this.$element.find('img.lazy'));
return;
... ... @@ -126,7 +130,13 @@ var $ = require('yoho.jquery'),
this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus');
this.bigItem.eq(this.index).fadeIn().siblings().fadeOut();
this.bigItem.eq(this.index).show().stop().animate({
opacity: 1
}).siblings().stop().animate({
opacity: 0
}, function() {
$(this).hide();
});
},
_autoplay: function() {
var that = this;
... ...
... ... @@ -41,9 +41,8 @@ if (homePage === 'boys') {
$('.slide-container').slider({
pagination: '.thumb-pagination'
});
} else if (homePage === 'girls') {
$('.center-col').slider();
} else {
$('.center-col').slider();
$('.slide-container').slider();
}
... ...