identityAuthentication.js
1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
layui.use('element', function () {
});
$(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 () {
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('请输入正确手机号!');
})
}
})