Authored by 王水玲

星潮教室首页明星头像效果

@@ -7,4 +7,6 @@ @@ -7,4 +7,6 @@
7 var $ = require('yoho-jquery'), 7 var $ = require('yoho-jquery'),
8 lazyLoad = require('yoho-jquery-lazyload'); 8 lazyLoad = require('yoho-jquery-lazyload');
9 9
  10 +require('../common');
  11 +
10 lazyLoad($('img.lazy')); 12 lazyLoad($('img.lazy'));
@@ -246,7 +246,7 @@ function setIndexAction() { @@ -246,7 +246,7 @@ function setIndexAction() {
246 // 明星头像点击居中显示或跳转 246 // 明星头像点击居中显示或跳转
247 $('.avatar-swiper li').on('click', function() { 247 $('.avatar-swiper li').on('click', function() {
248 if ($(this).hasClass('swiper-slide-active')) { 248 if ($(this).hasClass('swiper-slide-active')) {
249 - location.href = $(this).find('img').data('url'); 249 + location.href = $(this).find('span').data('url');
250 } else { 250 } else {
251 avatarKey = $(this).index(); 251 avatarKey = $(this).index();
252 252