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
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
4d83b4d11e3775fc62c3886bc477dbdc2c178f5f
2 parents
3089b309
50dd75b8
Merge branch 'hotfix/goodsErr'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
utils/product-process.js
utils/product-process.js
View file @
4d83b4d
...
...
@@ -192,9 +192,7 @@ exports.processProductList = (list, options) => {
});
product
.
is_few
=
product
.
is_soon_sold_out
===
'Y'
;
if
(
product
.
goods_list
[
0
])
{
product
.
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
product
.
product_id
}
_$
{
product
.
goods_list
[
0
].
goods_id
}
/${product.cn_alphabet}.html`, '', 'item'
)
; // eslint-disable-lin
e
}
product
.
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
product
.
product_id
}
_$
{
_
.
get
(
product
,
'goods_list[0].goods_id'
,
0
)}
/${product.cn_alphabet}.html`, '', 'item'
)
; // eslint-disable-lin
e
// tar add 1606071146 品牌链接处理
product
.
brandUrl
=
helpers
.
urlFormat
(
''
,
''
,
product
.
brand_domain
);
...
...
Please
register
or
login
to post a comment