...
|
...
|
@@ -230,7 +230,9 @@ export default { |
|
|
|
|
|
let step = Math.round((scrollTop - 10) / (this._topicHeaderHeight - this._headerHeight) * 100);
|
|
|
|
|
|
this.headerAnimateStep = Math.max(Math.min(step, 100), 0);
|
|
|
if (this.topicInfo.topicImageUrl) {
|
|
|
this.headerAnimateStep = Math.max(Math.min(step, 100), 0);
|
|
|
}
|
|
|
|
|
|
if (+get(item, 'data.dataType') === 1) {
|
|
|
if (this._currentId !== item.data.articleId) {
|
...
|
...
|
@@ -252,6 +254,10 @@ export default { |
|
|
});
|
|
|
}
|
|
|
|
|
|
if (!get(res, 'data.topicImageUrl')) {
|
|
|
this.headerAnimateStep = 100;
|
|
|
}
|
|
|
|
|
|
if (this.$refs.scroll) {
|
|
|
this.$refs.scroll.$el.scrollTop = 0;
|
|
|
this.$refs.scroll.init();
|
...
|
...
|
|