Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
dd35f099072039ec838dc401396d0e6e3146b8ae
1 parent
38ea00b2
repos footer in list
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
3 deletions
static/js/common.js
static/js/product/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/js/common.js
View file @
dd35f09
...
...
@@ -5,6 +5,10 @@
*/
var
$
=
require
(
'jquery'
);
var
$footer
=
$
(
'#yoho-footer'
);
var
FOOTERHEIGHT
=
120
;
//footer height
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
,
...
...
@@ -90,14 +94,26 @@ function getShoppingKey() {
return
JSON
.
parse
(
c
).
k
;
}
//根据页面内容重新设置通用底部的显示
function
rePosFooter
()
{
if
(
$footer
.
length
===
0
)
{
return
;
}
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
()
-
FOOTERHEIGHT
)
{
$footer
.
addClass
(
'bottom'
);
}
else
{
$footer
.
removeClass
(
'bottom'
);
}
}
//页面通用底部位置及status设置
(
function
()
{
var
$footer
=
$
(
'#yoho-footer'
),
$op
=
$footer
.
children
(
'.op-row'
);
var
$op
=
$footer
.
children
(
'.op-row'
);
var
user
=
getUser
();
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
())
{
if
(
$
(
'body'
).
height
()
<
$
(
window
).
height
()
-
FOOTERHEIGHT
)
{
$footer
.
addClass
(
'bottom'
);
}
...
...
@@ -132,3 +148,5 @@ window.getUser = getUser;
window
.
getUid
=
getUid
;
window
.
getShoppingKey
=
getShoppingKey
;
window
.
rePosFooter
=
rePosFooter
;
...
...
static/js/product/list.js
View file @
dd35f09
...
...
@@ -213,6 +213,8 @@ function search(opt) {
searching
=
false
;
loading
.
hideLoadingMask
();
window
.
rePosFooter
();
}
});
...
...
static/js/product/newsale/discount.js
View file @
dd35f09
...
...
@@ -218,6 +218,8 @@ function search(opt) {
searching
=
false
;
loading
.
hideLoadingMask
();
window
.
rePosFooter
();
}
});
...
...
static/js/product/newsale/newarrival.js
View file @
dd35f09
...
...
@@ -244,6 +244,8 @@ function search(opt) {
searching
=
false
;
loading
.
hideLoadingMask
();
window
.
rePosFooter
();
}
});
...
...
Please
register
or
login
to post a comment