I made a pull-up to load more effects, referencing the better-scroll plug-in, and then
function set_scroll(){
scroll = new BScroll("-sharplist", {
scrollY: true,
click: true,
probeType:3,
pullDownRefresh:{threshold: 50,stop:0},
pullUpLoad:{threshold: 50,stop:0}
})
}
scroll.on("pullingUp", function(){
//
load_more();
})
scroll.on("pullingDown", function(){
//
list_refresh();
})
function loadData(){
if(floag == 0){
Vue.nextTick(function(){
set_scroll()
})
}else{
Vue.nextTick(function(){
scroll.refresh();
})
}
}
through the check, I found that the data was loaded. After the content of the dome node was increased, the scroll object seemed to be refreshed, and the value of the transform attribute was reset to 0. The effect seems to be to pull to the bottom, and after loading the data, the page rolls back to its original position.
did not find a solution to a similar problem on its api, do you know?