...
|
...
|
@@ -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;
|
...
|
...
|
|