Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
cc04751da4c554c37c4bce45277d2454b8c2ce92
2 parents
5d47c33f
6cc2b03f
code review by liuyue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
3 deletions
template/www.yohobuy.com/partials/layout/use.phtml
web-static/js/product/product.js
web-static/sass/product/_search.scss
template/www.yohobuy.com/partials/layout/use.phtml
View file @
cc04751
...
...
@@ -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}}
...
...
web-static/js/product/product.js
View file @
cc04751
...
...
@@ -24,6 +24,8 @@ lazyLoad($('img.lazy'));
*/
exports
.
init
=
function
(
num
)
{
productList
=
null
;
productList
=
productEvent
(
$goodItem
,
num
);
/**
...
...
web-static/sass/product/_search.scss
View file @
cc04751
...
...
@@ -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
...
...
Please
register
or
login
to post a comment