scroll-view组件中使用自定义下拉刷新时,手指点着屏幕滑动出现报错
手机为vivo 安卓版本为5.1.1
报错信息如下图附件:
代码如下:<scroll-view v-else :style="{height:height}" :refresher-triggered = "ref" @scrolltolower ="lower" refresher-enabled="true" @refresherrefresh="toupper" class="scroll-view" scroll-x = "false" scroll-y="true">
</scroll-view>
//下拉刷新
toupper:function(){
if(this.ref) return;
this.ref = true;
var that = this;
var city = that.city;
that.loading = [];
that.pages = 1;
setTimeout(function(){
that.get_order();
},300)
},
lower:function(){
var that = this;
var type = that.currentTab;
if(that.pages > that.num_leg){
uni.showToast({
icon:'none',
title:'已经没有了',
duration:1000
})
}