onPullDownRefresh 下拉刷新开发者工具中正常,真机调试无法刷新,调试器中提示:VM13:2 onPullDownRefresh WebviewId: 864833439 not found
index.js
onPullDownRefresh: function () { //下拉刷新数据
console.log("下拉刷新数据");
this.data.deliverData = [];
this.data.page = 1;
wx.showToast({
title: '刷新成功',
})
wx.stopPullDownRefresh({
success: (res) => {
},
})
getAllData(this);
},
index.json
{
"usingComponents": {},
"enablePullDownRefresh": true,
"backgroundTextStyle": "dark"
}
index.wxml
<!--pages/firendsCirle/firendsCircle.wxml-->
<view bindtap='hideZanAndPinglun'>
<view class='header'>
<text class='iconfont icon-arrow-right1' bindtap='showWodePage'>我的</text>
<text>漫友圈</text>
<text class='iconfont icon-xiangji' bindtap='showEditPage'></text>
</view>
<view class='single' wx:for="{{deliverData}}" wx:key="index">
<image class="avatar" src="{{item.avatarUrl}}" mode="cover"></image>
<view class='main'>
<view class='nickname'>{{item.nickName}}</view>
<view wx:if="{{item.textareaTxtLength > 0 }}">
<view class='main-comtent' style='{{isShowOrHideComtent ? "" : "max-height: 60pt"}}'>
{{item.textareaTxt}}
</view>
<view wx:if="{{item.textareaTxtLength > 35 }}">
<text class='comtent-showOrHide' catchtap='ShowOrHideComtent'>{{allOrPart}}</text>
</view>
</view>
<view class='imgArea' wx:if="{{!item.imgArea}}" bindtap='showImg' data-Outidx="{{index}}">
<view wx:for="{{item.imgArr}}" wx:key="index">
<image src="{{item}}" mode='aspectFill' data-imgidx="{{index}}" />
</view>
</view>
<view class='location' wx:if="{{item.location != ''}}">
<text class='iconfont icon-zuobiaonormal'></text>
<text>{{item.location}}</text>
</view>
<view class='timeArea'>
<text>{{item.time}}</text>
<view class='timeArea-right'>
<!-- <text>{{showZanAndPinglunNum}}{{item.id}}</text> -->
<view class='zan-pinglun' wx:if="{{showZanAndPinglunNum == item.id}}">
<!-- <view class='zan-pinglun' > -->
<text class='iconfont icon-xin' data-idx="{{item.id}}" bindtap='dianzan'> 赞</text>
<text class='iconfont icon-pinglun'> 评论</text>
</view>
<text class='iconfont icon-pinglun1' data-idx="{{index}}" catchtap='showZanAndPinglun'></text>
</view>
</view>
<view class='commentArea'>
<view class='like' wx:if="{{item.zan}}">
<text class='iconfont icon-xin'></text>
<text>{{item.zan}}</text>
</view>
<!-- <view class='comment'>
<text class='comment-nickname'>用户名:</text>
<text>评论内容</text>
</view> -->
</view>
</view>
</view>
</view>
相同的在真机调试中onReachBottom函数也失效了。
测试机是华为
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
真机 苹果11 同遇到
我也遇到了这个问题,请问解决了吗