Authored by whb

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -75,7 +75,6 @@ exports.init = function(num) { @@ -75,7 +75,6 @@ exports.init = function(num) {
75 } 75 }
76 76
77 productList.addHandler('MouseEnter', function(event) { 77 productList.addHandler('MouseEnter', function(event) {
78 -  
79 var itemMr = 10, //list的右边距 78 var itemMr = 10, //list的右边距
80 itemMb = 35, //list的下边距 79 itemMb = 35, //list的下边距
81 ulStr = '', 80 ulStr = '',
@@ -134,6 +133,12 @@ exports.init = function(num) { @@ -134,6 +133,12 @@ exports.init = function(num) {
134 display: 'inline-block' 133 display: 'inline-block'
135 }); 134 });
136 135
  136 + // 鼠标悬浮获取到商品信息后显示第一张图片
  137 + if (data[0] && data[0].src) {
  138 + $(event.target).find('.good-thumb img').attr('src', data[0].src);
  139 + $goodInfoMain.find('.good-thumb img').attr('src', data[0].src);
  140 + }
  141 +
137 //}, 1000); 142 //}, 1000);
138 }); 143 });
139 }); 144 });
@@ -167,4 +172,4 @@ $productListNav.click(function() { @@ -167,4 +172,4 @@ $productListNav.click(function() {
167 $(this).find('.sort-child-list').stop(true, true).slideDown(); 172 $(this).find('.sort-child-list').stop(true, true).slideDown();
168 } 173 }
169 $(this).toggleClass('active'); 174 $(this).toggleClass('active');
170 -});  
  175 +});