更新问诊表重复提交

This commit is contained in:
zoujiandong 2023-12-19 10:20:29 +08:00
parent d3137d149e
commit 49af4f2505
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ Page({
}) })
}) })
}, },
handleSend(){ handleSend:debounce(function(){
let {order_inquiry_id,result,obj}=this.data; let {order_inquiry_id,result,obj}=this.data;
if(result.length==0){ if(result.length==0){
wx.showToast({ wx.showToast({
@ -97,7 +97,7 @@ Page({
wx.navigateBack(); wx.navigateBack();
} }
}) })
}, }),
noop() {}, noop() {},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载

View File

@ -1,4 +1,4 @@
function debounce(fn, delay){ function debounce(fn, delay=800){
let timer = null; let timer = null;
return function(){ return function(){
clearTimeout(timer); clearTimeout(timer);