收藏
回答

scrollview下拉问题?

scrollview 下拉刷新无法触发

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

4 个回答

  • 是小白啊
    是小白啊
    2020-05-08

    微信版本比较低,麻烦升级下版本试下

    2020-05-08
    有用 1
    回复 2
    • 2020-05-08
      版本更新后,有效,谢谢回复,辛苦了
      2020-05-08
      回复
    • Admin ²º²³
      Admin ²º²³
      2020-05-08
      666
      2020-05-08
      回复
  • 2020-05-08

    目前只有这个型号的手机 无法触发。

    测试案例

    <!--index.wxml-->

    <view class="container">

    <scroll-view class="main" scroll-x="false" bindrefresherrefresh="getListData" scroll-y="true" refresher-default-style='black' refresher-enabled="true" refresher-triggered="{{triggered}}" bindscrolltolower="getMlistData">

    <view class="list_item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="*this">

    {{item.id}}</view>

    </scroll-view>

    </view>


    //index.js

    //获取应用实例

    const app = getApp()


    Page({

    data: {

    list: [],

    triggered: true

    },

    onLoad(){

    this.getListData()

    },

    getListData() {

    const that = this

    console.log('reload')

    let newList = []

    for(var i=0;i< 40;i++){

    newList.push({

    id: i

    })

    }

    this.setData({

    list: newList

    })

    setTimeout(function(){

    that.setData({

    triggered: false

    })

    },3000)

    },

    // 获取更多

    getMlistData(scroll) {

    const that = this

    console.log(that.data.list.length)

    let newList = []

    for (var i = that.data.list.length - 1; i < that.data.list.length +10; i++) {

    newList.push({

    id: i

    })

    }

    that.setData({

    list: that.data.list.concat(newList)

    })

    }

    })


    /**index.wxss**/

    .container {

    width: 100%;

    height: 100%;

    }

    .main {

    width: calc(100% - 22rpx);

    height: 600rpx;

    padding: 25rpx 11rpx;

    }

    .list_item{

    height: 50rpx;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-start;

    }


    2020-05-08
    有用
    回复
  • Admin ²º²³
    Admin ²º²³
    2020-05-08

    refresher-enabled开启了吗?

    bindrefresherrefresh写刷新代码了吗?

    微信版本符合要求吗?基础库版本符合2.10.1以上要求吗?

    建议楼主按照官方demo试试看:

    https://developers.weixin.qq.com/s/hGFhMum67de0

    如果只有这一款手机不触发下拉刷新的话那应该是BUG

    2020-05-08
    有用
    回复 5
    • 2020-05-08
      如果是机型适配问题,想问一下,官方会去进行处理么?
      2020-05-08
      回复
    • Admin ²º²³
      Admin ²º²³
      2020-05-08回复
      会的,你要发布个BUG帖,里面详细的机型,系统版本什么的发上去,尽可能详细的描述BUG现象,官方都会修复的。
      2020-05-08
      回复
    • Admin ²º²³
      Admin ²º²³
      2020-05-08
      你先用官方的demo测试,如果也不能触发,那就铁定是Bug了
      2020-05-08
      回复
    • 2020-05-08
      微信版本问题,已解决了,谢谢回复,辛苦了
      2020-05-08
      回复
    • Admin ²º²³
      Admin ²º²³
      2020-05-08回复
      不客气,这是我应该做的~能帮到你是我的荣幸!如果觉得有帮助的话请在顶部回复里点个有用。让其他人碰到同类问题时少走弯路~
      2020-05-08
      回复
  • ʚ青ɞ
    ʚ青ɞ
    2020-05-08

    2020-05-08
    有用
    回复 1
    • 2020-05-08
      微信版本问题,已解决了,谢谢回复,辛苦了
      2020-05-08
      回复
登录 后发表内容
问题标签