Showing
1 changed file
with
3 additions
and
2 deletions
@@ -1099,8 +1099,8 @@ const _getMaterialDataBySizeInfo = (sizeInfo) => { | @@ -1099,8 +1099,8 @@ const _getMaterialDataBySizeInfo = (sizeInfo) => { | ||
1099 | const _getDetailDataBySizeInfo = (sizeInfo) => { | 1099 | const _getDetailDataBySizeInfo = (sizeInfo) => { |
1100 | let details = ''; | 1100 | let details = ''; |
1101 | 1101 | ||
1102 | - // 详情配图 | ||
1103 | - if (_.has(sizeInfo, 'productIntroBo.phrase')) { | 1102 | + // 详情文字 |
1103 | + if (_.has(sizeInfo, 'productDescBo.phrase')) { | ||
1104 | details += `${sizeInfo.productDescBo.phrase}<br/>`; | 1104 | details += `${sizeInfo.productDescBo.phrase}<br/>`; |
1105 | } | 1105 | } |
1106 | 1106 | ||
@@ -1114,6 +1114,7 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | @@ -1114,6 +1114,7 @@ const _getDetailDataBySizeInfo = (sizeInfo) => { | ||
1114 | 1114 | ||
1115 | let intro = _.get(sizeInfo, 'productIntroBo.productIntro', ''); | 1115 | let intro = _.get(sizeInfo, 'productIntroBo.productIntro', ''); |
1116 | 1116 | ||
1117 | + // 详情配图 | ||
1117 | _(replacePairs).forEach((value, key)=> { | 1118 | _(replacePairs).forEach((value, key)=> { |
1118 | intro = _.replace(intro, key, value); | 1119 | intro = _.replace(intro, key, value); |
1119 | }); | 1120 | }); |
-
Please register or login to post a comment