Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e7eee81f
authored
2020-11-27 16:42:39 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
身份认证
1 parent
413858c5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
staticJs/jquery.webcam.min.js
staticJs/sfrz.js
staticViews/sfrz.html
staticJs/jquery.webcam.min.js
0 → 100644
View file @
e7eee81
This diff is collapsed.
Click to expand it.
staticJs/sfrz.js
View file @
e7eee81
$
(
function
()
{
layui
.
use
(
'element'
,
function
()
{
let
element
=
layui
.
element
;
//导航的hover效果、二级菜单等功能,需要依赖element模块
//监听导航点击
element
.
on
(
'nav(demo)'
,
function
(
elem
)
{
layer
.
msg
(
elem
.
text
());
});
});
addTabs
(
'#wssq'
)
// 业务
...
...
@@ -56,4 +52,23 @@ $(function () {
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
+
'"/>'
;
}
);
}
})
...
...
staticViews/sfrz.html
View file @
e7eee81
...
...
@@ -37,6 +37,10 @@
</div>
<div
class=
"video_authentication"
>
视频认证
<div
id=
"my_camera"
></div>
<form>
<input
type=
button
value=
"Take Snapshot"
onClick=
"take_snapshot()"
>
</form>
</div>
</div>
<div
class=
"next_button"
>
...
...
@@ -48,6 +52,7 @@
</body>
<script
type=
"text/javascript"
src=
"../staticJs/common.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/down.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/jquery.webcam.min.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/sfrz.js"
></script>
<script
id=
"progress"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
progressList
,
function
(
index
,
item
){
}}
...
...
@@ -84,4 +89,5 @@
{{
#
}
}}
{{
#
});
}}
</script>
</html>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment