本文解决了App开发时,uv-popup内容滑动的同时,被覆盖页触发滚动问题,自创~~~
两种方式:
Way 1
页面结构:
<view class="home-container-wrap">
<scroll-view class="home-container" scroll-y></scroll-view>
<uv-popup ref="popup">
<-- 内容滚动 -->
</uv-popup>
</view>
CSS
.home-container-wrap {
height: 100vh;
overflow: hidden;
}
.home-container {
height: calc(100vh);
}
Way 2
重点@touchmove.stop.prevent、scroll-view、scroll-y
<uv-popup ref="popup" @touchmove.stop.prevent>
<scroll-view scroll-y class="goods-info"></scroll-view>
</uv-popup>