Authored by huangyCode

砍价列表埋点

... ... @@ -39,7 +39,7 @@ export function setSelectedCategory(index) {
if (index == 0 && list.length == 0) {
dispatch(getHaggleProductList());
}else if (index == 1 && myList.length == 0){
} else if (index == 1 && myList.length == 0) {
dispatch(getMyHaggleProductList());
}
};
... ... @@ -55,7 +55,7 @@ export function refreshProductList(index) {
if (index == 0) {
dispatch(getHaggleProductList());
}else if (index == 1){
} else if (index == 1) {
dispatch(getMyHaggleProductList());
}
... ... @@ -114,6 +114,7 @@ export function myHaggleProductListFailure(error) {
payload: error
};
}
export function getResourceRequest() {
return {
type: RESOURCE_INFO_REQUEST,
... ... @@ -228,7 +229,7 @@ export function getMyHaggleProductList() {
function exposeProductListData(json) {
let res = json;
try{
try {
let list = json ? json.list : [];
if (!list) {
return json;
... ... @@ -242,14 +243,16 @@ function exposeProductListData(json) {
let inFloorIndex = parseInt(i) + 1 + json.page_size * (json.page - 1) + '';
item.yh_exposureData = {
P_NAME: pageName,
P_PARAM:item.activityId,
P_PARAM: item.activityId,
I_INDEX: inFloorIndex,
PRD_SKN: item.productSkn,
PRD_CHANNEL: item.productType ? "UFO" : "",
exposureEnd: 1
};
}
res.list = list;
}catch(error){}
} catch (error) {
}
return res;
}
... ...