identityAuthentication.js 1.12 KB
layui.use('element', function () {
});
$(function () {
    addTabs('#wssq')
    setAcceptFlow(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
    if (business.sqfs=='1') {
        $('#sqfs').text('单方申请')
    }else {
        $('#sqfs').text('双方申请')
    }
    list = getApplyRecord(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
})
//下一步事件
function skipClick() {
    skipNextPage(GetQueryString('bsm_slsq'), GetQueryString('businessno'));
}
// 验证码
$(".captcha").click(function () {
    console.log($('.phoneInput').val())
    let value = $('.phoneInput').val()
    if (validatorTel(value)) {
        var second = 30
        $(".captcha").text((second) + "秒后再发送")
        var interval = setInterval(function () {
            second--
            $(".captcha").text((second) + "秒后再发送")
            if (second === -1) {
                $(".captcha").text("重发验证码")
                clearInterval(interval)
            }
        }, 1000)
    } else {
        layui.use('layer', function () {
            layer.msg('请输入正确手机号!');
        })
    }
})