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 { @@ -44,6 +44,7 @@ export default class SingleNameImage extends React.Component {
44 <HeadTitleCell title={title} /> 44 <HeadTitleCell title={title} />
45 <TouchableOpacity 45 <TouchableOpacity
46 activeOpacity={1} 46 activeOpacity={1}
  47 + yh_exposureData={data.get(0).get('yh_exposureData')}
47 onPress={() => { 48 onPress={() => {
48 this.props.onPressSlideItem && this.props.onPressSlideItem(data.get(0).get('url'), imageUrl, 0); 49 this.props.onPressSlideItem && this.props.onPressSlideItem(data.get(0).get('url'), imageUrl, 0);
49 }} 50 }}
@@ -835,10 +835,28 @@ function homeFloorAutoReportData(list,channel) { @@ -835,10 +835,28 @@ function homeFloorAutoReportData(list,channel) {
835 break; 835 break;
836 } 836 }
837 case 'single_image': { 837 case 'single_image': {
838 - break; 838 + //list添加曝光数据
  839 + let itemList = floorData ? floorData : [];
  840 + for (let j = 0; j < itemList.length; j++) {
  841 + let imageItem = itemList[j];
  842 + let inFloorIndex = parseInt(j) + 1 + '';
  843 + let actionUrl = imageItem.url;
  844 + let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
  845 + imageItem.yh_exposureData = param;
  846 + }
  847 + break;
839 } 848 }
840 case 'single_name_image': { 849 case 'single_name_image': {
841 - break; 850 + //list添加曝光数据
  851 + let itemList = floorData ? floorData : [];
  852 + for (let j = 0; j < itemList.length; j++) {
  853 + let imageItem = itemList[j];
  854 + let inFloorIndex = parseInt(j) + 1 + '';
  855 + let actionUrl = imageItem.url;
  856 + let param = autoReportData(channlStr,floorName,floorID,floorIndex,inFloorIndex,actionUrl);
  857 + imageItem.yh_exposureData = param;
  858 + }
  859 + break;
842 } 860 }
843 case 'recommend_content_one': { 861 case 'recommend_content_one': {
844 let recommend_content_onelarge = item.data.big_image?item.data.big_image:[]; 862 let recommend_content_onelarge = item.data.big_image?item.data.big_image:[];
@@ -1075,6 +1093,13 @@ function homeFloorAutoReportData(list,channel) { @@ -1075,6 +1093,13 @@ function homeFloorAutoReportData(list,channel) {
1075 break; 1093 break;
1076 } 1094 }
1077 case 'shopRecommend': { 1095 case 'shopRecommend': {
  1096 + //more添加曝光数据
  1097 + let title = floorData.title ? floorData.title : {};
  1098 + let moreUrl = title.more_url ? title.more_url : "";
  1099 + let titleParam = autoReportData(channlStr,floorName,floorID,floorIndex,"0",moreUrl);
  1100 + title.yh_exposureData = titleParam ? titleParam : "";
  1101 +
  1102 +
1078 1103
1079 break; 1104 break;
1080 } 1105 }