Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
e03257f94863b9e7e210120a0d6bf2e09176097f
1 parent
8d545009
修复商品的文字
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
apps/product/models/detail-service.js
apps/product/models/detail-service.js
View file @
e03257f
...
...
@@ -1099,8 +1099,8 @@ const _getMaterialDataBySizeInfo = (sizeInfo) => {
const
_getDetailDataBySizeInfo
=
(
sizeInfo
)
=>
{
let
details
=
''
;
// 详情配图
if
(
_
.
has
(
sizeInfo
,
'productIntroBo.phrase'
))
{
// 详情文字
if
(
_
.
has
(
sizeInfo
,
'productDescBo.phrase'
))
{
details
+=
`
$
{
sizeInfo
.
productDescBo
.
phrase
}
<
br
/>
`
;
}
...
...
@@ -1114,6 +1114,7 @@ const _getDetailDataBySizeInfo = (sizeInfo) => {
let
intro
=
_
.
get
(
sizeInfo
,
'productIntroBo.productIntro'
,
''
);
// 详情配图
_
(
replacePairs
).
forEach
((
value
,
key
)
=>
{
intro
=
_
.
replace
(
intro
,
key
,
value
);
});
...
...
Please
register
or
login
to post a comment