...
|
...
|
@@ -279,8 +279,26 @@ function parseArticleContent(json) { |
|
|
|
|
|
} else if (templateName == 'text') {
|
|
|
|
|
|
} else if (templateName == 'recommend_products') {
|
|
|
let pro_list = data.data;
|
|
|
let prod_ids = '';
|
|
|
for (var j = 0; j < pro_list.length; j++) {
|
|
|
let pro = pro_list[j];
|
|
|
let pro_id = pro.product_id;
|
|
|
if (j == 0) {
|
|
|
prod_ids = pro_id;
|
|
|
}else {
|
|
|
prod_ids = prod_ids + ',' + pro_id;
|
|
|
}
|
|
|
}
|
|
|
let params = {
|
|
|
REC_POSE: 100023,
|
|
|
PRD_ID: prod_ids,
|
|
|
PRD_NUM: pro_list.length,
|
|
|
ACTION_ID: 0,
|
|
|
};
|
|
|
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_CHOOSE_FOR_YOU', params);
|
|
|
}
|
|
|
|
|
|
contents.push(data);
|
|
|
};
|
|
|
}
|
...
|
...
|
|