Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
梁志锋
10 years ago
Commit
b9875946640c92a2339dc0e5ef434fa33a9816e8
1 parent
577f9024
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/js/product/newsale/discount.js
View file @
b987594
...
...
@@ -132,7 +132,7 @@ function search(opt) {
}
//导航类别
if
(
$pre
===
undefined
||
$pre
.
hasClass
(
'new'
))
{
if
(
$pre
.
hasClass
(
'new'
))
{
navType
=
'newest'
;
}
else
if
(
$pre
.
hasClass
(
'price'
))
{
navType
=
'price'
;
...
...
@@ -214,7 +214,7 @@ filter.registerCbFn(search);
//3.筛选无active时点击展开筛选面板
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
$listNav
.
delegate
(
'li'
,
't
ouchstart
'
,
function
()
{
$listNav
.
delegate
(
'li'
,
't
ap
'
,
function
()
{
var
$this
=
$
(
this
),
nav
,
navType
,
...
...
@@ -308,6 +308,8 @@ $(window).scroll(function() {
//当scroll到1/4$goodsContainer高度后继续请求下一页数据
if
(
$
(
window
).
scrollTop
()
+
winH
>
$
(
document
).
height
()
-
0.25
*
$goodsContainer
.
height
())
{
search
();
if
(
$pre
!=
undefined
)
{
search
();
}
}
});
...
...
static/js/product/newsale/newarrival.js
View file @
b987594
...
...
@@ -151,7 +151,7 @@ function search(opt) {
}
//导航类别
if
(
$pre
===
undefined
||
$pre
.
hasClass
(
'today'
))
{
if
(
$pre
.
hasClass
(
'today'
))
{
navType
=
'today'
;
dayLimit
=
1
;
}
else
if
(
$pre
.
hasClass
(
'week'
))
{
...
...
@@ -314,6 +314,8 @@ $(window).scroll(function() {
//当scroll到1/4$goodsContainer高度后继续请求下一页数据
if
(
$
(
window
).
scrollTop
()
+
winH
>
$
(
document
).
height
()
-
0.25
*
$goodsContainer
.
height
())
{
search
();
if
(
$pre
!==
undefined
)
{
search
();
}
}
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment