Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
李靖
7 years ago
Commit
3ddb057d70cfcb0759030a904b75e8236d703e50
1 parent
19267676
mip字段修改
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
apps/mip/controllers/guang.js
apps/mip/controllers/product-detail.js
apps/mip/models/product-detail.js
apps/mip/controllers/guang.js
View file @
3ddb057
...
...
@@ -216,7 +216,6 @@ const detailIndex = (req, res, next) => {
currentHref
:
`
https
:
//m.yohobuy.com/guang/${id}.html`
},
showAnaJson
:
{
addBaiduSite
:
false
,
title
:
`
$
{
detail
.
getArticle
.
article_title
}
|
Yoho
!
Buy
有货
|
潮流购物逛不停`
,
publishTime
:
mipPublishTime
,
pic
:
mipPic
,
...
...
apps/mip/controllers/product-detail.js
View file @
3ddb057
...
...
@@ -15,7 +15,6 @@ exports.index = (req, res, next) => {
let
detailData
=
yield
req
.
ctx
(
productDetailModel
).
index
(
params
);
let
mipPic
=
_
.
get
(
detailData
,
'baseInfo.goods_list[0].images_list[0].image_url'
);
let
mipId
=
_
.
get
(
detailData
,
'baseInfo.product_skn'
);
let
mipDes
=
_
.
get
(
detailData
,
'baseInfo.phrase'
);
let
miptitle
=
_
.
get
(
detailData
,
'baseInfo.product_name'
);
...
...
@@ -28,14 +27,11 @@ exports.index = (req, res, next) => {
currentHref
:
`
https
:
//m.yohobuy.com/product/${detailData.baseInfo.product_skn}.html`
},
showAnaJson
:
{
mipsite
:
false
,
miptitle
:
`
$
{
miptitle
}
|
Yoho
!
Buy
有货
|
潮流购物逛不停`
,
mipId
:
mipId
,
mipPublishTime
:
''
,
mipPic
:
mipPic
,
mipDes
:
mipDes
,
mipUrl
:
`
$
{
req
.
protocol
}:
//m.yohobuy.com${req.originalUrl}`,
miphtml
:
`
$
{
req
.
protocol
}
:
//m.yohobuy.com/mip/product/${mipId}.html`
url
:
`
$
{
req
.
protocol
}:
//m.yohobuy.com${req.originalUrl}`,
title
:
`
$
{
miptitle
}
|
Yoho
!
Buy
有货
|
潮流购物逛不停`
,
pic
:
mipPic
,
des
:
mipDes
,
publishTime
:
''
}
},
detailData
));
})().
catch
(
next
);
...
...
apps/mip/models/product-detail.js
View file @
3ddb057
...
...
@@ -152,8 +152,7 @@ class ProductDetail extends global.yoho.BaseModel {
});
});
resu
.
enterStore
=
build
;
resu
.
title
=
`【
$
{
resu
.
baseInfo
.
brand_info
.
brand_name
}
$
{
resu
.
baseInfo
.
middle_sort_name
}
】
$
{
resu
.
baseInfo
.
product_name
}
`
;
resu
.
title
=
`【
$
{
resu
.
baseInfo
.
brand_info
.
brand_name
}
$
{
resu
.
baseInfo
.
middle_sort_name
}
】
$
{
resu
.
baseInfo
.
product_name
}
`
;
// eslint-disable-line
}
if
(
_
.
get
(
result
,
'[1]'
))
{
...
...
Please
register
or
login
to post a comment