Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
7f0ae948
Commit
7f0ae948
authored
Jan 15, 2021
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
无感出店弹出加载页面
parent
9b353616
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
LoadingModal.js
src/components/LoadingModal.js
+1
-1
FacePage.js
src/pages/FacePage.js
+19
-2
No files found.
src/components/LoadingModal.js
View file @
7f0ae948
...
@@ -30,7 +30,7 @@ class LoadingModal extends Component {
...
@@ -30,7 +30,7 @@ class LoadingModal extends Component {
/
>
/
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
bottom
}
>
<
View
style
=
{
styles
.
bottom
}
>
<
Text
style
=
{
styles
.
tips
}
>
正在进行安全检查
,请靠中间站稳
<
/Text
>
<
Text
style
=
{
styles
.
tips
}
>
正在进行安全检查
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/pages/FacePage.js
View file @
7f0ae948
...
@@ -186,7 +186,15 @@ class FacePage extends Component {
...
@@ -186,7 +186,15 @@ class FacePage extends Component {
this
.
loading
(
false
);
this
.
loading
(
false
);
// 即拿迷你店,唤醒屏幕时间为1分钟
// 即拿迷你店,唤醒屏幕时间为1分钟
this
.
sense
?
this
.
wakeUp
(
60000
)
:
this
.
wakeUp
();
this
.
sense
?
this
.
wakeUp
(
60000
)
:
this
.
wakeUp
();
if
(
this
.
sense
&&
this
.
action
===
'enter'
)
this
.
face
();
if
(
this
.
sense
)
{
// 进门自动调起刷脸
if
(
this
.
action
===
'enter'
)
this
.
face
();
else
if
(
this
.
action
===
'leave'
)
{
// 出门身份识别提示
Speech
.
speak
(
'正在进行安全检查'
);
this
.
loading
(
true
,
30000
);
}
}
};
};
handleTalkCall
=
async
()
=>
{
handleTalkCall
=
async
()
=>
{
...
@@ -439,10 +447,19 @@ class FacePage extends Component {
...
@@ -439,10 +447,19 @@ class FacePage extends Component {
}
}
};
};
loading
=
flag
=>
{
loading
=
(
flag
,
timeout
)
=>
{
this
.
setState
({
this
.
setState
({
loadingModal
:
flag
,
loadingModal
:
flag
,
});
});
if
(
flag
&&
timeout
)
{
// 自动关闭加载界面
clearTimeout
(
this
.
loadingTimeout
);
this
.
loadingTimeout
=
setTimeout
(()
=>
{
this
.
setState
({
loadingModal
:
false
,
});
},
timeout
);
}
};
};
// 语音通话请求
// 语音通话请求
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment