Index. WXML:
<scroll-view scroll-y style="height:100vh;" bindscrolltolower="lower" scroll-into-view="{{toView}}" scroll-top="{{scrollTop}}"> <view class='content-wrapper' Upper-threshold > // Here is the type of page style for pull-up </view> </ scrollview >Copy the code
Note: style = “height: 100 vh;” Bindscrolltolower =”lower”
Index. Js:
Lower: function (e) {lower: function (e) {console.log(e)},Copy the code
Bindscrolltolower can be catchTouchMove instead of catchTouchMove.
Ps: upper-threshold indicates that vertical scrolling is allowed