Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into feature/web-list
Showing
1 changed file
with
9 additions
and
8 deletions
@@ -74,6 +74,14 @@ exports.init = function(num) { | @@ -74,6 +74,14 @@ exports.init = function(num) { | ||
74 | }; | 74 | }; |
75 | } | 75 | } |
76 | 76 | ||
77 | + function removeHtmlFn() { | ||
78 | + $goodInfoMain.html(''); | ||
79 | + $goodSelectColor.html(''); | ||
80 | + $goodItemWrapper.css({ | ||
81 | + display: 'none' | ||
82 | + }); | ||
83 | + } | ||
84 | + | ||
77 | productList.addHandler('MouseEnter', function(event) { | 85 | productList.addHandler('MouseEnter', function(event) { |
78 | var itemMr = 10, //list的右边距 | 86 | var itemMr = 10, //list的右边距 |
79 | itemMb = 35, //list的下边距 | 87 | itemMb = 35, //list的下边距 |
@@ -150,16 +158,9 @@ exports.init = function(num) { | @@ -150,16 +158,9 @@ exports.init = function(num) { | ||
150 | 158 | ||
151 | $goodItemWrapper.mouseleave(function() { | 159 | $goodItemWrapper.mouseleave(function() { |
152 | 160 | ||
153 | - // removeHtmlFn(); | 161 | + removeHtmlFn(); |
154 | }); | 162 | }); |
155 | 163 | ||
156 | - function removeHtmlFn() { | ||
157 | - $goodInfoMain.html(''); | ||
158 | - $goodSelectColor.html(''); | ||
159 | - $goodItemWrapper.css({ | ||
160 | - display: 'none' | ||
161 | - }); | ||
162 | - } | ||
163 | }; | 164 | }; |
164 | 165 | ||
165 | //鼠标放在颜色列表上效果 | 166 | //鼠标放在颜色列表上效果 |
-
Please register or login to post a comment