diff --git a/src/components/attention/Attention.vue b/src/components/attention/Attention.vue index 7d89517..cd6811d 100755 --- a/src/components/attention/Attention.vue +++ b/src/components/attention/Attention.vue @@ -63,7 +63,7 @@ 11小时前 - + @@ -93,7 +93,7 @@ }, mounted() { let footer = this.$refs.footer.$el; - this.footerUserHeight = footer.offsetHeight; + this.footerHeight = footer.offsetHeight; } } diff --git a/src/components/home/Home.vue b/src/components/home/Home.vue index 5ae124d..cf4ce9d 100755 --- a/src/components/home/Home.vue +++ b/src/components/home/Home.vue @@ -129,6 +129,7 @@ // autoHeight: true, //高度随内容变化 on: { slideChange: function () { + window.scrollTo(0, 0); self.isCommenting = false; self.isSharing = false; }, @@ -246,10 +247,12 @@ }, created() { self = this; + window.scrollTo(0, 0); this.height = document.body.clientHeight; this.width = document.body.clientWidth; }, mounted() { + window.scrollTo(0, 0); let other = this.$refs.other.$el; let footer = this.$refs.footer.$el; let share = this.$refs.share.$el; diff --git a/src/components/message/Message.vue b/src/components/message/Message.vue index 37c3952..77bff55 100644 --- a/src/components/message/Message.vue +++ b/src/components/message/Message.vue @@ -65,7 +65,7 @@
无更多消息
- + @@ -91,7 +91,7 @@ }, mounted() { let footer = this.$refs.footer.$el; - this.footerUserHeight = footer.offsetHeight; + this.footerHeight = footer.offsetHeight; } } diff --git a/src/components/user/Me.vue b/src/components/user/Me.vue index 26d41f0..536419b 100644 --- a/src/components/user/Me.vue +++ b/src/components/user/Me.vue @@ -87,7 +87,7 @@ - + @@ -114,7 +114,7 @@ }, mounted() { let footer = this.$refs.footer.$el; - this.footerUserHeight = footer.offsetHeight; + this.footerHeight = footer.offsetHeight; } }