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
uedxwg
9 years ago
Commit
97944e06029f1bba6fb4caff91d919cfe7658cb3
1 parent
02f651aa
updata
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
15 deletions
static/js/category/brand.js
static/js/product/newsale/discount.js
static/sass/_filter.scss
static/sass/_good.scss
static/sass/product/_discount.scss
template/m.yohobuy.com/actions/product/newsale/sale.phtml
static/js/category/brand.js
View file @
97944e0
...
...
@@ -32,8 +32,10 @@ $('.banner-top').css('padding-top', '90px');
if
(
$brandList
.
length
>
0
)
{
$
(
window
).
scroll
(
function
()
{
var
scrTop
=
$
(
window
).
scrollTop
();
$
(
'.brand-list'
).
each
(
function
()
{
var
offTop
=
$
(
this
).
offset
().
top
-
brandSwipe
;
if
(
scrTop
>=
offTop
)
{
$brandList
.
find
(
'.title-bar'
).
css
(
'position'
,
'static'
);
$
(
this
).
find
(
'.title-bar'
).
css
({
...
...
@@ -47,10 +49,11 @@ if ($brandList.length > 0) {
});
}
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
().
on
(
'tap'
,
function
(){
var
index
=
$
(
this
).
index
();
if
(
$
(
'.bar-'
+
index
).
size
()
>
0
){
document
.
body
.
scrollTop
=
parseInt
(
$
(
'.bar-'
+
index
)[
0
].
offsetTop
)
-
parseInt
(
brandSwipe
-
1
);
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
().
on
(
'tap'
,
function
()
{
var
index
=
$
(
this
).
index
();
if
(
$
(
'.bar-'
+
index
).
size
()
>
0
)
{
document
.
body
.
scrollTop
=
parseInt
(
$
(
'.bar-'
+
index
)[
0
].
offsetTop
)
-
parseInt
(
brandSwipe
-
1
);
}
});
...
...
static/js/product/newsale/discount.js
View file @
97944e0
...
...
@@ -3,7 +3,6 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/20
*/
var
$
=
require
(
'yoho.zepto'
),
Swiper
=
require
(
'yoho.iswiper'
),
lazyLoad
=
require
(
'yoho.zeptolazyload'
);
...
...
static/sass/_filter.scss
View file @
97944e0
...
...
@@ -2,7 +2,7 @@
position
:
absolute
;
left
:
0
;
right
:
0
;
top
:
0
;
top
:
2px
;
}
.filter-mask
{
...
...
static/sass/_good.scss
View file @
97944e0
.good-info
{
float
:
left
;
width
:
44%
;
width
:
4
6
.
4%
;
height
:
486rem
/
$pxConvertRem
;
margin
:
28rem
/
$pxConvertRem
3%
0
;
margin
:
28rem
/
$pxConvertRem
0
0
2
.4%
;
.tag-container
{
...
...
static/sass/product/_discount.scss
View file @
97944e0
.discount-page
{
background-color
:
#f
0f0f0
;
background-color
:
#f
ff
;
.swiper-container
{
width
:
100%
;
...
...
@@ -32,6 +32,7 @@
}
.list-nav
{
border
:
1px
solid
#e6e6e6
;
>
li
{
float
:
left
;
width
:
25%
;
...
...
@@ -50,9 +51,14 @@
}
.active
>
a
{
border-bottom
:
2px
solid
#000
;
color
:
#000
;
.spanTest
{
width
:
auto
;
height
:
100%
;
border-bottom
:
2px
solid
#000
;
display
:
inline-block
;
box-sizing
:border-box
;
}
.iconfont
{
color
:
#999
;
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
97944e0
...
...
@@ -7,13 +7,13 @@
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
<li
class=
"new active"
>
<a
href=
"javascript:void(0);"
>
最新
<span
class=
"spanTest"
>最新</span>
<span
class=
"iconfont cur"
>
616
;</span>
</a>
</li>
<li
class=
"price"
>
<a
href=
"javascript:void(0);"
>
价格
<span
class=
"spanTest"
>价格</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
...
...
@@ -22,7 +22,7 @@
</li>
<li
class=
"discount"
>
<a
href=
"javascript:void(0);"
>
折扣
<span
class=
"spanTest"
>折扣</span>
<span
class=
"icon"
>
<i
class=
"iconfont up"
>
615
;</i>
<i
class=
"iconfont down cur"
>
616
;</i>
...
...
@@ -31,7 +31,7 @@
</li>
<li
class=
"filter"
>
<a
href=
"javascript:void(0);"
>
筛选
<span
class=
"spanTest"
>筛选</span>
<span
class=
"iconfont"
>
613
;</span>
</a>
</li>
...
...
Please
register
or
login
to post a comment