Authored by zhangxiaoru

editorial

... ... @@ -254,7 +254,6 @@ const _processContentData = (list) => {
if (value.singleImage) {
_.forEach(value.singleImage.data, function(data, index) {
console.log(data);
if (index === 0) {
contentData = _.assign(contentData, {
shareImg: data.src
... ... @@ -263,6 +262,20 @@ const _processContentData = (list) => {
});
return false;
}
if (value.smallPic) {
_.forEach(value.smallPic.data, function(data, index) {
data.src = data.src.substring(0, data.src.indexOf('?'));
if (index === 0) {
contentData = _.assign(contentData, {
shareImg: data.src
});
}
});
return false;
}
});
contentData.contents = list;
... ...
... ... @@ -35,11 +35,13 @@
{{/ data}}
{{/ singleImage}}
{{# smallPic}}
<div class="article-pictwo block">
{{# data}}
<img src="{{image src 440 660 1}}">
{{/ data}}
</div>
<span class="article-pictwo">
{{!-- <div class="img-center"> --}}
{{# data}}
<img src="{{image src 460 660 1}}">
{{/ data}}
{{!-- </div> --}}
</span>
{{/ smallPic}}
{{# text}}
<div class="article-text block">
... ...
... ... @@ -85,15 +85,19 @@
.article-pictwo {
max-width: 930px;
margin: 0 auto;
overflow: hidden;
display: block;
img {
display: block;
float: left;
max-width: 450px;
max-height: 660px;
margin-right: 10px;
display: inline-block;
max-width: 460px;
margin-right: 2px;
}
}
.article-text {
width: 700px;
margin: 25px auto;
... ... @@ -367,8 +371,7 @@
height: 30px;
line-height: 30px;
font-size: 12px;
color: #000;
font-weight: bold;
color: #1b1b1b;
background: #eee;
}
... ...
... ... @@ -42,7 +42,7 @@
}
.msg-title:hover {
color: #379ed6;
color: #666;
}
.lazy {
... ...