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
biao
9 years ago
Commit
3af47c9586a48c394258103f63740fd94ae6860f
1 parent
90f71c13
修复lifestyle有货币页面,code review by LZF
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
static/js/home/maybe-like.js
static/js/home/maybe-like.js
View file @
3af47c9
...
...
@@ -50,31 +50,33 @@ module.exports = function(specificGender) {
$curNav
=
$navList
.
children
(
'.focus'
);
if
(
lifestyleType
)
{
navHammer
=
new
Hammer
(
$navList
[
0
]);
navHammer
.
on
(
'tap'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
$goods
=
$
(
'.goods-list'
),
$content
;
e
.
preventDefault
();
if
(
$this
.
hasClass
(
'focus'
))
{
return
;
}
navHammer
=
$navList
[
0
]
?
new
Hammer
(
$navList
[
0
])
:
undefined
;
if
(
navHammer
)
{
navHammer
.
on
(
'tap'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
),
$goods
=
$
(
'.goods-list'
),
$content
;
e
.
preventDefault
();
if
(
$this
.
hasClass
(
'focus'
))
{
return
;
}
index
=
$this
.
index
();
index
=
$this
.
index
();
$this
.
addClass
(
'focus'
);
$curNav
.
removeClass
(
'focus'
);
$this
.
addClass
(
'focus'
);
$curNav
.
removeClass
(
'focus'
);
$goods
.
not
(
'.hide'
).
addClass
(
'hide'
);
$content
=
$goods
.
eq
(
index
);
$content
.
removeClass
(
'hide'
);
$goods
.
not
(
'.hide'
).
addClass
(
'hide'
);
$content
=
$goods
.
eq
(
index
);
$content
.
removeClass
(
'hide'
);
$curNav
=
$this
;
$curNav
=
$this
;
$
(
document
).
trigger
(
'scroll'
);
//Trigger lazyLoad
e
.
srcEvent
.
stopPropagation
();
});
$
(
document
).
trigger
(
'scroll'
);
//Trigger lazyLoad
e
.
srcEvent
.
stopPropagation
();
});
}
}
loading
.
init
(
$
(
'.maybe-like'
));
...
...
Please
register
or
login
to post a comment