Authored by lijing

分享,点赞按钮

... ... @@ -2,16 +2,16 @@
<div class="top-nav">
<navbar>
<template slot="right">
<a class="right-button" href="javascript:void(0);" @click="like()">
<a class="right-button no-intercept" href="javascript:void(0);" @click="like()">
<span class="icon icon-like" :class=""></span>
{{likeCount}}
</a>
<a class="right-button" href="javascript:void(0);" @click="favorite()">
<a class="right-button no-intercept" href="javascript:void(0);" @click="favorite()">
<span class="icon" :class="{ 'icon-love': !isFavorite, 'icon-love-solid': isFavorite}"></span>
</a>
<a class="right-button" href="javascript:void(0);" @click="share()">
<a class="right-button no-intercept" href="javascript:void(0);" @click="share()">
<span class="icon icon-share"></span>
</a>
</template>
... ... @@ -77,10 +77,10 @@
// if (result && result.code === 200) {
// // TODO:
// }
// }
if (result && result.code === 403) {
// 未登录
yoho.goLogin('',() => {
yoho.goLogin('', () => {
this.favorite();
}, function() {
tip('登录失败');
... ...