Authored by 王水玲

商品列表页标题修改

... ... @@ -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({
... ...
.good-info {
float: left;
width: 276px;
height: 486px;
margin: 0 15px 15px;
height: 506px;
margin: 10px 15px 40px 15px;
.tag-container {
height: 28px;
... ... @@ -96,13 +96,15 @@
.good-detail-text {
.name a {
display: block;
line-height: 56px;
overflow: hidden;
white-space: nowrap;
min-height: 60px;
/* line-height: 29px;*/
/*overflow: hidden;*/
/* white-space: nowrap;
text-overflow: ellipsis;
text-decoration: none;
text-decoration: none;*/
font-size: 22px;
color: #444;
margin: 20px 0;
}
.price {
line-height: 22px;
... ...