scroll-view在ios上无法滑动安卓可以
发布于 5 年前 作者 xiuyingliang 1322 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

scroll-view 部分无法垂直滑动  

scroll-y=“true”

已经设置为true。高度也有设置

  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

<scroll-view class=“rightsv flex-grow-1 flex-col”  scroll-y=“true” style=“height:{{storeset.top_style==‘1’?‘56vh’:‘46vh’}};”>

<block wx:if="{{!cpjzz}}">

<view class=“youhui”>

<view class=“yh”>{{dishes[catalogSelect].type_name}}

<text>({{dishes[catalogSelect].good.length}})</text>

</view>

<view class=“coupon” wx:if="{{Coupons.length>0}}">

<scroll-view scrollX class=“scroll-view” style=“width: 100%”>

<view class=“coupon_1 rel” style=“background: {{item.state==‘1’?’#FFF1F0’:’’}};color:{{item.state==‘1’?’#F9564F’:’’}}” wx:for="{{Coupons}}" wx:key="*this">

<view class=“ab ud”>

<text></text>

<text>{{item.reduce}}</text>

<text>满{{item.full}}可用</text>

<text>有效期至:{{item.end_time}}</text>

</view>

</view>

</scroll-view>

</view>

</view>

</block>

</scroll-view>

3 回复

还需要内容高于scroll-view设置的高度

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

提供下代码片段

回到顶部