Authored by 盖剑秋

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

... ... @@ -3,6 +3,8 @@
import ReactNative from 'react-native';
import BrowseService from '../../services/BrowseService';
import Immutable, {Map} from 'immutable';
import {Platform} from 'react-native';
const {
HISTORY_LIST_REQUEST,
HISTORY_LIST_SUCCESS,
... ... @@ -34,11 +36,14 @@ export function setSelectedCategory(catId, index, catName) {
}
});
}
let pName = 'iFP_MineBrowseHistory';
if(Platform.OS === 'android'){
pName = 'aFP_MineBrowseHistory';
}
for (var i = 0; i < newProductList.length; i++) {
let item = newProductList[i];
let yh_exposureData = {
'P_NAME': '浏览记录',
'P_NAME': pName,
'TAB_ID': parseInt(index) + 1,
'TAB_NAME': catName,
'I_INDEX': i + 1,
... ... @@ -124,10 +129,14 @@ function parseHistoryList(json) {
let productList = json && json.product_list ? json.product_list : [];
let categoryList = json && json.category_list ? json.category_list : [];
let pName = 'iFP_MineBrowseHistory';
if(Platform.OS === 'android'){
pName = 'aFP_MineBrowseHistory';
}
for (var i = 0; i < productList.length; i++) {
let item = productList[i];
let yh_exposureData = {
'P_NAME': '浏览记录',
'P_NAME': pName,
'TAB_ID': '1',
'TAB_NAME': '全部',
'I_INDEX': i + 1 + '',
... ...
... ... @@ -3,6 +3,8 @@
import ReactNative from 'react-native';
import ProductService from '../../services/ProductService';
import Immutable, {Map} from 'immutable';
import {Platform} from 'react-native';
const {
PRODUCT_LIST_REQUEST,
PRODUCT_LIST_SUCCESS,
... ... @@ -79,11 +81,14 @@ export function setSelectedCategory(catId, index, catName) {
}
});
}
let pName = 'iFP_MineCollectionGoods';
if(Platform.OS === 'android'){
pName = 'aFP_MineCollectionGoods';
}
for (var i = 0; i < newProductList.length; i++) {
let item = newProductList[i];
let yh_exposureData = {
'P_NAME': '收藏商品',
'P_NAME': pName,
'TAB_ID': '1',
'TAB_NAME': '普通商品',
'L2_TAB_ID': parseInt(index) + 1,
... ... @@ -170,10 +175,14 @@ function parseCommonList(json) {
let productList = json && json.product_list ? json.product_list : [];
let pName = 'iFP_MineCollectionGoods';
if(Platform.OS === 'android'){
pName = 'aFP_MineCollectionGoods';
}
for (var i = 0; i < productList.length; i++) {
let item = productList[i];
let yh_exposureData = {
'P_NAME': '收藏商品',
'P_NAME': pName,
'TAB_ID': '1',
'TAB_NAME': '普通商品',
'L2_TAB_ID': '1',
... ...