...
|
...
|
@@ -61,7 +61,7 @@ const qaDetail = (params) => { |
|
|
let keyList = result[1].data.helper_list;
|
|
|
|
|
|
_.forEach(keyList, function(val) {
|
|
|
if (val.id === params.sonId) {
|
|
|
if (parseInt(val.id, 10) === parseInt(params.sonId, 10)) {
|
|
|
resu = {
|
|
|
caption: val.caption,
|
|
|
content: val.content
|
...
|
...
|
@@ -74,7 +74,7 @@ const qaDetail = (params) => { |
|
|
if (result && result[0] && result[0].data) {
|
|
|
if (!params.parentId) {
|
|
|
_.forEach(result[0].data.faqs, function(val) {
|
|
|
if (val.id === params.sonId) {
|
|
|
if (parseInt(val.id, 10) === parseInt(params.sonId, 10)) {
|
|
|
resu = {
|
|
|
caption: val.caption,
|
|
|
content: val.content
|
...
|
...
|
@@ -83,10 +83,10 @@ const qaDetail = (params) => { |
|
|
});
|
|
|
} else {
|
|
|
_.forEach(result[0].data.categorys, function(val) {
|
|
|
if (val.id === params.parentId) {
|
|
|
if (parseInt(val.id, 10) === parseInt(params.parentId, 10)) {
|
|
|
_.forEach(val.contentItems, function(item) {
|
|
|
|
|
|
if (item.id === params.sonId) {
|
|
|
if (parseInt(item.id, 10) === parseInt(params.sonId, 10)) {
|
|
|
resu = {
|
|
|
caption: item.caption,
|
|
|
content: item.content
|
...
|
...
|
|