Authored by lore-w

搜索页990

... ... @@ -12,7 +12,15 @@
{{#if searchListPage}}
<script>
seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
product.init(5);
$(window).resize(function () {
setTimeout(function () {
function () {
product.init(5);
}
}, 300);
});
});
</script>
{{/if}}
... ... @@ -21,7 +29,15 @@
{{#if productListPage}}
<script>
seajs.use(['js/product/list', 'js/product/product'], function (list, product) {
product.init(4);
$(window).resize(function () {
setTimeout(function () {
function () {
product.init(4);
}
}, 300);
});
});
</script>
{{/if}}
... ...
... ... @@ -24,6 +24,8 @@ lazyLoad($('img.lazy'));
*/
exports.init = function(num) {
productList = null;
productList = productEvent($goodItem, num);
/**
... ...
... ... @@ -6,7 +6,6 @@
.product-search-page {
//todo
.goods-container {
height: auto;
... ... @@ -14,4 +13,31 @@
position: relative;
width: 1150px + 10px;//每列增加右边距
}
}
/*990px*/
@media (max-width: 1180px) {
.product-search-page {
.goods-container {
height: auto;
padding-top: 25px;
position: relative;
width: 990px + 10px; //每列增加右边距
.good-info {
width: 190px;
.good-detail-img {
height: 255px;
}
}
.block-next-page {
width: 190px;
height: 255px;
}
}
}
}
\ No newline at end of file
... ...