product name dotdotdot
Showing
2 changed files
with
9 additions
and
0 deletions
@@ -34,6 +34,8 @@ var $printPrice = $('#print-price'); | @@ -34,6 +34,8 @@ var $printPrice = $('#print-price'); | ||
34 | 34 | ||
35 | var $invoice = $('#invoice-content'); | 35 | var $invoice = $('#invoice-content'); |
36 | 36 | ||
37 | +require('yoho-jquery-dotdotdot'); | ||
38 | + | ||
37 | require('../plugins/check'); // before 地址和发票 | 39 | require('../plugins/check'); // before 地址和发票 |
38 | 40 | ||
39 | require('./order/address'); // 地址 | 41 | require('./order/address'); // 地址 |
@@ -41,6 +43,11 @@ require('./order/invoice'); // 发票 | @@ -41,6 +43,11 @@ require('./order/invoice'); // 发票 | ||
41 | 43 | ||
42 | lazyLoad($('img.lazy')); | 44 | lazyLoad($('img.lazy')); |
43 | 45 | ||
46 | +// dot | ||
47 | +$('.brand-and-name .name').dotdotdot({ | ||
48 | + wrap: 'letter' | ||
49 | +}); | ||
50 | + | ||
44 | // JIT拆单 | 51 | // JIT拆单 |
45 | $('.show-package').click(function() { | 52 | $('.show-package').click(function() { |
46 | $('.package-list').toggleClass('hide'); | 53 | $('.package-list').toggleClass('hide'); |
-
Please register or login to post a comment