收藏
回答

onPullDownRefresh 下拉刷新开发者工具中正常,真机调试失败?

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函数也失效了。

测试机是华为

回答关注问题邀请回答
收藏

3 个回答

  • 社区技术运营专员--阳光
    社区技术运营专员--阳光
    2023-04-19

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2023-04-19
    有用
    回复 1
    • 人中
      人中
      2023-12-06
      华为的机器,调试如图,这个是什么问题。
      2023-12-06
      回复
  • momo
    momo
    01-01

    真机 苹果11 同遇到

    01-01
    有用
    回复 1
    • momo
      momo
      01-01
      启用真机模拟会有问题 ,等真机模拟,代码更新后。断开模拟器就好了。。。
      01-01
      回复
  • -twist-
    -twist-
    2023-12-07

    我也遇到了这个问题,请问解决了吗

    2023-12-07
    有用
    回复
登录 后发表内容