Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
liuyue
2015-12-25 14:55:32 +0800
Commit
583576ce66c0feafdb681c07094ac54897a16b37
2 parents
20e95bb5
74c19edd
Merge branch 'feature/new-sale' into 'web'
Feature/new sale See merge request !84
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 @
583576c
...
...
@@ -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 @
583576c
/**
*@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
{
...
...
@@ -166,4 +170,6 @@
overflow
:
hidden
;
}
}
}
\ No newline at end of file
...
...
web-static/sass/product/_index.scss
View file @
583576c
...
...
@@ -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