Authored by zhangxiaoru

editorial样式

@@ -464,16 +464,17 @@ const _getArticlePre = (id, appType) => { @@ -464,16 +464,17 @@ const _getArticlePre = (id, appType) => {
464 console.log(result.message); 464 console.log(result.message);
465 if (result && result.code === 200) { 465 if (result && result.code === 200) {
466 let perArticle = {}; 466 let perArticle = {};
467 - let id = result.data.articleIdPre; 467 +
  468 + // let id = result.data.articleIdPre;
468 469
469 perArticle.href = `${config.siteUrl}/editorial/${result.data.articleIdPre}.html`; 470 perArticle.href = `${config.siteUrl}/editorial/${result.data.articleIdPre}.html`;
470 - console.log()  
471 - _getHeadData(id, appType).then((list) => {  
472 - console.log(list) 471 +
  472 + _getHeadData(result.data.articleIdPre, appType).then((list) => {
  473 + console.log(list);
473 perArticle.lastChapter = list.title; 474 perArticle.lastChapter = list.title;
474 475
475 }).then(() => { 476 }).then(() => {
476 - console.log(perArticle) 477 + console.log(perArticle);
477 return perArticle; 478 return perArticle;
478 }); 479 });
479 480
@@ -729,7 +729,8 @@ const getExchangeDetailData = (id, uid) => { @@ -729,7 +729,8 @@ const getExchangeDetailData = (id, uid) => {
729 729
730 if (result[0] && result[0].data) { 730 if (result[0] && result[0].data) {
731 let data = result[0].data; 731 let data = result[0].data;
732 - //console.log(data) 732 +
  733 + // console.log(data)
733 _.forEach(data.goods_list, function(value) { 734 _.forEach(data.goods_list, function(value) {
734 _.forEach(value.evidence_images, function(list, index) { 735 _.forEach(value.evidence_images, function(list, index) {
735 value.evidence_images[index] = list.substring(0, list.indexOf('?')); 736 value.evidence_images[index] = list.substring(0, list.indexOf('?'));