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
Email Patches
Plain Diff
Browse Files
Authored by
lore-w
9 years ago
Commit
74c19eddd0235d4e9313d46840a0da80096c5dfe
1 parent
6e6d5f67
newsale 990适配
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
web-static/js/product/product.js
web-static/sass/product/_good.scss
web-static/sass/product/_index.scss
web-static/js/product/product.js
View file @
74c19ed
...
...
@@ -5,6 +5,7 @@
*/
var
$
=
require
(
'yoho.jquery'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
productEvent
=
require
(
'../common/product-event'
);
var
$goodsContainer
=
$
(
'.goods-container'
),
...
...
@@ -15,6 +16,8 @@ var $goodsContainer = $('.goods-container'),
$productListNav
=
$
(
'.product-list-nav'
),
productList
;
lazyLoad
(
$
(
'img.lazy'
));
/**
* @description 初始化鼠标移入商品列表弹层效果
* @num 每列存放商品的个数
...
...
web-static/sass/product/_good.scss
View file @
74c19ed
/**
*@description: 商品列表1180px下搜索页的样式
*列表页、new-sale页在此基础上覆盖(index.scss)
*/
.good-info
{
height
:
400px
;
//todo
margin-bottom
:
35px
;
width
:
222px
;
margin-right
:
10px
;
...
...
@@ -8,7 +12,7 @@
//图片
.good-detail-img
{
width
:
100%
;
/*height: 300px;*/
height
:
300px
;
position
:
relative
;
.good-thumb
,
img
.lazy
{
...
...
@@ -162,4 +166,6 @@
overflow
:
hidden
;
}
}
}
\ No newline at end of file
...
...
web-static/sass/product/_index.scss
View file @
74c19ed
...
...
@@ -33,15 +33,20 @@
.good-info
{
width
:
235px
;
.good-detail-img
{
height
:
315px
;
}
}
.block-next-page
{
width
:
235px
;
height
:
31
4
px
;
height
:
31
5
px
;
}
}
}
/*990px*/
@media
(
max-width
:
1180px
)
{
.product-list-page
,
.new-sale-page
{
...
...
@@ -58,7 +63,10 @@
.good-info
{
width
:
195px
;
height
:
350px
;
.good-detail-img
{
height
:
261px
;
}
}
.block-next-page
{
...
...
Please
register
or
login
to post a comment