|
|
@@ -1,4 +1,5 @@
|
|
1
|
1
|
import { resolveFileUrl } from '@/utils/image'
|
|
|
2
|
+import { prepareRichHtml } from '@/utils/htmlContent'
|
|
2
|
3
|
import { formatPrice } from '@/utils/format'
|
|
3
|
4
|
import { PAGE_GOODS_DETAIL } from '@/utils/pageRoute'
|
|
4
|
5
|
import { joinCartSpecParts } from '@/utils/cartSpec'
|
|
|
@@ -40,7 +41,7 @@ export function mapGoodsDetail(data) {
|
|
40
|
41
|
goodsStatus: data.goodsStatus,
|
|
41
|
42
|
goodsStatusLabel: data.goodsStatusLabel,
|
|
42
|
43
|
categoryPath: data.categoryPath,
|
|
43
|
|
- detailContent: data.detailContent || '',
|
|
|
44
|
+ detailContent: prepareRichHtml(data.detailContent),
|
|
44
|
45
|
attributes: data.attributes || [],
|
|
45
|
46
|
specDisplay: data.specDisplay || [],
|
|
46
|
47
|
services: (data.services || []).map(mapService),
|