...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
Swiper = require('yoho-swiper'),
|
|
|
ellipsis = require('yoho-mlellipsis'),
|
|
|
lazyload = require('yoho-jquery-lazyload');
|
|
|
|
|
|
var search = require('./sale/search');
|
...
|
...
|
@@ -14,6 +15,7 @@ require('../common'); |
|
|
|
|
|
search.start();
|
|
|
lazyload($('img.lazy'));
|
|
|
ellipsis.init();
|
|
|
|
|
|
$('.swiper-container').each(function() {
|
|
|
if ($(this).find('.swiper-slide').length > 1) {
|
...
|
...
|
@@ -56,6 +58,13 @@ $(function() { |
|
|
if (/good-info/.test(res)) {
|
|
|
$vipFloor.html(res).addClass('goods-container');
|
|
|
lazyload($vipFloor.find('img.lazy'));
|
|
|
|
|
|
$('.good-detail-text .name').each(function() {
|
|
|
var $this = $(this),
|
|
|
$title = $this.find('a');
|
|
|
|
|
|
$title[0].mlellipsis(2);
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|