Authored by tmq

大banner滑动

@@ -240,61 +240,6 @@ define('channel', function(require, exports) { @@ -240,61 +240,6 @@ define('channel', function(require, exports) {
240 $('.slide-navigator').hide(); 240 $('.slide-navigator').hide();
241 $('.slide-control').hide(); 241 $('.slide-control').hide();
242 } 242 }
243 - if (parseInt($("#right_banner").attr("num")) > 0) {  
244 - $("#img_flow").find(".layout-item").eq(2).before($("#right_banner").html());  
245 - }  
246 - //设置瀑布流  
247 - exports.setFlowLayout = setFlowLayout = function() {  
248 - $('.fluid-list-inner').freetile({  
249 - animate: false,  
250 - elementDelay: 0  
251 - });  
252 - imgTransform($(".image-box img"));  
253 - }  
254 - //图片转换  
255 - var imgTransform = function(obj) {  
256 - obj.bind("mousemove", function() {  
257 - if ($(this).attr("disopen") == 1) { //禁止  
258 - return false;  
259 - }  
260 - //图片变大  
261 - if ($(this).attr("isopen") != 1) {  
262 - $(this).css({  
263 - '-webkit-transition': '-webkit-transform .5s ease-in',  
264 - '-moz-transition': '-moz-transform .5s ease-in',  
265 - '-ms-transition': '-ms-transform .5s ease-in',  
266 - '-o-transition': '-o-transform .5s ease-in',  
267 - 'transition': 'transform .5s ease-in',  
268 - '-webkit-transform': 'scale(1.2)',  
269 - '-moz-transform': 'scale(1.2)',  
270 - '-ms-transform': 'scale(1.2)',  
271 - '-o-transform': 'scale(1.2)',  
272 - 'transform': 'scale(1.2)'  
273 - });  
274 - $(this).attr("isopen", 1);  
275 - }  
276 - return false;  
277 - });  
278 - obj.bind("mouseout", function() {  
279 - if ($(this).attr("isopen") == 1) {  
280 - //图片还原  
281 - $(this).css({  
282 - '-webkit-transition': '-webkit-transform .5s ease-in',  
283 - '-moz-transition': '-moz-transform .5s ease-in',  
284 - '-ms-transition': '-ms-transform .5s ease-in',  
285 - '-o-transition': '-o-transform .5s ease-in',  
286 - 'transition': 'transform .5s ease-in',  
287 - '-webkit-transform': 'scale(1)',  
288 - '-moz-transform': 'scale(1)',  
289 - '-ms-transform': 'scale(1)',  
290 - '-o-transform': 'scale(1)',  
291 - 'transform': 'scale(1)'  
292 - });  
293 - $(this).attr("isopen", 0);  
294 - }  
295 - });  
296 - return false;  
297 - }  
298 var sortPos = 0; 243 var sortPos = 0;
299 var productGenders = []; 244 var productGenders = [];
300 var currentGenderPos = 0; 245 var currentGenderPos = 0;
@@ -379,7 +324,6 @@ define('channel', function(require, exports) { @@ -379,7 +324,6 @@ define('channel', function(require, exports) {
379 } 324 }
380 325
381 326
382 -  
383 /** 327 /**
384 * 首页底部合作商滑动条 328 * 首页底部合作商滑动条
385 */ 329 */
@@ -501,7 +445,6 @@ define('channel', function(require, exports) { @@ -501,7 +445,6 @@ define('channel', function(require, exports) {
501 $(".brand-list").on("mouseenter", "li > a", function(event) { 445 $(".brand-list").on("mouseenter", "li > a", function(event) {
502 var $img = $(this).find("img"); 446 var $img = $(this).find("img");
503 $img.removeClass("grey-brand-logo"); 447 $img.removeClass("grey-brand-logo");
504 - $img.css("color","blue");  
505 }).on("mouseleave", "li > a", function() { 448 }).on("mouseleave", "li > a", function() {
506 var $img = $(this).find("img"); 449 var $img = $(this).find("img");
507 $img.addClass("grey-brand-logo"); 450 $img.addClass("grey-brand-logo");
@@ -165,21 +165,21 @@ define('yohood', function(require, exports) { @@ -165,21 +165,21 @@ define('yohood', function(require, exports) {
165 var cooperateSwiper, 165 var cooperateSwiper,
166 bannerSwipe; 166 bannerSwipe;
167 //大banner滑动 167 //大banner滑动
168 - if ($('.slide-main').find('.box').size() > 1) {  
169 - bannerSwipe = swipe.init({  
170 - slideBox: '.slide-box',  
171 - prev: '.slide-prev',  
172 - next: '.slide-next',  
173 - auto: 3000,  
174 - continuous: true,  
175 - callback: function(index) {  
176 - if (index >= $('.dib a').size()) {  
177 - index = index - $('.dib a').size();  
178 - }  
179 - $('.dib a').removeClass('on').eq(index).addClass('on');  
180 - }  
181 - });  
182 - } 168 + //if ($('.slide-main').find('.box').size() > 1) {
  169 + // bannerSwipe = swipe.init({
  170 + // slideBox: '.slide-box',
  171 + // prev: '.slide-prev',
  172 + // next: '.slide-next',
  173 + // auto: 3000,
  174 + // continuous: true,
  175 + // callback: function(index) {
  176 + // if (index >= $('.dib a').size()) {
  177 + // index = index - $('.dib a').size();
  178 + // }
  179 + // $('.dib a').removeClass('on').eq(index).addClass('on');
  180 + // }
  181 + // });
  182 + //}
183 183
184 $('.dib').on('click', 'a', function() { 184 $('.dib').on('click', 'a', function() {
185 bannerSwipe.slide($(this).index()); 185 bannerSwipe.slide($(this).index());