After a user taps the catchlongtap/bindlongtap, both the longtap and the tap binding events will be triggered in turn. If the user taps the catchlongtap/ bindtap, the tap binding event will be triggered in turn. A long press only triggers a long press.

Came across this article while searching for a solution blog.csdn.net/weixin_3431…

Looked at his code and made some improvements

catchtap() { if(this.data.lock){ this.data.lock=false; return; } }, catchlongtap(){ this.data.lock=true; } Since lock does not involve bidirectional binding of the front page, it is not recommended to use setdata as an asynchronous operation, which is inefficient.