export function preventClick(fn) { let that = this; if (that.onoff) { that.onoff = false; fn(); setTimeout(function () { that.onoff = true; }, 1500) } else { uni.showToast({ title:'操作过于频繁' }) } }