|
|
@@ -59,10 +59,35 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
function debounce(fn, delay) { |
|
|
|
let time = null; |
|
|
|
return function () { |
|
|
|
if (time !== null) { |
|
|
|
clearTimeout(time); |
|
|
|
} |
|
|
|
time = setTimeout(() => { |
|
|
|
fn.call(this); |
|
|
|
}, delay) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//$('#btn_finish').on('click', debounce(function () { |
|
|
|
// console.log('123456') |
|
|
|
|
|
|
|
// var datapair = $sigdiv.jsignature("getdata"); |
|
|
|
// top.flowauditfn(datapair,stampurl); |
|
|
|
// learun.layerclose(window.name); |
|
|
|
|
|
|
|
//},500)) |
|
|
|
|
|
|
|
$('#btn_finish').on('click', function () { |
|
|
|
var datapair = $sigdiv.jSignature("getData"); |
|
|
|
top.flowAuditfn(datapair,stampUrl); |
|
|
|
learun.layerClose(window.name); |
|
|
|
learun.loading(true, '正在提交'); |
|
|
|
var datapair = $sigdiv.jSignature("getData"); |
|
|
|
top.flowAuditfn(datapair,stampUrl); |
|
|
|
learun.layerClose(window.name); |
|
|
|
setTimeout(function () { |
|
|
|
learun.loading(false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|