Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
ebebfca0dbf484493234313b51762952792a5a0a
2 parents
f044efcf
b03154cb
Merge remote-tracking branch 'origin/hotfix/xieweiguang'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
static/js/category/index.js
static/js/product/list.js
static/js/category/index.js
View file @
ebebfca
...
...
@@ -88,10 +88,9 @@ $categoryContainer.find('.sub-level').on('touchstart', 'li', function() {
$
(
this
).
removeClass
(
'highlight'
);
});
$nav
.
on
(
'touchstart'
,
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
target
.
parentNode
.
className
=
'bytouch '
+
target
.
parentNode
.
className
;
}).
on
(
'touchend touchcancel'
,
function
()
{
$nav
.
on
(
'touchstart'
,
'li'
,
function
()
{
$nav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
$
(
this
).
addClass
(
'bytouch'
);
}).
on
(
'touchend touchcancel'
,
'li'
,
function
()
{
$nav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
});
\ No newline at end of file
...
...
static/js/product/list.js
View file @
ebebfca
...
...
@@ -447,10 +447,10 @@ if ($brandHeader.length > 0) {
//初始请求最新第一页数据
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
.
on
(
'touchstart'
,
'li'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
$
(
this
).
addClass
(
'bytouch'
);
}).
on
(
'touchend touchcancel'
,
'li'
,
function
()
{
$listNav
.
find
(
'li'
).
removeClass
(
'bytouch'
);
});
...
...
Please
register
or
login
to post a comment