...
|
...
|
@@ -31,9 +31,11 @@ exports.init = function() { |
|
|
.addClass('hide')
|
|
|
.eq(index)
|
|
|
.removeClass('hide');
|
|
|
|
|
|
//scroll to top
|
|
|
$(document).scrollTop(thisContainer.offset().top);
|
|
|
|
|
|
//scroll to top when container is fixed
|
|
|
if (thisContainer.find('.thumb-container').hasClass('fixed')) {
|
|
|
$(document).scrollTop(thisContainer.offset().top);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//默认选中第一个
|
...
|
...
|
|