业余编程
业余编程
  • 发布:2022-01-21 17:16
  • 更新:2022-01-21 17:16
  • 阅读:340

scroll-view组件中使用自定义下拉刷新时,手指点着屏幕滑动出现报错

分类:uni-app

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
})
}

2022-01-21 17:16 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复