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
xuqi
9 years ago
Commit
78d1fce3d8e5e08bb8f2c8584946434cf8dc8c8a
1 parent
40eb9db3
plus star list -> hammer
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
static/js/guang/plus-star/list.js
static/js/guang/plus-star/list.js
View file @
78d1fce
...
...
@@ -5,13 +5,14 @@
*/
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'hammer'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
Swiper
=
require
(
'yoho.iswiper'
);
var
$navs
=
$
(
'#nav-tab > li'
),
$contents
=
$
(
'#ps-content > .content'
);
var
mySwiper
;
var
mySwiper
,
navHammer
;
lazyLoad
(
$
(
'img.lazy'
));
...
...
@@ -20,8 +21,11 @@ mySwiper = new Swiper('.swiper-container', {
pagination
:
'.swiper-pagination'
});
$
(
'#nav-tab'
).
delegate
(
'li'
,
'tap'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'focus'
))
{
navHammer
=
new
Hammer
(
document
.
getElementById
(
'nav-tab'
));
navHammer
.
on
(
'tap'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
);
if
(
$this
.
hasClass
(
'focus'
))
{
return
;
}
...
...
Please
register
or
login
to post a comment