identityAuthentication.js 1.37 KB
$(function () {
    layui.use('element', function () {
        let element = layui.element; //导航的hover效果、二级菜单等功能,需要依赖element模块
    });
    addTabs('#wssq')
    setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno'));

    layui.use('laytpl', function () {
        laytpl = layui.laytpl;
        var getTpl = document.getElementById('progress').innerHTML
            , view = document.getElementById('app_progress');
        laytpl(getTpl).render(data, function (html) {
            view.innerHTML = html;
        });

        layui.use(['element'], function () {
            var element = layui.element;
            //初始化动态元素,一些动态生成的元素如果不设置初始化,将不会有默认的动态效果
            element.init();
        });
    });

    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'));
}