第一个方法:
<view @touchmove.stop.prevent="moveStop">//在mark上加个阻止滚动
<view @touchmove.stop="moveStop"></view>//内部需要滚动的加个允许滚动
</view>
moveStop(){}
第二个方法:
// 阻止页面滚动
stop(){
var box=function(e){passive: false ;};
document.body.style.overflow='hidden';
document.addEventListener("touchmove",box,false);
},
// 允许页面滚动
move(){
var box=function(e){passive: false };
document.body.style.overflow=''; // 出现滚动条
document.removeEventListener("touchmove",box,false);
},