收藏
回答

IOS scroll-view内嵌套swiper出现问题

框架类型 问题类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
小程序 Bug swiper scroll-view 客户端 iOS 6.6.5 Iphone ,IOS 11.2.6

- 当前 Bug 的表现(可附上截图)

    scroll-view(height: 100%)内嵌套swiper, view;

    swiper轮播时,swiper下方view不显示


- 提供一个最简复现 Demo

<scroll-view

     scroll-y

     style="height: 100%; position: absolute; top: 0; left: 0;">

<view class="banner">

<swiper

wx:if=""

class="home_swiper"

indicator-color="#606060"

indicator-active-color="#fff"

interval="{{interval}}"

indicator-dots="true"

previous-margin="40px"

next-margin="40px"

circular="true"

autoplay="true">

<repeat for="" key="index" index="index" item="item">

<swiper-item class="home_swiper_item">

<navigator url="" hover-class="none">

    ...

</navigator>

</swiper-item>

</repeat>

</swiper>

</view>

<view class="home_center">

    ...

</view>

<view class="home_box" wx:if="{{themeData.length}}">

    ...

</view>

</scroll-view>


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

8 个回答

  • ,
    2018-05-08

    好,谢谢

    2018-05-08
    有用
    回复
  • 蓝小黑
    蓝小黑
    2018-05-08

    我找到解决方法的话告诉你吧

    2018-05-08
    有用
    回复
  • ,
    2018-05-08

    嘿嘿    目前我也是没找到其他办法啦

    2018-05-08
    有用
    回复
  • 蓝小黑
    蓝小黑
    2018-05-08

    嗯嗯,我们目前也是这样,但是我觉得用户体验不太好,有个banner轮播感觉档次会高点

    2018-05-08
    有用
    回复
  • ,
    2018-05-08

    我就换了view    我们轮播后来改成固定位置,不需要随页面滚动了

    2018-05-08
    有用
    回复
  • 蓝小黑
    蓝小黑
    2018-05-08

    你换的什么呢,我们的swiper是用在banner轮播,我还没去看用什么替换

    2018-05-08
    有用
    回复
  • ,
    2018-05-08

    我最后把scroll-view换成了别的组件

    2018-05-08
    有用
    回复
  • 蓝小黑
    蓝小黑
    2018-05-08

    我也遇到同样的问题,我觉得应该是滑动冲突的问题,swiper获取了屏幕焦点,导致scroll-view失去焦点不能滑动

    2018-05-08
    有用
    回复
登录 后发表内容