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
Plain Diff
Browse Files
Authored by
毕凯
7 years ago
Commit
98eaf6d4ff5785f58bdb1fb1a8d9b383a62e6eaa
2 parents
48c9d610
1d30270d
Merge branch 'feature/mip' into 'gray'
Feature/mip See merge request
!1093
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
apps/mip/controllers/guang.js
doraemon/views/mip.hbs
apps/mip/controllers/guang.js
View file @
98eaf6d
...
...
@@ -10,6 +10,7 @@ const guangProcess = require(`${global.utils}/guang-process`);
const
mRoot
=
'../models'
;
const
DetailModel
=
require
(
`
$
{
mRoot
}
/guang`
)
;
const
typeLib
=
require
(
'../../../config/type-lib'
);
const
moment
=
require
(
'moment'
);
const
channels
=
{
boys
:
1
,
girl
:
2
,
...
...
@@ -17,6 +18,10 @@ const channels = {
lifestyle
:
4
};
const
mipDate
=
(
day
)
=>
{
return
moment
(
day
).
format
(
'YYYY-MM-DDTHH:mm:ss'
);
};
// const testStr = '';
/**
...
...
@@ -202,7 +207,11 @@ const detailIndex = (req, res, next) => {
css
:
yield
css
(
'guang/detail.css'
),
gender
:
gender
,
localStyle
:
processContents
.
css
,
title
:
detail
.
getArticle
.
article_title
title
:
detail
.
getArticle
.
article_title
,
mipId
:
id
,
mipPublishTime
:
mipDate
(
detail
.
getArticle
.
publish_time
*
1000
),
mipPic
:
detail
.
getArticle
.
cover_image
?
detail
.
getArticle
.
cover_image
.
split
(
'?'
)[
0
]
:
''
,
mipDes
:
detail
.
getArticle
.
article_summary
},
data
));
})().
catch
(
next
);
};
...
...
doraemon/views/mip.hbs
View file @
98eaf6d
...
...
@@ -5,7 +5,7 @@
<meta
name=
"viewport"
content=
"width=device-width,minimum-scale=1,initial-scale=1"
>
<title>
{{
title
}}
| Yoho!Buy有货 | 潮流购物逛不停
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://mipcache.bdstatic.com/static/v1/mip.css"
>
<link
rel=
"canonical"
href=
"
{{
canonical
}}
"
>
<link
rel=
"canonical"
href=
"
https://www.yohobuy.com/guang/
{{
mipId
}}
.html"
/
>
<style
mip-custom
>
.main-wrap{width: 100%;max-width: 750px;margin: 0 auto;}
{{
css
}}
...
...
@@ -19,5 +19,20 @@
<script
src=
"https://mipcache.bdstatic.com/static/v1/mip-stats-baidu/mip-stats-baidu.js"
></script>
<script
src=
"https://mipcache.bdstatic.com/static/v1/mip-anim/mip-anim.js"
></script>
<script
src=
"https://mipcache.bdstatic.com/static/v1/mip-audio/mip-audio.js"
></script>
<script
src=
"https://mipcache.bdstatic.com/extensions/platform/v1/mip-cambrian/mip-cambrian.js"
></script>
<script
type=
"application/ld+json"
>
{
@context: "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
@id: "https://m.yohobuy.com/mip/guang/info/
{{
mipId
}}
.html",
appid: "1583402501013173",
title: "
{{
title
}}
| Yoho!Buy有货 | 潮流购物逛不停",
images: [
"
{{
mipPic
}}
"
],
description: "
{{
mipDes
}}
",
pubDate: "
{{
mipPublishTime
}}
"
}
</script>
</body>
<mip-cambrian
site-id=
"1583402501013173"
></mip-cambrian>
</html>
...
...
Please
register
or
login
to post a comment