首页完成
This commit is contained in:
parent
e9a68b28aa
commit
51b4def9a5
@ -63,7 +63,7 @@
|
|||||||
<span class="time">11小时前</span>
|
<span class="time">11小时前</span>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -93,7 +93,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let footer = this.$refs.footer.$el;
|
let footer = this.$refs.footer.$el;
|
||||||
this.footerUserHeight = footer.offsetHeight;
|
this.footerHeight = footer.offsetHeight;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -129,6 +129,7 @@
|
|||||||
// autoHeight: true, //高度随内容变化
|
// autoHeight: true, //高度随内容变化
|
||||||
on: {
|
on: {
|
||||||
slideChange: function () {
|
slideChange: function () {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
self.isCommenting = false;
|
self.isCommenting = false;
|
||||||
self.isSharing = false;
|
self.isSharing = false;
|
||||||
},
|
},
|
||||||
@ -246,10 +247,12 @@
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
self = this;
|
self = this;
|
||||||
|
window.scrollTo(0, 0);
|
||||||
this.height = document.body.clientHeight;
|
this.height = document.body.clientHeight;
|
||||||
this.width = document.body.clientWidth;
|
this.width = document.body.clientWidth;
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
let other = this.$refs.other.$el;
|
let other = this.$refs.other.$el;
|
||||||
let footer = this.$refs.footer.$el;
|
let footer = this.$refs.footer.$el;
|
||||||
let share = this.$refs.share.$el;
|
let share = this.$refs.share.$el;
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="tac">无更多消息</p>
|
<p class="tac">无更多消息</p>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -91,7 +91,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let footer = this.$refs.footer.$el;
|
let footer = this.$refs.footer.$el;
|
||||||
this.footerUserHeight = footer.offsetHeight;
|
this.footerHeight = footer.offsetHeight;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -114,7 +114,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let footer = this.$refs.footer.$el;
|
let footer = this.$refs.footer.$el;
|
||||||
this.footerUserHeight = footer.offsetHeight;
|
this.footerHeight = footer.offsetHeight;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user