Merge branch 'hotfix/channel' of git.yoho.cn:fe/yohobuywap-node into hotfix/channel
Showing
1 changed file
with
10 additions
and
0 deletions
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | module.exports = function(specificGender) { | 7 | module.exports = function(specificGender) { |
8 | var $ = require('yoho-jquery'), | 8 | var $ = require('yoho-jquery'), |
9 | Hammer = require('yoho-hammer'), | 9 | Hammer = require('yoho-hammer'), |
10 | + ellipsis = require('yoho-mlellipsis'), | ||
10 | tip = require('../plugin/tip'), | 11 | tip = require('../plugin/tip'), |
11 | loading = require('../plugin/loading'), | 12 | loading = require('../plugin/loading'), |
12 | lazyLoad = require('yoho-jquery-lazyload'); | 13 | lazyLoad = require('yoho-jquery-lazyload'); |
@@ -33,6 +34,8 @@ module.exports = function(specificGender) { | @@ -33,6 +34,8 @@ module.exports = function(specificGender) { | ||
33 | 34 | ||
34 | var bottomBannerLoaded; | 35 | var bottomBannerLoaded; |
35 | 36 | ||
37 | + ellipsis.init(); | ||
38 | + | ||
36 | // ajax url | 39 | // ajax url |
37 | if (kidsType) { | 40 | if (kidsType) { |
38 | url = '/product/recom/maylikekids'; | 41 | url = '/product/recom/maylikekids'; |
@@ -148,6 +151,13 @@ module.exports = function(specificGender) { | @@ -148,6 +151,13 @@ module.exports = function(specificGender) { | ||
148 | 151 | ||
149 | loading.hideLoadingMask(); | 152 | loading.hideLoadingMask(); |
150 | page++; | 153 | page++; |
154 | + | ||
155 | + $('.good-detail-text .name').each(function() { | ||
156 | + var $this = $(this), | ||
157 | + $title = $this.find('a'); | ||
158 | + | ||
159 | + $title[0].mlellipsis(2); | ||
160 | + }); | ||
151 | }, | 161 | }, |
152 | error: function() { | 162 | error: function() { |
153 | tip.show('网络断开连接了~'); | 163 | tip.show('网络断开连接了~'); |
-
Please register or login to post a comment