Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0
Showing
4 changed files
with
38 additions
and
7 deletions
@@ -243,6 +243,7 @@ const _getRelatedData = (idList) => { | @@ -243,6 +243,7 @@ const _getRelatedData = (idList) => { | ||
243 | const _processContentData = (list) => { | 243 | const _processContentData = (list) => { |
244 | list = list || []; | 244 | list = list || []; |
245 | list = camelCase(list); | 245 | list = camelCase(list); |
246 | + // console.log(list) | ||
246 | 247 | ||
247 | let contentData = { | 248 | let contentData = { |
248 | contents: [] | 249 | contents: [] |
@@ -252,6 +253,7 @@ const _processContentData = (list) => { | @@ -252,6 +253,7 @@ const _processContentData = (list) => { | ||
252 | 253 | ||
253 | if (value.singleImage) { | 254 | if (value.singleImage) { |
254 | _.forEach(value.singleImage.data, function(data, index) { | 255 | _.forEach(value.singleImage.data, function(data, index) { |
256 | + console.log(data) | ||
255 | if (index === 0) { | 257 | if (index === 0) { |
256 | contentData = _.assign(contentData, { | 258 | contentData = _.assign(contentData, { |
257 | shareImg: data.src | 259 | shareImg: data.src |
@@ -30,10 +30,17 @@ | @@ -30,10 +30,17 @@ | ||
30 | {{# singleImage}} | 30 | {{# singleImage}} |
31 | {{# data}} | 31 | {{# data}} |
32 | <div class="article-pic block"> | 32 | <div class="article-pic block"> |
33 | - <img src="{{image src 930 660}}"> | 33 | + <img src="{{image src 930 660 1}}"> |
34 | </div> | 34 | </div> |
35 | {{/ data}} | 35 | {{/ data}} |
36 | {{/ singleImage}} | 36 | {{/ singleImage}} |
37 | + {{# smallPic}} | ||
38 | + <div class="article-pictwo block"> | ||
39 | + {{# data}} | ||
40 | + <img src="{{image src 440 660 1}}"> | ||
41 | + {{/ data}} | ||
42 | + </div> | ||
43 | + {{/ smallPic}} | ||
37 | {{# text}} | 44 | {{# text}} |
38 | <div class="article-text block"> | 45 | <div class="article-text block"> |
39 | {{# data}} | 46 | {{# data}} |
@@ -79,11 +79,21 @@ | @@ -79,11 +79,21 @@ | ||
79 | .article-pic { | 79 | .article-pic { |
80 | 80 | ||
81 | img { | 81 | img { |
82 | - width: 930px; | ||
83 | - height: 660px; | 82 | + max-width: 930px; |
84 | } | 83 | } |
85 | } | 84 | } |
86 | 85 | ||
86 | + .article-pictwo { | ||
87 | + max-width: 930px; | ||
88 | + | ||
89 | + img { | ||
90 | + display: block; | ||
91 | + float: left; | ||
92 | + max-width: 450px; | ||
93 | + max-height: 660px; | ||
94 | + margin-right: 10px; | ||
95 | + } | ||
96 | + } | ||
87 | .article-text { | 97 | .article-text { |
88 | width: 700px; | 98 | width: 700px; |
89 | margin: 25px auto; | 99 | margin: 25px auto; |
@@ -451,7 +461,7 @@ | @@ -451,7 +461,7 @@ | ||
451 | background: #000; | 461 | background: #000; |
452 | cursor: pointer; | 462 | cursor: pointer; |
453 | 463 | ||
454 | -/* &:hover { | 464 | + /* &:hover { |
455 | background: #000; | 465 | background: #000; |
456 | }*/ | 466 | }*/ |
457 | } | 467 | } |
@@ -18,11 +18,23 @@ | @@ -18,11 +18,23 @@ | ||
18 | margin: 20px auto; | 18 | margin: 20px auto; |
19 | width: 300px; | 19 | width: 300px; |
20 | height: 40px; | 20 | height: 40px; |
21 | - } | ||
22 | - | ||
23 | - .paging { | ||
24 | margin-top: 40px; | 21 | margin-top: 40px; |
25 | margin-bottom: 80px; | 22 | margin-bottom: 80px; |
23 | + | ||
24 | + .next-page { | ||
25 | + i { | ||
26 | + position: relative; | ||
27 | + left: 1px; | ||
28 | + top: -1px; | ||
29 | + } | ||
30 | + } | ||
31 | + | ||
32 | + .pre-page { | ||
33 | + i { | ||
34 | + position: relative; | ||
35 | + top: -1px; | ||
36 | + } | ||
37 | + } | ||
26 | } | 38 | } |
27 | } | 39 | } |
28 | 40 |
-
Please register or login to post a comment