Authored by tmq

banner js

@@ -236,6 +236,10 @@ define('channel', function(require, exports) { @@ -236,6 +236,10 @@ define('channel', function(require, exports) {
236 }; 236 };
237 //首页 237 //首页
238 exports.index = function() { 238 exports.index = function() {
  239 + if ($('.slide-box').find('.box').size() <= 1) {
  240 + $('.slide-navigator').hide();
  241 + $('.slide-control').hide();
  242 + }
239 var sortPos = 0; 243 var sortPos = 0;
240 var productGenders = []; 244 var productGenders = [];
241 var currentGenderPos = 0; 245 var currentGenderPos = 0;
@@ -19,9 +19,9 @@ @@ -19,9 +19,9 @@
19 <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?> 19 <?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?>
20 </div> 20 </div>
21 </div> 21 </div>
22 - <div class="cooperation-slide-control">  
23 - <a class="cooperation-slide-prev iconfont" href="javascript:void(0);">&#xe600;</a>  
24 - <a class="cooperation-slide-next iconfont" href="javascript:void(0);">&#xe602;</a> 22 + <div class="slide-control">
  23 + <a class="slide-prev iconfont" href="javascript:void(0);">&#xe601;</a>
  24 + <a class="slide-next iconfont" href="javascript:void(0);">&#xe603;</a>
25 </div> 25 </div>
26 </div> 26 </div>
27 <div class="content-wrap clearfix"> 27 <div class="content-wrap clearfix">