Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
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
chenl
8 years ago
Commit
2ff4723d2530b500226830a9ef45d45b800d7ba4
1 parent
14e6bfac
增加好点推荐数据。review by sunkai。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
js/home/utils/floorParser.js
js/home/utils/floorParser.js
View file @
2ff4723
...
...
@@ -1099,9 +1099,40 @@ function homeFloorAutoReportData(list,channel) {
let
titleParam
=
autoReportData
(
channlStr
,
floorName
,
floorID
,
floorIndex
,
"0"
,
moreUrl
);
title
.
yh_exposureData
=
titleParam
?
titleParam
:
""
;
//list添加曝光数据
let
inFloorIndex
=
0
;
let
itemList
=
floorData
.
list
?
floorData
.
list
:
[];
for
(
let
j
=
0
;
j
<
itemList
.
length
;
j
++
)
{
inFloorIndex
=
inFloorIndex
+
1
;
let
imageItem
=
itemList
[
j
];
let
actionUrl
=
imageItem
.
url
;
let
param
=
autoReportData
(
channlStr
,
floorName
,
floorID
,
floorIndex
,
inFloorIndex
,
actionUrl
);
imageItem
.
yh_exposureData
=
param
;
break
;
//添加商品1曝光数据
if
(
imageItem
.
goods0
){
inFloorIndex
=
inFloorIndex
+
1
;
let
url
=
imageItem
.
goods0
.
url
;
let
goodsParam
=
autoReportData
(
channlStr
,
floorName
,
floorID
,
floorIndex
,
inFloorIndex
,
url
);
imageItem
.
goods0
.
yh_exposureData
=
goodsParam
;
}
//添加商品2曝光数据
if
(
imageItem
.
goods1
){
inFloorIndex
=
inFloorIndex
+
1
;
let
url
=
imageItem
.
goods1
.
url
;
let
goodsParam
=
autoReportData
(
channlStr
,
floorName
,
floorID
,
floorIndex
,
inFloorIndex
,
url
);
imageItem
.
goods1
.
yh_exposureData
=
goodsParam
;
}
//添加商品3曝光数据
if
(
imageItem
.
goods2
){
inFloorIndex
=
inFloorIndex
+
1
;
let
url
=
imageItem
.
goods2
.
url
;
let
goodsParam
=
autoReportData
(
channlStr
,
floorName
,
floorID
,
floorIndex
,
inFloorIndex
,
url
);
imageItem
.
goods2
.
yh_exposureData
=
goodsParam
;
}
}
console
.
log
(
"chenlin"
,
JSON
.
stringify
(
itemList
));
break
;
}
case
'sixLinesFloor'
:
{
//more添加曝光数据
...
...
Please
register
or
login
to post a comment