Authored by 陈峰

commit

1 <template> 1 <template>
2 - <button class="btn-follow hover-opacity" :class="followClass" @click="onFollow">{{followText}}</button> 2 + <div class="btn-follow hover-opacity" :class="followClass" @click="onFollow">{{followText}}</div>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
@@ -23,29 +23,6 @@ export default { @@ -23,29 +23,6 @@ export default {
23 firstImage.width = width; 23 firstImage.width = width;
24 firstImage.height = height; 24 firstImage.height = height;
25 } 25 }
26 -  
27 -  
28 - // if (width && height) {  
29 - // const scale = width / height;  
30 -  
31 - // imageBlocks.forEach(block => {  
32 - // let mogr2 = '?imageMogr2/thumbnail/';  
33 -  
34 - // if (block.width / block.height > scale) {  
35 - // mogr2 += `x${height}`;  
36 - // } else {  
37 - // mogr2 += `${width}x`;  
38 - // }  
39 - // mogr2 += `/gravity/Center/crop/${width}x${height}`;  
40 - // block.width = width;  
41 - // block.height = height;  
42 - // const image = (block.contentData || '').split('?')[0];  
43 -  
44 - // if (image) {  
45 - // block.contentData = `${image}${mogr2}`;  
46 - // }  
47 - // });  
48 - // }  
49 item.index = index; 26 item.index = index;
50 }); 27 });
51 data.forEach(item => { 28 data.forEach(item => {