Authored by 于良

Merge branch '5.5.0' of http://git.yoho.cn/mobile/YH_RNComponent into 5.5.0

... ... @@ -44,6 +44,7 @@ export default class SingleNameImage extends React.Component {
<HeadTitleCell title={title} />
<TouchableOpacity
activeOpacity={1}
yh_exposureData={data.get(0).get('yh_exposureData')}
onPress={() => {
this.props.onPressSlideItem && this.props.onPressSlideItem(data.get(0).get('url'), imageUrl, 0);
}}
... ...
... ... @@ -835,10 +835,28 @@ function homeFloorAutoReportData(list,channel) {
break;
}
case 'single_image': {
break;
//list添加曝光数据
let itemList = floorData ? floorData : [];
for (let j = 0; j < itemList.length; j++) {
let imageItem = itemList[j];
let inFloorIndex = parseInt(j) + 1 + '';
let actionUrl = imageItem.url;
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
imageItem.yh_exposureData = param;
}
break;
}
case 'single_name_image': {
break;
//list添加曝光数据
let itemList = floorData ? floorData : [];
for (let j = 0; j < itemList.length; j++) {
let imageItem = itemList[j];
let inFloorIndex = parseInt(j) + 1 + '';
let actionUrl = imageItem.url;
let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
imageItem.yh_exposureData = param;
}
break;
}
case 'recommend_content_one': {
let recommend_content_onelarge = item.data.big_image?item.data.big_image:[];
... ... @@ -1075,6 +1093,13 @@ function homeFloorAutoReportData(list,channel) {
break;
}
case 'shopRecommend': {
//more添加曝光数据
let title = floorData.title ? floorData.title : {};
let moreUrl = title.more_url ? title.more_url : "";
let titleParam = autoReportData(channlStr,floorName,floorID,floorIndex,"0",moreUrl);
title.yh_exposureData = titleParam ? titleParam : "";
break;
}
... ...