2016-10-30 15:12:35 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2017-11-21 23:00:25 +00:00
|
|
|
<i :class='classes' class='favorite-button base09' @click.prevent='favorite()'/>
|
2016-10-30 15:12:35 +00:00
|
|
|
<span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./favorite_button.js" ></script>
|
|
|
|
|
2016-11-13 16:52:20 +00:00
|
|
|
<style lang='scss'>
|
|
|
|
.favorite-button {
|
|
|
|
cursor: pointer;
|
2017-03-09 04:45:40 +00:00
|
|
|
animation-duration: 0.6s;
|
2016-11-13 16:52:20 +00:00
|
|
|
&:hover {
|
2017-01-15 14:44:56 +00:00
|
|
|
color: orange;
|
2016-11-13 16:52:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon-star {
|
2017-01-15 14:44:56 +00:00
|
|
|
color: orange;
|
2016-11-13 16:52:20 +00:00
|
|
|
}
|
2017-03-09 04:45:40 +00:00
|
|
|
|
2016-10-30 15:12:35 +00:00
|
|
|
</style>
|