Authored by xuqi

逛页面js修正

@@ -20,7 +20,8 @@ exports.init = function() { @@ -20,7 +20,8 @@ exports.init = function() {
20 $(function() { 20 $(function() {
21 var isInit = true, 21 var isInit = true,
22 scrollToEl = document.querySelector('#wrapper .article-type-three'), 22 scrollToEl = document.querySelector('#wrapper .article-type-three'),
23 - thumbs; 23 + thumbs,
  24 + arrowPosition;
24 25
25 container = $('.article-type-three'); 26 container = $('.article-type-three');
26 thumbContainer = container.find('.thumb-container'); 27 thumbContainer = container.find('.thumb-container');
@@ -87,9 +88,7 @@ exports.init = function() { @@ -87,9 +88,7 @@ exports.init = function() {
87 .removeClass('hide'); 88 .removeClass('hide');
88 89
89 //图片懒加载 90 //图片懒加载
90 - $("img.lazy").lazyload({  
91 - placeholder : "data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="  
92 - }); 91 + $("img.lazy").lazyload();
93 92
94 if (!isInit) { 93 if (!isInit) {
95 if (myscroll) { 94 if (myscroll) {
@@ -19,7 +19,8 @@ exports.init = function() { @@ -19,7 +19,8 @@ exports.init = function() {
19 isInit = true, 19 isInit = true,
20 tContainerH, 20 tContainerH,
21 containerH, 21 containerH,
22 - containerTop; 22 + containerTop,
  23 + arrowPosition;
23 24
24 //fastclick 25 //fastclick
25 Fastclick(document.body); 26 Fastclick(document.body);
@@ -70,9 +71,7 @@ exports.init = function() { @@ -70,9 +71,7 @@ exports.init = function() {
70 .removeClass('hide'); 71 .removeClass('hide');
71 72
72 //图片懒加载 73 //图片懒加载
73 - $("img.lazy").lazyload({  
74 - placeholder: "data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw=="  
75 - }); 74 + $("img.lazy").lazyload();
76 75
77 //scroll to top 76 //scroll to top
78 if (!isInit) { 77 if (!isInit) {