Showing
2 changed files
with
3 additions
and
3 deletions
@@ -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 | } |
-
Please register or login to post a comment