后期修改完善,上线版本
This commit is contained in:
@ -17,14 +17,14 @@ export default {
|
||||
getImageSrc() {
|
||||
// 如果已经点赞,显示选中的图片
|
||||
if (this.isActive) {
|
||||
return '/ToolDetail/icon_comment_selected.png';
|
||||
return require('/static/ToolDetail/icon_comment_selected.png');
|
||||
}
|
||||
// 如果鼠标悬停或点击,显示高亮的图片
|
||||
if (this.isHovered) {
|
||||
return '/ToolDetail/icon_comment_selected.png';
|
||||
return require('/static/ToolDetail/icon_comment_selected.png');
|
||||
}
|
||||
// 默认显示普通图片
|
||||
return '/ToolDetail/icon_comment.png';
|
||||
return require('/static/ToolDetail/icon_comment.png');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -62,7 +62,7 @@ export default {
|
||||
box-shadow: 0 4px 6px 0 #0000000d;
|
||||
background: #fff;
|
||||
padding: 5px;
|
||||
font-family: 'Poppins-Regular', serif;
|
||||
font-family: 'Poppins-Regular';
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
img {
|
||||
|
||||
Reference in New Issue
Block a user