identityAuthentication.js 1.27 KB
$(function () {
    layui.use('element', function () {
    });

    addTabs('#wssq')
    setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
    list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
    console.log(list)
    Webcam.set({
        width: 320,
        height: 240,
        image_format: 'jpeg',
        jpeg_quality: 90
    });
    Webcam.attach('#my_camera');
})
function take_snapshot() {
    // take snapshot and get image data
    Webcam.snap(function (data_uri) {
        // display results in page
        document.getElementById('results').innerHTML =
            '<h2>Here is your image:</h2>' +
            '<img src="' + data_uri + '"/>';
    });
}
//下一步事件
function skipClick() {
    skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
}
// 验证码

$(".captcha").click(function () {
    $(".captcha").hide()
    $(".num").show()
    var second = 30
    $(".num").text((second) + "秒")
    var interval = setInterval(function () {
        second--
        $(".num").text((second) + "秒")
        if (second === -1) {
            $(".captcha").text("重发验证码")
            clearInterval(interval)
            $(".num").hide()
            $(".captcha").show()
        }
    }, 1000)
})