...
|
...
|
@@ -43,10 +43,13 @@ export function getYearActivityProductList() { |
|
|
|
|
|
return new yearActivityService(app.host).getYearProductList(channel, pageSize, page)
|
|
|
.then(json => {
|
|
|
let payload = parseUtils.parsePageInfoList(json);
|
|
|
//生成Rec_ID
|
|
|
let rec_id = parseUtils.getRecId();
|
|
|
|
|
|
let payload = parseUtils.parsePageInfoList(json, rec_id);
|
|
|
|
|
|
//对获取的数据进行展示曝光
|
|
|
dispatch(dataExposure(payload));
|
|
|
dispatch(dataExposure(payload, rec_id));
|
|
|
|
|
|
if (payload.currentPage > 1) {
|
|
|
let oldList = yearActivity.get('list').toJS();
|
...
|
...
|
@@ -86,7 +89,7 @@ export function getYearProductFailure(error) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function dataExposure(payload){
|
|
|
function dataExposure(payload, rec_id){
|
|
|
return (dispatch, getState) => {
|
|
|
|
|
|
try {
|
...
|
...
|
@@ -107,14 +110,13 @@ function dataExposure(payload){ |
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
REC_POSE: 100100,
|
|
|
REC_ID: payload.rec_id,
|
|
|
PRD_ID: productIds,
|
|
|
PRD_NUM: productCount,
|
|
|
ACTION_ID: 0,
|
|
|
TYPE_ID: 11,
|
|
|
TOTAL: productCount,
|
|
|
PRD_LIST: productIds,
|
|
|
REC_ID: rec_id,
|
|
|
};
|
|
|
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_CHOOSE_FOR_YOU', params);
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST', params);
|
|
|
}
|
|
|
catch(error) {
|
|
|
}
|
...
|
...
|
|