scroll-view 中写了一个自动滚动的 然后页面的任何地方点击都没有反应 有谁遇到过的
有人遇到过这样的问题吗:scroll-view滚动没有效果。我向下滑动屏幕,没用啊,怎么回事啊,求解
<scroll-view scroll-y style= "height:1800rpx" scroll-top= "{{topNum}}" bindScroll= "scrolltoupper" > <view class= "scroll-view1" >top2</view> <view class= "scroll-view2" >top3</view> <view class= "gotop" hidden= "{{!canGoTop}}" catchtap= "goTop" > <view>回到顶部</view> </view> </scroll-view>
//js代码 data: { topNum:0, canGoTop: false }, goTop(){ this .setData({ topNum:0 }) }, /**滚动的判别 */ scrolltoupper(e){ console.log(e); if (e.detail.scrollTop > 100){ this .setData({ canGoTop: true }) } else { this .setData({ canGoTop: false }) } }, |
<cover-view bindtap=“alert” class=“fs_17 tc fcF1 look”>亲,观看视频可获得代金券哦11~</cover-view>
<scroll-view class=“scroll box_zing” scroll-top="{{scrollTop}}" scroll-y=“true” style=“height:{{height-774}}rpx” bind:scrolltolower=“getLogs”>
<block >
<view wx:for="{{logsList}}" wx:key="{{index}}" class=“logs fs_14 flex flex_m flex_lr”>
<view>
<text class="./iconfont/iconlaba:before icon" style=“font-size:30rpx;color:#F19022;margin:0 10rpx 0 0”></text>
<text>{{item.user.username}}观看广告领取了{{item.total_money}}代金券</text>
</view>
<text class=“ter” style=“width:30%”>{{item.created_at}}</text>
</view>
</block>
</scroll-view>