Showing
5 changed files
with
8 additions
and
8 deletions
@@ -31,13 +31,13 @@ | @@ -31,13 +31,13 @@ | ||
31 | </script> | 31 | </script> |
32 | <script src="//localhost:5000/dist/all-debug.js"></script> | 32 | <script src="//localhost:5000/dist/all-debug.js"></script> |
33 | <script type="text/javascript"> | 33 | <script type="text/javascript"> |
34 | - seajs.use(['yohobuy-mobile/1.0.0/public/js/article-type-three-debug','yohobuy-mobile/1.0.0/public/js/related-post-debug'], function(article,relatedPost) { | 34 | + seajs.use(['yohobuy-mobile/1.0.0/public/js/article-type-three-debug','yohobuy-mobile/1.0.0/public/js/detail-debug'], function(article,detail) { |
35 | if (article) { | 35 | if (article) { |
36 | article.init(); | 36 | article.init(); |
37 | } | 37 | } |
38 | 38 | ||
39 | - if(relatedPost) { | ||
40 | - relatedPost.init(); | 39 | + if(detail) { |
40 | + detail.init(); | ||
41 | } | 41 | } |
42 | }); | 42 | }); |
43 | </script> | 43 | </script> |
@@ -15,7 +15,8 @@ | @@ -15,7 +15,8 @@ | ||
15 | "dependencies": { | 15 | "dependencies": { |
16 | "jquery": "1.8.3", | 16 | "jquery": "1.8.3", |
17 | "jquery-pjax": "1.0.1", | 17 | "jquery-pjax": "1.0.1", |
18 | - "mlellipsis": "0.0.2" | 18 | + "mlellipsis": "0.0.2", |
19 | + "lazyload": "1.9.5" | ||
19 | }, | 20 | }, |
20 | "devDependencies": { | 21 | "devDependencies": { |
21 | "expect.js": "0.3.1" | 22 | "expect.js": "0.3.1" |
@@ -27,7 +27,7 @@ module.exports = function() { | @@ -27,7 +27,7 @@ module.exports = function() { | ||
27 | list: [ | 27 | list: [ |
28 | { | 28 | { |
29 | thumb: 'http://placehold.it/98x134', | 29 | thumb: 'http://placehold.it/98x134', |
30 | - type: 'cloth', | 30 | + type: 'shoe', |
31 | products: [ | 31 | products: [ |
32 | { | 32 | { |
33 | thumb: 'http://placehold.it/276x366', | 33 | thumb: 'http://placehold.it/276x366', |
1 | /** | 1 | /** |
2 | - * 相关文章 | 2 | + * detail相关js |
3 | * @author: yue.liu@yoho.cn | 3 | * @author: yue.liu@yoho.cn |
4 | * @date;2015/3/31 | 4 | * @date;2015/3/31 |
5 | */ | 5 | */ |
@@ -14,4 +14,3 @@ exports.init = function() { | @@ -14,4 +14,3 @@ exports.init = function() { | ||
14 | $(this).mlellipsis(2); | 14 | $(this).mlellipsis(2); |
15 | }) | 15 | }) |
16 | } | 16 | } |
17 | - |
-
Please register or login to post a comment