...
|
...
|
@@ -45,6 +45,9 @@ export function getYearActivityProductList() { |
|
|
.then(json => {
|
|
|
let payload = parseUtils.parsePageInfoList(json);
|
|
|
|
|
|
//对获取的数据进行展示曝光
|
|
|
dispatch(dataExposure(payload));
|
|
|
|
|
|
if (payload.currentPage > 1) {
|
|
|
let oldList = yearActivity.get('list').toJS();
|
|
|
let newList = [...oldList, ...payload.list];
|
...
|
...
|
@@ -82,3 +85,38 @@ export function getYearProductFailure(error) { |
|
|
payload: error
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function dataExposure(payload){
|
|
|
return (dispatch, getState) => {
|
|
|
|
|
|
try {
|
|
|
let productIds = "";
|
|
|
let productCount = 0;
|
|
|
|
|
|
//product list数据
|
|
|
let productList = payload.list;
|
|
|
if(productList && productList.length > 0){
|
|
|
|
|
|
productCount = productList.length;
|
|
|
productList.map((item, i) => {
|
|
|
if(i > 0)
|
|
|
productIds = productIds + "," + item.product_id;
|
|
|
else
|
|
|
productIds = item.product_id;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
REC_POSE: 100100,
|
|
|
REC_ID: payload.rec_id,
|
|
|
PRD_ID: productIds,
|
|
|
PRD_NUM: productCount,
|
|
|
ACTION_ID: 0,
|
|
|
};
|
|
|
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_CHOOSE_FOR_YOU', params);
|
|
|
}
|
|
|
catch(error) {
|
|
|
}
|
|
|
};
|
|
|
} |
...
|
...
|
|