Authored by lixia.zhang

数据曝光,review by 戴强

@@ -101,7 +101,7 @@ export default class GoodsCell extends React.Component { @@ -101,7 +101,7 @@ export default class GoodsCell extends React.Component {
101 let prd_id = product.product_id; 101 let prd_id = product.product_id;
102 let isGlobal = product.is_global=='Y'?true:false; 102 let isGlobal = product.is_global=='Y'?true:false;
103 let is_limitbuy = product.is_limitbuy=='Y'?true:false; 103 let is_limitbuy = product.is_limitbuy=='Y'?true:false;
104 - let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null; 104 + let yh_exposureData = value.get('yh_exposureData')?value.get('yh_exposureData').toJS():null;
105 105
106 return ( 106 return (
107 <TouchableOpacity 107 <TouchableOpacity
@@ -64,7 +64,7 @@ export default class DoubleImage extends React.Component { @@ -64,7 +64,7 @@ export default class DoubleImage extends React.Component {
64 if (linkType == '0') { 64 if (linkType == '0') {
65 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`; 65 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
66 } else if (linkType == '1') { 66 } else if (linkType == '1') {
67 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 67 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
68 } else if (linkType == '2') { 68 } else if (linkType == '2') {
69 url = linkReource; 69 url = linkReource;
70 } 70 }
@@ -41,14 +41,14 @@ export default class Recommend extends React.Component { @@ -41,14 +41,14 @@ export default class Recommend extends React.Component {
41 let linkReource = rowData.get('resource'); 41 let linkReource = rowData.get('resource');
42 let title = rowData.get('title')?rowData.get('title'):''; 42 let title = rowData.get('title')?rowData.get('title'):'';
43 let url = ''; 43 let url = '';
  44 + let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
44 if (linkType == '0') { 45 if (linkType == '0') {
45 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`; 46 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
46 } else if (linkType == '1') { 47 } else if (linkType == '1') {
47 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 48 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
48 } else if (linkType == '2') { 49 } else if (linkType == '2') {
49 url = linkReource; 50 url = linkReource;
50 } 51 }
51 - let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;  
52 if (yh_exposureData) { 52 if (yh_exposureData) {
53 yh_exposureData = { 53 yh_exposureData = {
54 I_INDEX: 0, 54 I_INDEX: 0,
@@ -53,7 +53,7 @@ export default class RedBrandSwiper extends React.Component { @@ -53,7 +53,7 @@ export default class RedBrandSwiper extends React.Component {
53 if (linkType == '0') { 53 if (linkType == '0') {
54 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`; 54 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`;
55 } else if (linkType == '1') { 55 } else if (linkType == '1') {
56 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 56 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
57 } else if (linkType == '2') { 57 } else if (linkType == '2') {
58 url = linkReource; 58 url = linkReource;
59 } 59 }
@@ -99,7 +99,7 @@ export default class RedBrandSwiper extends React.Component { @@ -99,7 +99,7 @@ export default class RedBrandSwiper extends React.Component {
99 if (linkType == '0') { 99 if (linkType == '0') {
100 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`; 100 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`;
101 } else if (linkType == '1') { 101 } else if (linkType == '1') {
102 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 102 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
103 } else if (linkType == '2') { 103 } else if (linkType == '2') {
104 url = linkReource; 104 url = linkReource;
105 } 105 }
@@ -69,7 +69,7 @@ export default class SingleImage extends React.Component { @@ -69,7 +69,7 @@ export default class SingleImage extends React.Component {
69 if (linkType == '0') { 69 if (linkType == '0') {
70 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`; 70 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
71 } else if (linkType == '1') { 71 } else if (linkType == '1') {
72 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 72 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
73 } else if (linkType == '2') { 73 } else if (linkType == '2') {
74 url = linkReource; 74 url = linkReource;
75 } 75 }
@@ -61,7 +61,7 @@ export default class Title extends React.Component { @@ -61,7 +61,7 @@ export default class Title extends React.Component {
61 if (linkType == '0') { 61 if (linkType == '0') {
62 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`; 62 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}"}}`;
63 } else if (linkType == '1') { 63 } else if (linkType == '1') {
64 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 64 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
65 } else if (linkType == '2') { 65 } else if (linkType == '2') {
66 url = linkReource; 66 url = linkReource;
67 } 67 }
@@ -95,7 +95,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -95,7 +95,7 @@ export default class TripleImageOneBigSide extends Component{
95 if (linkType1 == '0') { 95 if (linkType1 == '0') {
96 url1 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource1}","title":"${title1}"}}`; 96 url1 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource1}","title":"${title1}"}}`;
97 } else if (linkType1 == '1') { 97 } else if (linkType1 == '1') {
98 - url1 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource1}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 98 + url1 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource1}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
99 } else if (linkType1 == '2') { 99 } else if (linkType1 == '2') {
100 url1 = linkReource1; 100 url1 = linkReource1;
101 } 101 }
@@ -110,7 +110,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -110,7 +110,7 @@ export default class TripleImageOneBigSide extends Component{
110 if (linkType2 == '0') { 110 if (linkType2 == '0') {
111 url2 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource2}","title":"${title2}"}}`; 111 url2 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource2}","title":"${title2}"}}`;
112 } else if (linkType2 == '1') { 112 } else if (linkType2 == '1') {
113 - url2 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource2}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 113 + url2 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource2}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
114 } else if (linkType2 == '2') { 114 } else if (linkType2 == '2') {
115 url2 = linkReource2; 115 url2 = linkReource2;
116 } 116 }
@@ -126,7 +126,7 @@ export default class TripleImageOneBigSide extends Component{ @@ -126,7 +126,7 @@ export default class TripleImageOneBigSide extends Component{
126 if (linkType3 == '0') { 126 if (linkType3 == '0') {
127 url3 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource3}","title":"${title3}"}}`; 127 url3 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource3}","title":"${title3}"}}`;
128 } else if (linkType3 == '1') { 128 } else if (linkType3 == '1') {
129 - url3 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource3}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 129 + url3 = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource3}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
130 } else if (linkType3 == '2') { 130 } else if (linkType3 == '2') {
131 url3 = linkReource3; 131 url3 = linkReource3;
132 } 132 }
@@ -58,12 +58,12 @@ export default class TripleImageRectangle extends Component{ @@ -58,12 +58,12 @@ export default class TripleImageRectangle extends Component{
58 let sale = '¥' + originPrice.toFixed(2); 58 let sale = '¥' + originPrice.toFixed(2);
59 let saleAble = false;//salePrice>0?true:false; 59 let saleAble = false;//salePrice>0?true:false;
60 let linkReource = data.resource; 60 let linkReource = data.resource;
61 - 61 + let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
62 let url = ''; 62 let url = '';
63 if (linkType == '0') { 63 if (linkType == '0') {
64 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`; 64 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
65 } else if (linkType == '1') { 65 } else if (linkType == '1') {
66 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 66 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
67 } else if (linkType == '2') { 67 } else if (linkType == '2') {
68 url = linkReource; 68 url = linkReource;
69 } 69 }
@@ -58,12 +58,13 @@ export default class TripleImageSquare extends Component{ @@ -58,12 +58,13 @@ export default class TripleImageSquare extends Component{
58 let sale = '¥' + originPrice.toFixed(2); 58 let sale = '¥' + originPrice.toFixed(2);
59 let saleAble = false;//salePrice>0?true:false; 59 let saleAble = false;//salePrice>0?true:false;
60 let linkReource = data.resource; 60 let linkReource = data.resource;
  61 + let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
61 62
62 let url = ''; 63 let url = '';
63 if (linkType == '0') { 64 if (linkType == '0') {
64 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`; 65 url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.poollist","params":{"productPool":"${linkReource}","title":"${title}"}}`;
65 } else if (linkType == '1') { 66 } else if (linkType == '1') {
66 - url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${this.props.redBrand.shopId}"}}`; 67 + url = `http://m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${linkReource}","from_page_name":"${Platform.OS === 'ios'?'iFP_RedPersonBrand':'aFP_RedPersonBrand'}","from_page_param":"${yh_exposureData?yh_exposureData.P_PARAM:null}"}}`;
67 } else if (linkType == '2') { 68 } else if (linkType == '2') {
68 url = linkReource; 69 url = linkReource;
69 } 70 }