index.php 1.67 KB
<?php $this->_extends('layout/default_layout');?>
<?php $this->_block('main');?>
 <div class="slide-main brand-slide">
     <div class="slide-box">
         <div class="slide-wrap clearfix">
       <?php foreach($this->view->banners as $banner):?>
         <div class="box">
         <a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>">
         	<img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0980x0474','fragmentimg');?>" alt=""/>
         </a>
         </div>
      <?php endforeach;?>
         </div>
     </div>
     <div class="slide-navigator">
         <div class="dib clearfix">
         <?php if (count($this->view->banners)> 0):?>
              <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?>
           <?php endif;?>
         </div>
     </div>
     <div class="slide-control"> 
         <a class="slide-prev iconfont" href="javascript:void(0);">&#xe601;</a>
         <a class="slide-next iconfont" href="javascript:void(0);">&#xe603;</a>
     </div>
 </div>
 <div class="brand-main">
     <div class="search-wrap">
         <input type="text" placeholder="搜索品牌...">
         <a href="javascript:;" class="search-btn iconfont">&#xe611;</a>
     </div>
     <div class="brand-content">
         <ul class="brand-list cooperation-list clearfix">
           <br/>
         </ul>
     </div>
 </div>
<div id="brand_detail">
 
</div>
<div class="overlay"></div> 
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
    seajs.use('yohood',function(yohood){
    	yohood.brand();
    })
</script>
<?php $this->_endblock();?>