Authored by 盖剑秋

Change data exposure of mine from Chinese to English. reviewed by Boss Lin.

@@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
3 import ReactNative from 'react-native'; 3 import ReactNative from 'react-native';
4 import BrowseService from '../../services/BrowseService'; 4 import BrowseService from '../../services/BrowseService';
5 import Immutable, {Map} from 'immutable'; 5 import Immutable, {Map} from 'immutable';
  6 +import {Platform} from 'react-native';
  7 +
6 const { 8 const {
7 HISTORY_LIST_REQUEST, 9 HISTORY_LIST_REQUEST,
8 HISTORY_LIST_SUCCESS, 10 HISTORY_LIST_SUCCESS,
@@ -34,11 +36,14 @@ export function setSelectedCategory(catId, index, catName) { @@ -34,11 +36,14 @@ export function setSelectedCategory(catId, index, catName) {
34 } 36 }
35 }); 37 });
36 } 38 }
37 - 39 + let pName = 'iFP_MineBrowseHistory';
  40 + if(Platform.OS === 'android'){
  41 + pName = 'aFP_MineBrowseHistory';
  42 + }
38 for (var i = 0; i < newProductList.length; i++) { 43 for (var i = 0; i < newProductList.length; i++) {
39 let item = newProductList[i]; 44 let item = newProductList[i];
40 let yh_exposureData = { 45 let yh_exposureData = {
41 - 'P_NAME': '浏览记录', 46 + 'P_NAME': pName,
42 'TAB_ID': parseInt(index) + 1, 47 'TAB_ID': parseInt(index) + 1,
43 'TAB_NAME': catName, 48 'TAB_NAME': catName,
44 'I_INDEX': i + 1, 49 'I_INDEX': i + 1,
@@ -124,10 +129,14 @@ function parseHistoryList(json) { @@ -124,10 +129,14 @@ function parseHistoryList(json) {
124 let productList = json && json.product_list ? json.product_list : []; 129 let productList = json && json.product_list ? json.product_list : [];
125 let categoryList = json && json.category_list ? json.category_list : []; 130 let categoryList = json && json.category_list ? json.category_list : [];
126 131
  132 + let pName = 'iFP_MineBrowseHistory';
  133 + if(Platform.OS === 'android'){
  134 + pName = 'aFP_MineBrowseHistory';
  135 + }
127 for (var i = 0; i < productList.length; i++) { 136 for (var i = 0; i < productList.length; i++) {
128 let item = productList[i]; 137 let item = productList[i];
129 let yh_exposureData = { 138 let yh_exposureData = {
130 - 'P_NAME': '浏览记录', 139 + 'P_NAME': pName,
131 'TAB_ID': '1', 140 'TAB_ID': '1',
132 'TAB_NAME': '全部', 141 'TAB_NAME': '全部',
133 'I_INDEX': i + 1 + '', 142 'I_INDEX': i + 1 + '',
@@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
3 import ReactNative from 'react-native'; 3 import ReactNative from 'react-native';
4 import ProductService from '../../services/ProductService'; 4 import ProductService from '../../services/ProductService';
5 import Immutable, {Map} from 'immutable'; 5 import Immutable, {Map} from 'immutable';
  6 +import {Platform} from 'react-native';
  7 +
6 const { 8 const {
7 PRODUCT_LIST_REQUEST, 9 PRODUCT_LIST_REQUEST,
8 PRODUCT_LIST_SUCCESS, 10 PRODUCT_LIST_SUCCESS,
@@ -79,11 +81,14 @@ export function setSelectedCategory(catId, index, catName) { @@ -79,11 +81,14 @@ export function setSelectedCategory(catId, index, catName) {
79 } 81 }
80 }); 82 });
81 } 83 }
82 - 84 + let pName = 'iFP_MineCollectionGoods';
  85 + if(Platform.OS === 'android'){
  86 + pName = 'aFP_MineCollectionGoods';
  87 + }
83 for (var i = 0; i < newProductList.length; i++) { 88 for (var i = 0; i < newProductList.length; i++) {
84 let item = newProductList[i]; 89 let item = newProductList[i];
85 let yh_exposureData = { 90 let yh_exposureData = {
86 - 'P_NAME': '收藏商品', 91 + 'P_NAME': pName,
87 'TAB_ID': '1', 92 'TAB_ID': '1',
88 'TAB_NAME': '普通商品', 93 'TAB_NAME': '普通商品',
89 'L2_TAB_ID': parseInt(index) + 1, 94 'L2_TAB_ID': parseInt(index) + 1,
@@ -170,10 +175,14 @@ function parseCommonList(json) { @@ -170,10 +175,14 @@ function parseCommonList(json) {
170 175
171 let productList = json && json.product_list ? json.product_list : []; 176 let productList = json && json.product_list ? json.product_list : [];
172 177
  178 + let pName = 'iFP_MineCollectionGoods';
  179 + if(Platform.OS === 'android'){
  180 + pName = 'aFP_MineCollectionGoods';
  181 + }
173 for (var i = 0; i < productList.length; i++) { 182 for (var i = 0; i < productList.length; i++) {
174 let item = productList[i]; 183 let item = productList[i];
175 let yh_exposureData = { 184 let yh_exposureData = {
176 - 'P_NAME': '收藏商品', 185 + 'P_NAME': pName,
177 'TAB_ID': '1', 186 'TAB_ID': '1',
178 'TAB_NAME': '普通商品', 187 'TAB_NAME': '普通商品',
179 'L2_TAB_ID': '1', 188 'L2_TAB_ID': '1',