...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
|
|
|
var $ = require('jquery'),
|
|
|
Hammer = require('yoho.hammer'),
|
|
|
ellipsis = require('mlellipsis'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
|
|
|
|
|
|
...
|
...
|
@@ -63,6 +64,8 @@ var $listNav = $('#list-nav'), |
|
|
introHammer,
|
|
|
brandColHammer;
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
|
|
$input.on('input', function() {
|
|
|
if ($input.val() === '') {
|
|
|
$icon.css('color', '#b2b2b2');
|
...
|
...
|
@@ -95,7 +98,9 @@ function search(opt) { |
|
|
ext,
|
|
|
att,
|
|
|
nav, navType,
|
|
|
page;
|
|
|
page,
|
|
|
$this,
|
|
|
$title;
|
|
|
|
|
|
if (searching) {
|
|
|
return;
|
...
|
...
|
@@ -233,6 +238,12 @@ function search(opt) { |
|
|
|
|
|
window.rePosFooter();
|
|
|
|
|
|
$('.good-detail-text .name').each(function() {
|
|
|
$this = $(this);
|
|
|
$title = $this.find('a');
|
|
|
|
|
|
$title[0].mlellipsis(2);
|
|
|
});
|
|
|
|
|
|
// 用于统计点击了商品列表的第几个商品,序号从1开始计算。
|
|
|
if (window._yas) {
|
...
|
...
|
@@ -263,7 +274,7 @@ $.ajax({ |
|
|
url: '/search/filter',
|
|
|
data: defaultOpt,
|
|
|
success: function(data) {
|
|
|
$goodsContainer.append(data);
|
|
|
$goodsContainer.append(data);
|
|
|
|
|
|
//初始化filter&注册filter回调
|
|
|
filter.initFilter({
|
...
|
...
|
|