Authored by hongweigao

品牌一览悬浮降级

@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 {{/each}} 48 {{/each}}
49 </div> 49 </div>
50 </div> 50 </div>
51 - <div class="brands-list" > 51 + <div class="brands-list" data-ishover="{{@root.pc.brands.disBrandNameHover}}">
52 {{> brand-list}} 52 {{> brand-list}}
53 </div> 53 </div>
54 {{/ brands}} 54 {{/ brands}}
@@ -175,6 +175,9 @@ function bindTemplete($select, data, tmp) { @@ -175,6 +175,9 @@ function bindTemplete($select, data, tmp) {
175 175
176 // 鼠标悬浮品牌,请求数据,并且展示 176 // 鼠标悬浮品牌,请求数据,并且展示
177 function bindHoverEvent() { 177 function bindHoverEvent() {
  178 + if ($list.data('ishover')) {
  179 + return;
  180 + }
178 $brand.unbind('mouseenter').unbind('mouseleave').hover(function() { 181 $brand.unbind('mouseenter').unbind('mouseleave').hover(function() {
179 var $this = $(this); 182 var $this = $(this);
180 var key = $this.attr('data-key'); 183 var key = $this.attr('data-key');