Authored by 毕凯

Merge branch 'hotfix/mipGuang' into 'release/6.3'

Hotfix/mip guang



See merge request !1169
... ... @@ -211,7 +211,8 @@ const detailIndex = (req, res, next) => {
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
mipDes: detail.getArticle.article_summary,
mipUrl: `https://m.yohobuy.com${req.originalUrl}`
}, data));
})().catch(next);
};
... ...
... ... @@ -3,13 +3,15 @@
width: 100%;
overflow: hidden;
background-color: #f0f0f0;
margin:0 auto;
margin: 0 auto;
}
.clearfix:after {
content: '';
content: "";
display: block;
clear: both;
}
.guang-detail-c .editor-info {
width: 100%;
height: 65px;
... ... @@ -17,6 +19,7 @@
padding: 0 20px;
background-color: #fff;
}
.editor-info .pic {
border-radius: 50%;
overflow: hidden;
... ... @@ -25,6 +28,7 @@
height: 45px;
float: left;
}
.editor-info .name {
line-height: 65px;
float: left;
... ... @@ -32,6 +36,7 @@
color: #000;
padding-left: 20px;
}
.editor-info .intro {
line-height: 65px;
float: left;
... ... @@ -39,21 +44,26 @@
color: #b0b0b0;
padding-left: 20px;
}
.article-info {
padding: 10px 20px;
background-color: #fff;
}
.article-info .name {
line-height: 30px;
font-size: 20px;
color: #000;
font-weight: bold;
clear: both;
}
.article-info .view-c {
color: #b0b0b0;
font-size: 12px;
line-height: 30px;
}
.guang-content {
padding: 0 20px 20px;
background-color: #fff;
... ... @@ -62,38 +72,46 @@
box-sizing: border-box;
width: 100%;
}
.guang-content p {
padding: 5px 0;
}
.guang-content .pic {
clear: both;
margin: 0 auto;
display: block;
max-width: 100%;
}
.related-goods {
float: left;
width: 100%;
background-color: #fff;
}
.related-goods .good-item {
width: 100%;
border-top: 1px solid #e0e0e0;
float: left;
padding: 20px 0;
}
.related-goods .good-item .pic {
width: 25%;
float: left;
}
.pic-mip {
max-width: 100%;
}
.related-goods .good-item .info {
width: 70%;
float: left;
margin-left: 5%;
}
.related-goods .good-item .name {
color: #000;
padding: 10px 0;
... ... @@ -105,10 +123,12 @@
-webkit-box-orient: vertical;
line-height: 25px;
}
.related-goods .good-item .price{
.related-goods .good-item .price {
color: #d62927;
font-size: 14px;
}
.more-goods {
height: 40px;
line-height: 40px;
... ... @@ -120,6 +140,7 @@
padding: 0 20px;
display: block;
}
.recommend-goods {
width: 100%;
overflow-x: scroll;
... ... @@ -128,6 +149,7 @@
background-color: #fff;
-webkit-overflow-scrolling: touch;
}
.good-scroll {
height: 133px;
margin: 20px 0;
... ... @@ -135,13 +157,15 @@
display: inline-flex;
padding-right: 20px;
}
.recommend-goods .good-item {
float: left;
position: relative;
width: 100px;
margin-left: 20px;
}
.recommend-goods .good-item .price{
.recommend-goods .good-item .price {
width: 100px;
height: 20px;
color: #fff;
... ... @@ -153,14 +177,17 @@
background-color: #000;
opacity: 0.7;
}
.related-brand {
background-color: #fff;
}
.brand-c {
width: 100%;
float: left;
background-color: #fff;
}
.related-brand .title {
line-height: 60px;
text-align: center;
... ... @@ -168,11 +195,13 @@
font-size: 18px;
background-color: #fff;
}
.brand-item {
width: 20%;
margin: 10px 2.5%;
float: left;
}
.brand-item p {
font-size: 13px;
color: #babac2;
... ... @@ -183,6 +212,7 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.brand-tag {
border-top: 1px solid #e0e0e0;
float: left;
... ... @@ -192,7 +222,8 @@
padding-right: 20px;
box-sizing: border-box;
}
.brand-tag .tag{
.brand-tag .tag {
background-color: #444;
float: left;
color: #fff;
... ... @@ -200,6 +231,7 @@
padding: 0 10px;
margin: 20px 0 0 20px;
}
.related-info {
margin: 20px 0;
padding: 20px;
... ... @@ -207,21 +239,25 @@
float: left;
padding-bottom: 0;
}
.related-info .info-item {
width: 100%;
float: left;
margin-bottom: 20px;
}
.related-info .info-item .pic {
width: 35%;
float: left;
}
.related-info .info-item .info {
width: 60%;
margin-left: 5%;
float: left;
}
.related-info .info-item .title{
.related-info .info-item .title {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
... ... @@ -229,26 +265,31 @@
overflow: hidden;
line-height: 20px;
}
.related-info .info-item .time {
color: #b0b0b0;
line-height: 22px;
}
.big-pic {
position: relative;
margin-bottom: 3px;
clear: both;
}
.small-pic {
position: relative;
margin-bottom: 3px;
width: 100%;
}
.small-pic .pic {
float: left;
width: 50%;
clear: none;
max-width: 50%;
}
.tag-list-box {
width: 100%;
left: 0;
... ... @@ -256,9 +297,11 @@
position: absolute;
padding: 10px;
}
.label-box {
clear: both;
}
.lable-info-box {
font-size: 12px;
background-color: rgba(0, 0, 0, 0.6);
... ... @@ -274,11 +317,13 @@
white-space: nowrap;
margin-top: 5px;
}
.lable-info-box a {
color: #fff;
overflow: hidden;
text-overflow: ellipsis;
}
.lable-focus {
float: left;
display: flex;
... ... @@ -288,6 +333,7 @@
margin-right: 15px;
margin-top: 5px;
}
.lable-focus .focus-big {
display: flex;
align-items: center;
... ... @@ -299,6 +345,7 @@
-webkit-justify-content: center;
justify-content: center;
}
.lable-focus .focus-small {
width: 17px;
height: 17px;
... ... @@ -308,5 +355,3 @@
transform: scale(0.5, 0.5);
margin: 0;
}
... ...
... ... @@ -14,7 +14,7 @@
<script type="application/ld+json">
{
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
"@id": "https://m.yohobuy.com/mip/guang/info/{{mipId}}.html",
"@id": "{{mipUrl}}",
"appid": "1583402501013173",
"title": "{{title}} | Yoho!Buy有货 | 潮流购物逛不停",
"images": [
... ...