Showing
4 changed files
with
16 additions
and
8 deletions
@@ -51,7 +51,8 @@ exports.init = function() { | @@ -51,7 +51,8 @@ exports.init = function() { | ||
51 | 51 | ||
52 | //lazyload | 52 | //lazyload |
53 | $('img.lazy').lazyload({ | 53 | $('img.lazy').lazyload({ |
54 | - effect : 'fadeIn' | 54 | + effect : 'fadeIn', |
55 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
55 | }); | 56 | }); |
56 | 57 | ||
57 | aIntro = $intro.attr('_title'); | 58 | aIntro = $intro.attr('_title'); |
@@ -54,7 +54,8 @@ exports.initAndroid = function() { | @@ -54,7 +54,8 @@ exports.initAndroid = function() { | ||
54 | 54 | ||
55 | //图片懒加载 | 55 | //图片懒加载 |
56 | $('img.lazy').lazyload({ | 56 | $('img.lazy').lazyload({ |
57 | - effect : 'fadeIn' | 57 | + effect : 'fadeIn', |
58 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
58 | }); | 59 | }); |
59 | 60 | ||
60 | //提示信息位置 | 61 | //提示信息位置 |
@@ -140,8 +141,10 @@ exports.initAndroid = function() { | @@ -140,8 +141,10 @@ exports.initAndroid = function() { | ||
140 | .removeClass('hide'); | 141 | .removeClass('hide'); |
141 | 142 | ||
142 | //图片懒加载 | 143 | //图片懒加载 |
143 | - $("img.lazy").lazyload({ | ||
144 | - effect : 'fadeIn' | 144 | + $('img.lazy').lazyload({ |
145 | + effect : 'fadeIn', | ||
146 | + container: prodList.find('.prod:eq(' + index + ')'), | ||
147 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
145 | }); | 148 | }); |
146 | 149 | ||
147 | //scroll to top | 150 | //scroll to top |
@@ -198,7 +201,8 @@ exports.initOther = function() { | @@ -198,7 +201,8 @@ exports.initOther = function() { | ||
198 | } | 201 | } |
199 | //图片懒加载 | 202 | //图片懒加载 |
200 | $('img.lazy').lazyload({ | 203 | $('img.lazy').lazyload({ |
201 | - effect : 'fadeIn' | 204 | + effect : 'fadeIn', |
205 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
202 | }); | 206 | }); |
203 | 207 | ||
204 | //相关文章截取文字 | 208 | //相关文章截取文字 |
@@ -152,7 +152,8 @@ exports.init = function() { | @@ -152,7 +152,8 @@ exports.init = function() { | ||
152 | //lazyload 不包含src即未加载的图片 | 152 | //lazyload 不包含src即未加载的图片 |
153 | $('img.lazy').lazyload({ | 153 | $('img.lazy').lazyload({ |
154 | effect : 'fadeIn', | 154 | effect : 'fadeIn', |
155 | - container: $tagList | 155 | + container: $tagList, |
156 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
156 | }); | 157 | }); |
157 | //文字截取 | 158 | //文字截取 |
158 | $tagList.find('.tag-text, .tag-title').each(function() { | 159 | $tagList.find('.tag-text, .tag-title').each(function() { |
@@ -237,7 +237,8 @@ exports.init = function() { | @@ -237,7 +237,8 @@ exports.init = function() { | ||
237 | 237 | ||
238 | //lazyload | 238 | //lazyload |
239 | $container.find('img.lazy').lazyload({ | 239 | $container.find('img.lazy').lazyload({ |
240 | - effect : 'fadeIn' | 240 | + effect : 'fadeIn', |
241 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
241 | }); | 242 | }); |
242 | //重置navInfo | 243 | //重置navInfo |
243 | if (res.end) { | 244 | if (res.end) { |
@@ -278,7 +279,8 @@ exports.init = function() { | @@ -278,7 +279,8 @@ exports.init = function() { | ||
278 | //img lazyload | 279 | //img lazyload |
279 | $('img.lazy').lazyload({ | 280 | $('img.lazy').lazyload({ |
280 | effect : 'fadeIn', | 281 | effect : 'fadeIn', |
281 | - skip_invisible : false | 282 | + skip_invisible : false, |
283 | + placeholder: 'data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==' | ||
282 | }); | 284 | }); |
283 | 285 | ||
284 | /** | 286 | /** |
-
Please register or login to post a comment