2016-10-31 02:12:35 +11:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<i :class='classes' class='favorite-button fa' v-on:click.prevent='favorite()'></i>
|
|
|
|
<span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./favorite_button.js" ></script>
|
|
|
|
|
2016-11-14 03:52:20 +11:00
|
|
|
<style lang='scss'>
|
|
|
|
.favorite-button {
|
|
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
2017-01-16 01:44:56 +11:00
|
|
|
color: orange;
|
2016-11-14 03:52:20 +11:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon-star {
|
2017-01-16 01:44:56 +11:00
|
|
|
color: orange;
|
2016-11-14 03:52:20 +11:00
|
|
|
}
|
2016-10-31 02:12:35 +11:00
|
|
|
</style>
|