iPhone11 scroll-view 无法正常滚动?
发布于 7 年前 作者 qliang 5961 次浏览 来自 问答
<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>

1 回复

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

回到顶部