Authored by shuaiguo

Merge branch 'feature/detail-images-contents' into 'develop'

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



See merge request !18
... ... @@ -128,7 +128,7 @@ export default {
overflow: hidden;
img {
height: 100%;
width: 100%;
float: left;
margin: 0 auto;
}
... ...
... ... @@ -189,7 +189,7 @@ export default {
imageList.push(listItem);
newImages.push(listItem.contentData);
});
articleItem.coverImage = articleItem.coverImage.replace(/{mode}/, 2).replace(/{width}/, 200).replace(/{height}/, 200)
articleItem.coverImage = articleItem.coverImage.split('?')[0] + '?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60';
articleItem.imageList = imageList;
} else { // 没找到对应id的图片列表则把自己的图插入
... ... @@ -201,7 +201,7 @@ export default {
];
articleItem.imageList = imageList;
articleItem.coverImage = articleItem.coverImage.replace(/{mode}/, 2).replace(/{width}/, 200).replace(/{height}/, 200);
articleItem.coverImage = articleItem.coverImage.split('?')[0] + '?imageMogr2/thumbnail/200x/gravity/Center/crop/200x200/quality/60';
imageIndex += 1;
newImages = newImages.push(imageList.contentData);
}
... ...