From 2fdc3dc444a2f8199866780205c0fa4b5ac40522 Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Fri, 29 May 2020 10:38:46 +0800 Subject: [PATCH] 指纹登记与对比 --- SunshineIns/src/copy/fingerprint/js/main.js | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/SunshineIns/src/copy/fingerprint/js/main.js b/SunshineIns/src/copy/fingerprint/js/main.js index ca7a9b7..6e18473 100644 --- a/SunshineIns/src/copy/fingerprint/js/main.js +++ b/SunshineIns/src/copy/fingerprint/js/main.js @@ -136,22 +136,23 @@ dataType: "json", async: true, success: function (result) { - debugger; //alert(objToStr(data)); //指纹采集次数 var collCount = 0; ret = result.ret; + console.log('ret', ret) if (ret == 0) { collCount = result.data.enroll_index; base64FPImg = result.data.jpg_base64; + //将定时器关闭 + clearTimeout(verifyTimer); } if (collCount == 0) { //定时器 timer = setTimeout("checkColl()", 200);//比对失败重新开始 } else { - //将定时器关闭 - clearTimeout(verifyTimer); + //显示指纹图像 showImage(globalContext, base64FPImg, "verification"); //存放国际化元素数组 @@ -163,7 +164,7 @@ getFPTemplate(paramArray, "verification"); $("#oneToMany").attr("disabled", false); $("#oneToOne").attr("disabled", false); - setTimeout("beginCapture(null)", 200); + // setTimeout("beginCapture(null)", 200); console.log('1', getFPTemplate(paramArray, "verification")) console.log('2', $("#oneToMany").attr("disabled", false)) @@ -342,7 +343,7 @@ //返回码 var ret = null; ret = result.ret; - console.log('template',result.data.template); + console.log('template', result.data.template); window.top.postMessage({ fingerCode: result.data.template, display: 'none' @@ -760,6 +761,7 @@ $("#bg").css("display", "none"); $("#box").css("display", "none"); $("#comparisonDiv").css("display", "none"); + } //初始化界面数据,即清除指纹记录。 -- Gitblit v1.8.0