Authored by 陈峰

commit

<template>
<button class="btn-follow hover-opacity" :class="followClass" @click="onFollow">{{followText}}</button>
<div class="btn-follow hover-opacity" :class="followClass" @click="onFollow">{{followText}}</div>
</template>
<script>
... ...
... ... @@ -23,29 +23,6 @@ export default {
firstImage.width = width;
firstImage.height = height;
}
// if (width && height) {
// const scale = width / height;
// imageBlocks.forEach(block => {
// let mogr2 = '?imageMogr2/thumbnail/';
// if (block.width / block.height > scale) {
// mogr2 += `x${height}`;
// } else {
// mogr2 += `${width}x`;
// }
// mogr2 += `/gravity/Center/crop/${width}x${height}`;
// block.width = width;
// block.height = height;
// const image = (block.contentData || '').split('?')[0];
// if (image) {
// block.contentData = `${image}${mogr2}`;
// }
// });
// }
item.index = index;
});
data.forEach(item => {
... ...