forked from nsjcy/frontEnd/nsjcy

liuwh
2020-05-29 2fdc3dc444a2f8199866780205c0fa4b5ac40522
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))
@@ -760,6 +761,7 @@
   $("#bg").css("display", "none");
   $("#box").css("display", "none");
   $("#comparisonDiv").css("display", "none");
}
//初始化界面数据,即清除指纹记录。