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
梁志锋
9 years ago
Commit
e124bdea9029957e698d8449064382373037cb3a
1 parent
09c83f23
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
static/js/common.js
static/js/common.js
View file @
e124bde
...
...
@@ -10,6 +10,8 @@ var $footer = $('#yoho-footer'),
$yohoPage
=
$
(
'.yoho-page'
),
$header
=
$
(
'.yoho-header'
);
var
backToTopHammer
;
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
...
...
@@ -158,8 +160,8 @@ function reMarginFooter(fixedElement) {
});
if
(
$op
.
find
(
'.back-to-top'
).
length
>
0
)
{
navHammer
=
new
Hammer
(
document
.
getElementsByClassName
(
'back-to-top'
)[
0
]);
navHammer
.
on
(
'tap'
,
function
(
e
)
{
backToTopHammer
=
new
Hammer
(
document
.
getElementsByClassName
(
'back-to-top'
)[
0
]);
backToTopHammer
.
on
(
'tap'
,
function
(
e
)
{
$
(
window
).
scrollTop
(
0
);
return
false
;
});
...
...
Please
register
or
login
to post a comment