Authored by yyq

fix

<template>
<AuthComponent class="btn-follow hover-opacity" :class="followClass" @click="onFollow">
<AuthComponent class="btn-follow hover-opacity" :class="followClass" :auth="isAuth" @click="onFollow">
<span>{{followText}}</span>
</AuthComponent>
</template>
... ... @@ -42,6 +42,9 @@ export default {
},
followText() {
return this.followStatus ? '已关注' : '关注';
},
isAuth() {
return !this.share;
}
},
methods: {
... ...
... ... @@ -118,7 +118,7 @@ export default {
return '';
},
isAuth() {
return !!this.syncFnName;
return !this.share && !!this.syncFnName;
},
btnStyle() {
let color = this.viewOption.color || defaultOption.color;
... ...
... ... @@ -38,11 +38,16 @@ export default {
return parseInt(this.step, 10) / 100;
},
headerStyle() {
let style = {};
this.setIconColor(Math.floor((255 - 68) * (1 - this.stepPercent) + 68));
style.background = `rgba(255,255,255,${this.stepPercent})`;
if (this.stepPercent > 0.98) {
style.borderBottom = '1px solid #efefef';
}
return {
background: `rgba(255,255,255,${this.stepPercent})`
};
return style;
},
blockTranslateY() {
return '-' + parseInt(`0${this.titleStep}`, 10) + '%';
... ...