Authored by xuqi

code checker

@@ -30,7 +30,7 @@ require('yoho.dotdotdot'); @@ -30,7 +30,7 @@ require('yoho.dotdotdot');
30 $('.saunter-nav > li:first-child').addClass('focus'); 30 $('.saunter-nav > li:first-child').addClass('focus');
31 31
32 //初始化cached 32 //初始化cached
33 -$('.saunter-nav li').each(function () { 33 +$('.saunter-nav li').each(function() {
34 var $el = $(this), 34 var $el = $(this),
35 page = $el.index() === 0 ? 1 : 0; 35 page = $el.index() === 0 ? 1 : 0;
36 36
@@ -51,8 +51,8 @@ swiper = new Swiper('.swiper-container', { @@ -51,8 +51,8 @@ swiper = new Swiper('.swiper-container', {
51 lazyLoad(); 51 lazyLoad();
52 52
53 //相关文章截取文字 53 //相关文章截取文字
54 -baseFont = getComputedStyle(document.documentElement,null).fontSize;  
55 -baseFontSize = baseFont.substring(0, baseFont.length -2 ); 54 +baseFont = getComputedStyle(document.documentElement, null).fontSize;
  55 +baseFontSize = baseFont.substring(0, baseFont.length - 2);
56 function dot($container) { 56 function dot($container) {
57 $container.find('.tag-title').dotdotdot({ 57 $container.find('.tag-title').dotdotdot({
58 height: 2.2 * baseFontSize, 58 height: 2.2 * baseFontSize,