Showing
3 changed files
with
11 additions
and
5 deletions
@@ -359,7 +359,7 @@ module.exports = function(flag) { | @@ -359,7 +359,7 @@ module.exports = function(flag) { | ||
359 | list: [ | 359 | list: [ |
360 | { | 360 | { |
361 | thumb: 'http://7xidk0.com1.z0.glb.clouddn.com/logo.png', | 361 | thumb: 'http://7xidk0.com1.z0.glb.clouddn.com/logo.png', |
362 | - name: 'HALFGIRL', | 362 | + name: 'HALFGIRL测试名字长的情况', |
363 | url: '' | 363 | url: '' |
364 | }, | 364 | }, |
365 | { | 365 | { |
@@ -669,7 +669,7 @@ module.exports = function(flag) { | @@ -669,7 +669,7 @@ module.exports = function(flag) { | ||
669 | { | 669 | { |
670 | id: 1, | 670 | id: 1, |
671 | thumb: 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | 671 | thumb: 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', |
672 | - name: 'G-Star白色后腰拉链款男士牛仔裤', | 672 | + name: 'G-Star白色后腰拉链款男士牛仔裤测试一下名字太长了后的情况', |
673 | price: 488, | 673 | price: 488, |
674 | salePrice: 139, | 674 | salePrice: 139, |
675 | url: '' | 675 | url: '' |
@@ -730,7 +730,7 @@ module.exports = function(flag) { | @@ -730,7 +730,7 @@ module.exports = function(flag) { | ||
730 | list: [ | 730 | list: [ |
731 | { | 731 | { |
732 | thumb: 'http://7xidk0.com1.z0.glb.clouddn.com/logo.png', | 732 | thumb: 'http://7xidk0.com1.z0.glb.clouddn.com/logo.png', |
733 | - name: 'HALFGIRL', | 733 | + name: 'HALFGIRL测试名字很长的情况怎么显示呢', |
734 | url: '' | 734 | url: '' |
735 | }, | 735 | }, |
736 | { | 736 | { |
@@ -38,6 +38,9 @@ exports.init = function() { | @@ -38,6 +38,9 @@ exports.init = function() { | ||
38 | $('.post-list').find('span').each(function() { | 38 | $('.post-list').find('span').each(function() { |
39 | $(this).mlellipsis(2); | 39 | $(this).mlellipsis(2); |
40 | }); | 40 | }); |
41 | + $('.brand-name').each(function() { | ||
42 | + $(this).mlellipsis(1); | ||
43 | + }); | ||
41 | 44 | ||
42 | //图片懒加载 | 45 | //图片懒加载 |
43 | $('img.lazy').lazyload(); | 46 | $('img.lazy').lazyload(); |
@@ -100,6 +100,9 @@ exports.init = function() { | @@ -100,6 +100,9 @@ exports.init = function() { | ||
100 | $('.reco .name').each(function() { | 100 | $('.reco .name').each(function() { |
101 | $(this).mlellipsis(2); | 101 | $(this).mlellipsis(2); |
102 | }); | 102 | }); |
103 | + $('.brand-name').each(function() { | ||
104 | + $(this).mlellipsis(1); | ||
105 | + }); | ||
103 | 106 | ||
104 | //read good-info template | 107 | //read good-info template |
105 | $.get('/common/goodinfo', function(data) { | 108 | $.get('/common/goodinfo', function(data) { |
@@ -408,9 +411,9 @@ exports.init = function() { | @@ -408,9 +411,9 @@ exports.init = function() { | ||
408 | 411 | ||
409 | //加载更多 | 412 | //加载更多 |
410 | $(document).scroll(function(e) { | 413 | $(document).scroll(function(e) { |
411 | - //当scroll到1/4$goodsContainer高度后继续请求 | 414 | + //当scroll到1/3$goodsContainer高度后继续请求 |
412 | if (canLoadAjax && $(window).scrollTop() + winH >= | 415 | if (canLoadAjax && $(window).scrollTop() + winH >= |
413 | - $(document).height() - 0.25 * $goodsContainer.height() - loadMoreH) { | 416 | + $(document).height() - 0.33 * $goodsContainer.height() - loadMoreH) { |
414 | search(); | 417 | search(); |
415 | } | 418 | } |
416 | }); | 419 | }); |
-
Please register or login to post a comment