...
|
...
|
@@ -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 + '',
|
...
|
...
|
|