Authored by 邱骏

修改图片展示(正方形满格)

@@ -128,7 +128,7 @@ export default { @@ -128,7 +128,7 @@ export default {
128 overflow: hidden; 128 overflow: hidden;
129 129
130 img { 130 img {
131 - height: 100%; 131 + width: 100%;
132 float: left; 132 float: left;
133 margin: 0 auto; 133 margin: 0 auto;
134 } 134 }
@@ -189,7 +189,7 @@ export default { @@ -189,7 +189,7 @@ export default {
189 imageList.push(listItem); 189 imageList.push(listItem);
190 newImages.push(listItem.contentData); 190 newImages.push(listItem.contentData);
191 }); 191 });
192 - articleItem.coverImage = articleItem.coverImage.replace(/{mode}/, 2).replace(/{width}/, 200).replace(/{height}/, 200) 192 + articleItem.coverImage = articleItem.coverImage.split('?')[0] + '?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60';
193 193
194 articleItem.imageList = imageList; 194 articleItem.imageList = imageList;
195 } else { // 没找到对应id的图片列表则把自己的图插入 195 } else { // 没找到对应id的图片列表则把自己的图插入
@@ -201,7 +201,7 @@ export default { @@ -201,7 +201,7 @@ export default {
201 ]; 201 ];
202 202
203 articleItem.imageList = imageList; 203 articleItem.imageList = imageList;
204 - articleItem.coverImage = articleItem.coverImage.replace(/{mode}/, 2).replace(/{width}/, 200).replace(/{height}/, 200); 204 + articleItem.coverImage = articleItem.coverImage.split('?')[0] + '?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60';
205 imageIndex += 1; 205 imageIndex += 1;
206 newImages = newImages.push(imageList.contentData); 206 newImages = newImages.push(imageList.contentData);
207 } 207 }