Authored by tmq

右边banner

... ... @@ -165,21 +165,21 @@ define('yohood', function(require, exports) {
var cooperateSwiper,
bannerSwipe;
//大banner滑动
if ($('.slide-main').find('.box').size() > 1) {
bannerSwipe = swipe.init({
slideBox: '.slide-box',
prev: '.slide-prev',
next: '.slide-next',
auto: 3000,
continuous: true,
callback: function(index) {
if (index >= $('.dib a').size()) {
index = index - $('.dib a').size();
}
$('.dib a').removeClass('on').eq(index).addClass('on');
}
});
}
//if ($('.slide-main').find('.box').size() > 1) {
// bannerSwipe = swipe.init({
// slideBox: '.slide-box',
// prev: '.slide-prev',
// next: '.slide-next',
// auto: 3000,
// continuous: true,
// callback: function(index) {
// if (index >= $('.dib a').size()) {
// index = index - $('.dib a').size();
// }
// $('.dib a').removeClass('on').eq(index).addClass('on');
// }
// });
//}
$('.dib').on('click', 'a', function() {
bannerSwipe.slide($(this).index());
... ...
... ... @@ -145,7 +145,7 @@ EOL;
<?php endif;?>
<!-- 合作商等信息滑动条 end -->
<div id="right_banner_warp" class="right-banner-warp" num="<?php echo count($this->view->rightBanners);?>">
<div id="right_banner" class="right-banner-warp" num="<?php echo count($this->view->rightBanners);?>">
<div class="right-banner fluid-item layout-item tiled">
<?php
$banners = $this->view->rightBanners;
... ... @@ -181,9 +181,9 @@ EOL;
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
// seajs.use('yohood',function(yohood){
// yohood.index();
// })
seajs.use('yohood',function(yohood){
yohood.index();
})
seajs.use(['jquery', 'channel'], function($, channel) {
channel.index();
})
... ...