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
周少峰
8 years ago
Commit
43887ec6b182878d0283c155c1d62ac65d58a198
1 parent
eba3440d
goods list
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
config/common.js
utils/product-process.js
config/common.js
View file @
43887ec
...
...
@@ -11,7 +11,7 @@ const isTest = process.env.NODE_ENV === 'test';
module
.
exports
=
{
app
:
'web'
,
appVersion
:
'
4.9
.0'
,
// 调用api的版本
appVersion
:
'
5.3
.0'
,
// 调用api的版本
port
:
6002
,
siteUrl
:
'http://www.yohobuy.com'
,
cookieDomain
:
'.yohobuy.com'
,
...
...
utils/product-process.js
View file @
43887ec
...
...
@@ -192,8 +192,9 @@ exports.processProductList = (list, options) => {
});
product
.
is_few
=
product
.
is_soon_sold_out
===
'Y'
;
product
.
url
=
helpers
.
urlFormat
(
`
/
product
/
pro_$
{
product
.
product_id
}
_$
{
product
.
goods_list
[
0
].
goods_id
}
/${product.cn_alphabet}.html`, '', 'item'
)
; // eslint-disable-lin
e
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
}
// tar add 1606071146 品牌链接处理
product
.
brandUrl
=
helpers
.
urlFormat
(
''
,
''
,
product
.
brand_domain
);
...
...
Please
register
or
login
to post a comment