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
09c83f23a3136b52e7f4ac096a06627576fddc5d
1 parent
52b221f1
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
static/js/common.js
static/js/common.js
View file @
09c83f2
...
...
@@ -3,7 +3,8 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/21
*/
var
$
=
require
(
'jquery'
);
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
);
var
$footer
=
$
(
'#yoho-footer'
),
$yohoPage
=
$
(
'.yoho-page'
),
...
...
@@ -155,6 +156,15 @@ function reMarginFooter(fixedElement) {
$
(
window
).
scrollTop
(
0
);
return
false
;
});
if
(
$op
.
find
(
'.back-to-top'
).
length
>
0
)
{
navHammer
=
new
Hammer
(
document
.
getElementsByClassName
(
'back-to-top'
)[
0
]);
navHammer
.
on
(
'tap'
,
function
(
e
)
{
$
(
window
).
scrollTop
(
0
);
return
false
;
});
}
$footer
.
removeClass
(
'hide'
);
}());
...
...
Please
register
or
login
to post a comment