Authored by shuaiguo

Merge branch 'feature/long-article-save-image' into 'develop'

去除长文章封面图,启用默认头部



See merge request !127
... ... @@ -184,7 +184,7 @@ export default {
return Object.assign({...articleState}, {hasAttention: authorState.hasAttention});
},
headerAnimateStep() {
if (this.articleInfo.sort !== 2 || this.scrollTop > this.coverHeight) {
if (this.articleInfo.sort !== 0 || this.scrollTop > this.coverHeight) {
return 100;
} else if (this.scrollTop > 0) {
let coverHeight = get(this.$refs, 'detailLong.coverHeight', 0);
... ... @@ -205,7 +205,7 @@ export default {
}
},
headerTitleAnimateStep() {
if (this.articleInfo.sort === 2) {
/* if (this.articleInfo.sort === 2) {
let {height, top} = get(this.$refs, 'detailLong.authorBlock', {});
let scrollTop = this.scrollTop + get(this.$refs, 'header.$el.offsetHeight', 0);
... ... @@ -223,7 +223,9 @@ export default {
return 0;
} else {
return 100;
}
}*/
return 100;
},
viewMoreArticles() {
let scrollTop = this.scrollTop;
... ...
... ... @@ -45,7 +45,7 @@ export default {
let style = {};
this.setIconColor(Math.floor((255 - 68) * (1 - this.stepPercent) + 68));
style.background = `rgba(255,255,255,${this.stepPercent})`;
style.background = `rgba(255,255,255, ${this.stepPercent})`;
if (this.stepPercent > 0.98) {
style.borderBottom = '1px solid #efefef';
... ...
<template>
<div class="article-detail-long">
<div class="header-cover" v-if="!share"></div>
<ArticleItemSlideImage ref="coverFigure" class="cover-figure" :data="coverImage" :thumb-size="coverSize"
<!--<ArticleItemSlideImage ref="coverFigure" class="cover-figure" :data="coverImage" :thumb-size="coverSize"
:style="`transform: translate3d(0, ${coverTranslateY}px, 0)`">
</ArticleItemSlideImage>
</ArticleItemSlideImage>-->
<div ref="authorBlock" class="author-block">
<ArticleItemHeader :share="share" :data="authorData" :lazy="lazy" :more="showMoreOpt"
@on-follow="onFollowAuthor"></ArticleItemHeader>
@on-follow="onFollowAuthor" style="visibility: hidden;"></ArticleItemHeader>
</div>
<div class="main-detail">
... ...