Commit 5aa5c421 authored by 华国豪's avatar 华国豪 🙄

1

parent d0134562
......@@ -44,7 +44,7 @@ export default {
document
.getElementById("friendsQuanContent")
.addEventListener("scroll", _this.scrollBottom, false);
}, 2000);
}, 1000);
this.MsgBus.$on("edit-show", function(params) {
_this.editShow = false
})
......@@ -52,6 +52,7 @@ export default {
scrollBottom(){
let dom = document.getElementById("friendsQuanContent")
if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) {
console.log(this.$refs.mychild)
this.$refs.mychild.scrollBottom(dom);
}
},
......
......@@ -33,6 +33,7 @@ export default {
},methods: {
scrollBottom(dom){
if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) {
this.dynamicMsg.pageIndex = this.dynamicMsg.pageIndex + 1;
this.getList();
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment