首页完成
This commit is contained in:
parent
e9a68b28aa
commit
51b4def9a5
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user