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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
7ff832401956d1e3397e214509c4ac4fa71c8988
2 parents
cf1422f9
8d6278f0
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
framework
static/js/common.js
static/js/index/footer.js
framework
@
75bbc3b0
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
static/js/common.js
View file @
7ff8324
...
...
@@ -10,8 +10,6 @@ var $footer = $('#yoho-footer'),
$yohoPage
=
$
(
'.yoho-page'
),
$header
=
$
(
'.yoho-header'
);
var
backToTopHammer
;
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
...
...
@@ -134,6 +132,8 @@ function reMarginFooter(fixedElement) {
var
user
=
getUser
();
var
backToTopHammer
;
rePosFooter
();
//计算底部位置
if
(
user
===
0
)
{
...
...
@@ -154,15 +154,11 @@ function reMarginFooter(fixedElement) {
);
}
$op
.
find
(
'.back-to-top'
).
on
(
'touchend'
,
function
()
{
$
(
window
).
scrollTop
(
0
);
return
false
;
});
if
(
$op
.
find
(
'.back-to-top'
).
length
>
0
)
{
backToTopHammer
=
new
Hammer
(
document
.
getElementsByClassName
(
'
back-to-top'
)[
0
]);
backToTopHammer
=
new
Hammer
(
$op
.
find
(
'.
back-to-top'
)[
0
]);
backToTopHammer
.
on
(
'tap'
,
function
(
e
)
{
$
(
window
).
scrollTop
(
0
);
e
.
srcEvent
.
preventDefault
();
return
false
;
});
}
...
...
static/js/index/footer.js
View file @
7ff8324
...
...
@@ -15,7 +15,7 @@ function downLoadApp() {
var
appUrl
=
'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445'
;
var
clickedAt
=
new
Date
();
setTimeout
(
function
()
{
setTimeout
(
function
()
{
if
((
new
Date
())
-
clickedAt
<
2000
)
{
window
.
location
=
appUrl
;
}
...
...
Please
register
or
login
to post a comment