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
lore-w
9 years ago
Commit
ff838702b8d07f472d94b4ea60bf89bee6e619a7
1 parent
6bec3f9a
商品列表页增加下拉效果
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
web-static/js/common/product-event.js
web-static/js/product/product.js
web-static/sass/product/_list.scss
web-static/js/common/product-event.js
View file @
ff83870
...
...
@@ -85,9 +85,6 @@ module.exports = function($o, rowWidth) {
offsetL
=
$target
.
offset
().
left
;
offsetR
=
winW
-
(
offsetL
+
targetWidth
);
console
.
log
(
$target
.
offset
().
left
);
pMouseHover
.
fire
({
type
:
'MouseEnter'
,
target
:
$target
,
...
...
web-static/js/product/product.js
View file @
ff83870
...
...
@@ -137,9 +137,10 @@ exports.init = function(num) {
// 左侧导航
$productListNav
.
click
(
function
()
{
if
(
$
(
this
).
hasClass
(
'active'
))
{
$
(
this
).
removeClass
(
'active'
);
$
(
this
).
find
(
'.sort-child-list'
).
stop
(
true
,
true
).
slideUp
(
);
}
else
{
$
(
this
).
addClass
(
'active'
);
$
(
this
).
find
(
'.sort-child-list'
).
stop
(
true
,
true
).
slideDown
(
);
}
$
(
this
).
toggleClass
(
'active'
);
});
};
\ No newline at end of file
...
...
web-static/sass/product/_list.scss
View file @
ff83870
...
...
@@ -61,9 +61,9 @@
}
}
}
ul
.sort-child-list
{
/*
ul.sort-child-list {
display: block;
}
}
*/
}
}
...
...
Please
register
or
login
to post a comment