点击顶部自定义导航栏 ,回到顶部
<view class="navBox" @click="backTop">
<wh-nav-bar title="朋友圈"
background="linear-gradient(to right, #D3D5F0, #F0DCF3, #F7F6FB, #DAE8F2, #E1D3EE)" color="#000000"
@init="onInit"></wh-nav-bar>
</view>
function backTop(){
uni.pageScrollTo({
scrollTop:0,
duration:3000
})
}
判定双击事件
https://juejin.cn/post/7229861468660039717