首页完成

This commit is contained in:
zyronon 2018-10-22 02:44:07 +08:00
parent e9a68b28aa
commit 51b4def9a5
4 changed files with 9 additions and 6 deletions

View File

@ -63,7 +63,7 @@
<span class="time">11小时前</span>
</div>
</div>
<Footer v-bind:init-tab="2" ref="footer" :style="{'top':height-footerUserHeight+'px'}"/>
<Footer v-bind:init-tab="2" ref="footer" :style="{'top':height-footerHeight+'px'}"/>
</div>
</template>
@ -93,7 +93,7 @@
},
mounted() {
let footer = this.$refs.footer.$el;
this.footerUserHeight = footer.offsetHeight;
this.footerHeight = footer.offsetHeight;
}
}

View File

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

View File

@ -65,7 +65,7 @@
</div>
<p class="tac">无更多消息</p>
</div>
<Footer v-bind:init-tab="4" ref="footer" :style="{'top':height-footerUserHeight+'px'}"/>
<Footer v-bind:init-tab="4" ref="footer" :style="{'top':height-footerHeight+'px'}"/>
</div>
</template>
@ -91,7 +91,7 @@
},
mounted() {
let footer = this.$refs.footer.$el;
this.footerUserHeight = footer.offsetHeight;
this.footerHeight = footer.offsetHeight;
}
}

View File

@ -87,7 +87,7 @@
</div>
</div>
</div>
<Footer v-bind:init-tab="5" ref="footer" :style="{'top':height-footerUserHeight+'px'}"/>
<Footer v-bind:init-tab="5" ref="footer" :style="{'top':height-footerHeight+'px'}"/>
</div>
</template>
@ -114,7 +114,7 @@
},
mounted() {
let footer = this.$refs.footer.$el;
this.footerUserHeight = footer.offsetHeight;
this.footerHeight = footer.offsetHeight;
}
}