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

1

parent d0134562
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
document document
.getElementById("friendsQuanContent") .getElementById("friendsQuanContent")
.addEventListener("scroll", _this.scrollBottom, false); .addEventListener("scroll", _this.scrollBottom, false);
}, 2000); }, 1000);
this.MsgBus.$on("edit-show", function(params) { this.MsgBus.$on("edit-show", function(params) {
_this.editShow = false _this.editShow = false
}) })
...@@ -52,6 +52,7 @@ export default { ...@@ -52,6 +52,7 @@ export default {
scrollBottom(){ scrollBottom(){
let dom = document.getElementById("friendsQuanContent") let dom = document.getElementById("friendsQuanContent")
if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) { if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) {
console.log(this.$refs.mychild)
this.$refs.mychild.scrollBottom(dom); this.$refs.mychild.scrollBottom(dom);
} }
}, },
......
...@@ -33,6 +33,7 @@ export default { ...@@ -33,6 +33,7 @@ export default {
},methods: { },methods: {
scrollBottom(dom){ scrollBottom(dom){
if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) { if (dom.scrollHeight - dom.scrollTop === dom.clientHeight) {
this.dynamicMsg.pageIndex = this.dynamicMsg.pageIndex + 1;
this.getList(); 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