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
84e85a8f445ca7aa4c2d7b8b28ac1cb1265431b6
1 parent
56a4944a
分页6个
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
web-static/js/home/index.js
web-static/js/home/index.js
View file @
84e85a8
...
...
@@ -99,10 +99,21 @@ function pageChange(self, $ul, page, itemWith, curPage, num) {
--
rcCurPage
;
}
PRDID
=
[];
$rcUl
.
find
(
'li'
).
each
(
function
(
index
)
{
if
(
PRDID
.
length
>=
6
)
{
return
false
;
}
if
(
index
>=
(
rcCurPage
-
1
)
*
6
)
{
PRDID
.
push
(
$
(
this
).
find
(
'a'
).
data
(
'id'
));
}
});
window
.
givePoint
({
'REC_POSE'
:
120004
,
'PRD_ID'
:
PRDID
.
slice
((
rcCurPage
-
1
)
*
6
,
(
rcCurPage
-
1
)
*
rcCurPage
+
6
).
join
(
','
),
'PRD_NUM'
:
$rcUl
.
find
(
'li'
).
length
,
'PRD_ID'
:
PRDID
.
join
(
','
),
'PRD_NUM'
:
PRDID
.
length
,
'ACTION_ID'
:
0
,
'page_num'
:
rcCurPage
});
...
...
@@ -111,20 +122,27 @@ function pageChange(self, $ul, page, itemWith, curPage, num) {
}
});
//为您优选埋点 start
setTimeout
(
function
()
{
$rcUl
.
find
(
'li'
).
each
(
function
()
{
PRDID
.
push
(
$
(
this
).
find
(
'a'
).
data
(
'id'
));
});
//为您优选埋点 start
setTimeout
(
function
()
{
PRDID
=
[];
$rcUl
.
find
(
'li'
).
each
(
function
(
index
)
{
if
(
PRDID
.
length
>=
6
)
{
return
false
;
}
if
(
index
>=
0
)
{
PRDID
.
push
(
$
(
this
).
find
(
'a'
).
data
(
'id'
));
}
});
window
.
givePoint
({
'REC_POSE'
:
120004
,
'PRD_ID'
:
PRDID
.
slice
(
0
,
6
).
join
(
','
),
'PRD_NUM'
:
$rcUl
.
find
(
'li'
).
length
,
'PRD_ID'
:
PRDID
.
join
(
','
),
'PRD_NUM'
:
PRDID
.
length
,
'ACTION_ID'
:
0
,
'page_num'
:
1
});
},
3000
);
},
3000
);
$rcUl
.
find
(
'li a'
).
bind
(
'click'
,
function
()
{
var
index
=
$
(
this
).
closest
(
'li'
).
index
()
+
1
;
...
...
Please
register
or
login
to post a comment