收藏
回答

iPhone11 scroll-view 无法正常滚动?

<view class="container">
  <view class="head">
    <view>
      <view class="event {{currentTab == 0?'act':''}}" bindtap="clickTab" data-current="0">参加活动</view>
      <view class="info {{currentTab == 1?'act':''}}" bindtap="clickTab" data-current="1">最新资讯</view>
    </view>
  </view>

  <view class="swiper">
    <swiper current="{{currentTab}}" class="screen-swiper" indicator-dots="{{indicatorDots}}" duration="500"
      bindchange="swiperTab" style="height:{{swiperHeight}}px">
      <swiper-item style="overflow:scroll;">
        <scroll-view scroll-y="true" style="height: 100%" bindscrolltolower="lower" enhanced="true"
          paging-enabled="true">
          <view class="main" wx:for="{{active}}" data-active_id="{{item.active_id}}" bindtap="goActiveDetail">
            <image src="{{item.file_path}}"></image>
            <view data-active_id="{{item.active_id}}">
              <text data-active_id="{{item.active_id}}">{{item.active_name}}</text>
              <view data-active_id="{{item.active_id}}">
                <text class="time" data-active_id="{{item.active_id}}">参与截止时间:{{item.end_time}}</text>
                <text wx:if="{{item.state_text == 0}}" class="btn" data-active_id="{{item.active_id}}"
                  catchtap="goActiveDetail">去参加</text>
                <text wx:if="{{item.state_text == 1}}" data-active_id="{{item.active_id}}" class="btn2">已结束</text>
              </view>
            </view>
          </view>
        </scroll-view>
      </swiper-item>

      <swiper-item style="overflow:scroll;">
        <scroll-view scroll-y="true" style="height: 100%" bindscrolltolower="lower" enhanced="true"
          paging-enabled="true">
          <view wx:for="{{active2}}" wx:key="article">
            <view class="main2" bindtap="goActiveDetail2" wx:if="{{item.type == 1}}"
              data-active_id="{{item.article_id}}">
              <image src="{{item.file_path}}"></image>
              <view>
                <text class="tit">{{item.title}}</text>
                <text class="time">于{{item.view_time}}发布</text>
              </view>
            </view>

            <view class="main2" bindtap="goActiveDetail3" wx:if="{{item.type == 2}}"
              data-active_id="{{item.article_id}}">
              <image src="{{item.thumb_url}}"></image>
              <view>
                <text class="tit">{{item.title}}</text>
                <text class="time">于{{item.view_time}}发布</text>
              </view>
            </view>
          </view>
        </scroll-view>
      </swiper-item>
    </swiper>

  </view>
</view>

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

4 个回答

  • Jerry
    Jerry
    2021-01-20

    我以为是我代码的问题,原来是手机的问题,我定位了一天的bug。下拉刷新和上拉加载同时使用时,异步加载的数据,开发工具正常,真机不能上拉,处理方法:在list里增加一个空对象,并在空对象里设置一个属性,通过ajax加载到列表数据之后,通过该属性过滤掉这个空对象,再将加载的数据赋值到list上,view层通过这个空对象的属性将这条数据设置为透明,处理进入页面会有空白数据展示的问题。

    2021-01-20
    有用
    回复
  • 白楠
    白楠
    2020-12-10

    请问你这个问题解决了吗?我iphone xs max也出现这个问题

    2020-12-10
    有用
    回复
  • Nobody
    Nobody
    2020-11-22

    请问现在有具体的解决办法吗??小程序刚上线,就碰到这样的问题。。。


    2020-11-22
    有用
    回复 1
    • 风
      2020-12-01
      我的解决方法是:这两个属性还使用,但一进去的list默认是有10条数据,只是占位用的,请求成功后list会赋值为新的数据。这时列表就能正常刷新了
      2020-12-01
      回复
  • 🔥
👦
👔
👖
    🔥 👦 👔 👖
    2020-11-06

    无法正常滚动?说的具体一点。

    2020-11-06
    有用
    回复 10
    • 佚名
      佚名
      2020-11-06
      就是划不动啊,下滑没反应。其他设备都正常
      2020-11-06
      回复
    • 🔥
👦
👔
👖
      🔥 👦 👔 👖
      2020-11-06回复佚名
      打开调试开一下有没有报错
      2020-11-06
      回复
    • Eric Huang
      Eric Huang
      2020-11-06
      这个是已知的问题,跟使用 enhanced 或 refresher-enabled 属性有关
      2020-11-06
      回复
    • 佚名
      佚名
      2020-11-06回复Eric Huang
      有没有什么好的解决办法呢?
      2020-11-06
      回复
    • 佚名
      佚名
      2020-11-06回复🔥 👦 👔 👖
      没有报错的,样式类的问题不会报错的
      2020-11-06
      回复
    查看更多(5)
登录 后发表内容
问题标签