Showing
1 changed file
with
10 additions
and
1 deletions
@@ -23,7 +23,7 @@ var jumpToApp = $('#jump-to-app').val(); | @@ -23,7 +23,7 @@ var jumpToApp = $('#jump-to-app').val(); | ||
23 | 23 | ||
24 | var mIntro, aIntro; | 24 | var mIntro, aIntro; |
25 | 25 | ||
26 | -var moreHammer, likeHammer; | 26 | +var moreHammer, likeHammer, $goodName, $title; |
27 | 27 | ||
28 | require('../../plugin/wx-share'); | 28 | require('../../plugin/wx-share'); |
29 | 29 | ||
@@ -32,6 +32,15 @@ ellipsis.init(); | @@ -32,6 +32,15 @@ ellipsis.init(); | ||
32 | //Init LazyLoad | 32 | //Init LazyLoad |
33 | lazyLoad($('img.lazy')); | 33 | lazyLoad($('img.lazy')); |
34 | 34 | ||
35 | +if ($('.good-detail-text .name').length > 0) { | ||
36 | + $('.good-detail-text .name').each(function() { | ||
37 | + $goodName = $(this); | ||
38 | + $title = $goodName.find('a'); | ||
39 | + | ||
40 | + $title[0].mlellipsis(2); | ||
41 | + }); | ||
42 | +} | ||
43 | + | ||
35 | //文字介绍文字截取 | 44 | //文字介绍文字截取 |
36 | $intro[0].mlellipsis(3); | 45 | $intro[0].mlellipsis(3); |
37 | 46 |
-
Please register or login to post a comment