Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
0dc2630c35d351c96b52f354d209d6217f505d49
1 parent
22f70ea6
update
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
4 deletions
static/js/guang/plus-star/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/sass/guang/_plus-star.scss
static/sass/product/_discount.scss
static/sass/product/_new-arrival.scss
static/js/guang/plus-star/list.js
View file @
0dc2630
...
...
@@ -33,4 +33,12 @@ navHammer.on('tap', function(e) {
$contents
.
toggleClass
(
'hide'
);
$
(
document
).
trigger
(
'scroll'
);
//Trigger lazyLoad
});
$
(
'#nav-tab'
).
on
(
'touchstart'
,
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
target
.
className
=
'bytouch '
+
target
.
className
;
console
.
log
(
target
);
}).
on
(
'touchend touchcancel'
,
function
()
{
$navs
.
removeClass
(
'bytouch'
);
});
\ No newline at end of file
...
...
static/js/product/newsale/discount.js
View file @
0dc2630
...
...
@@ -373,3 +373,11 @@ $(window).scroll(function() {
//初始请求最新第一页数据
search
();
$listNav
.
on
(
'touchstart'
,
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
target
.
parentNode
.
parentNode
.
className
=
'bytouch '
+
target
.
parentNode
.
parentNode
.
className
;
}).
on
(
'touchend touchcancel'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
});
...
...
static/js/product/newsale/newarrival.js
View file @
0dc2630
...
...
@@ -385,3 +385,11 @@ $(window).scroll(function() {
//初始请求最新第一页数据
search
();
$listNav
.
on
(
'touchstart'
,
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
target
.
parentNode
.
className
=
'bytouch '
+
target
.
parentNode
.
className
;
}).
on
(
'touchend touchcancel'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
});
...
...
static/sass/guang/_plus-star.scss
View file @
0dc2630
...
...
@@ -25,7 +25,9 @@
color
:
#000
;
}
}
.bytouch
{
background
:
#eee
;
}
.star-nav
{
border-right
:
1px
solid
#ccc
;
}
...
...
static/sass/product/_discount.scss
View file @
0dc2630
...
...
@@ -43,7 +43,9 @@
text-align
:
center
;
font-size
:
14px
;
}
.bytouch
{
background
:
#eee
;
}
a
{
display
:
block
;
box-sizing
:
border-box
;
...
...
static/sass/product/_new-arrival.scss
View file @
0dc2630
...
...
@@ -34,7 +34,7 @@
.list-nav
{
border-top
:
2px
solid
#fff
;
border-bottom
:
1px
solid
#e6e6e6
;
>
li
{
float
:
left
;
width
:
25%
;
...
...
@@ -44,7 +44,9 @@
font-size
:
14px
;
color
:
#999
;
}
.bytouch
{
background
:
#eee
;
}
a
{
display
:
inline-block
;
box-sizing
:
border-box
;
...
...
Please
register
or
login
to post a comment