...
|
...
|
@@ -296,7 +296,7 @@ export function getProductList(paramsDic, template_id) { |
|
|
|
|
|
return new NewArrivalService(app.host).fetchProductList(channel, order, page, pageSize, allFilterFactors, paramsDic)
|
|
|
.then(json => {
|
|
|
let payload = exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex, template_id);
|
|
|
let payload = exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex, app.contentCode);
|
|
|
payload.endReached = payload.currentPage == payload.pageCount;
|
|
|
|
|
|
if (payload.currentPage > 1) {
|
...
|
...
|
@@ -330,7 +330,7 @@ function reShuffleJumpList(jumplist, pageindex, pagesize) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
function exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex, template_id) {
|
|
|
function exposeProductListData(json, order, channel, pageSize, tabId, tabName, prdFloorId, prdFloorName, prdFloorIndex, contentcode) {
|
|
|
let res = json;
|
|
|
try {
|
|
|
let list = json ? json.product_list : [];
|
...
|
...
|
@@ -358,12 +358,13 @@ function exposeProductListData(json, order, channel, pageSize, tabId, tabName, p |
|
|
PRD_CHANNEL: prdChannel,
|
|
|
RECALL_TYPE: recallType,
|
|
|
PRD_TYPE: prdType,
|
|
|
CODE: template_id ? template_id: '',
|
|
|
CODE: contentcode,
|
|
|
F_NAME: prdFloorName,
|
|
|
F_INDEX: prdFloorIndex,
|
|
|
F_ID:prdFloorId,
|
|
|
exposureEnd: 1,
|
|
|
};
|
|
|
|
|
|
}
|
|
|
res.product_list = list;
|
|
|
res.search_resource_list = json.search_resource_list.length> 0 ? json.search_resource_list : []
|
...
|
...
|
|