...
|
...
|
@@ -231,7 +231,17 @@ const _processDetailData = (result, params) => { |
|
|
id: 1,
|
|
|
commonProblem: true,
|
|
|
faqs: data.faqs,
|
|
|
allQa: _.get(result, '[2].data', [])
|
|
|
allQa: _.get(result, '[2].data.list', []),
|
|
|
paginationData: {
|
|
|
page: _.get(result, '[2].data.page', 1),
|
|
|
limit: _.get(result, '[2].data.page_size', 15),
|
|
|
total: _.get(result, '[2].data.total', 15),
|
|
|
pageTotal: _.get(result, '[2].data.page_total', 15),
|
|
|
queryParams: {
|
|
|
id: params.id,
|
|
|
page: params.page
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -299,7 +309,7 @@ const detailData = (params) => { |
|
|
];
|
|
|
|
|
|
if (params.id === 1 && !params.keywords) {
|
|
|
promiseData.push(helpApi.allQA());
|
|
|
promiseData.push(helpApi.allQA(params.page));
|
|
|
}
|
|
|
|
|
|
return Promise.all(promiseData).then(result => {
|
...
|
...
|
|