Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与Swiper 一起使用有问题 #2

Open
rui736040987 opened this issue Feb 28, 2018 · 1 comment
Open

与Swiper 一起使用有问题 #2

rui736040987 opened this issue Feb 28, 2018 · 1 comment

Comments

@rui736040987
Copy link

组件不能用手滑动,这是怎么解决
@mindawei
Copy link
Owner

mindawei commented Feb 28, 2018

@chaorwin
不同时使用,Swiper所在界面就放一个普通的输入框,触碰这个框后跳转到wsSearchView所在的页面:

1)Swiper所在界面就放一个普通的输入框

<view class="weui-search-bar">
  <view class="weui-search-bar__form">
    <view class="weui-search-bar__box">
      <icon class="weui-icon-search_in-box" type="search" size="14"></icon>
      <input type="text" class="weui-search-bar__input" disabled='true' placeholder="搜索城市天气" bindtap="wxSearchTab"/>
    </view>
  </view>
</view>

2)点击跳转:

  // 搜索入口  
  wxSearchTab: function () {
    wx.redirectTo({
      url: '../search/search'
    })
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants