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
郝肖肖
8 years ago
Commit
4a2b3506a098c145396f659a4a888c6b8385b44d
1 parent
2557983f
品类冒泡修复
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
static/js/category/index.js
static/js/product/product-category.js
static/js/category/index.js
View file @
4a2b350
...
...
@@ -56,6 +56,12 @@ $categoryContainer.on('touchend', function(e) {
$cur
,
index
;
$cur
=
$this
.
closest
(
'.p-level-item'
);
//第一次单击右则空白处,出现冒泡
if
(
$
(
e
.
target
).
closest
(
'.sub-level'
).
length
<=
0
)
{
e
.
preventDefault
();
}
if
(
$cur
.
length
>
0
)
{
index
=
$cur
.
index
();
$subLevel
=
$this
.
closest
(
'.content'
).
find
(
'.sub-level'
);
...
...
static/js/product/product-category.js
View file @
4a2b350
...
...
@@ -32,6 +32,11 @@ $categoryContainer.on('touchend', function(e) {
$cur
=
$this
.
closest
(
'.p-level-item'
);
//第一次单击右则空白处,出现冒泡
if
(
$
(
e
.
target
).
closest
(
'.sub-level'
).
length
<=
0
)
{
e
.
preventDefault
();
}
$subLevelContainer
=
$this
.
closest
(
'.content'
).
find
(
'.sub-level-container'
);
$subLevelContainer
.
removeClass
(
'hide'
);
...
...
Please
register
or
login
to post a comment