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
09d7c791
Commit
09d7c791
authored
Jul 11, 2020
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复刷脸窗口循环弹出的问题
parent
d907f077
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
FacePage.js
src/pages/FacePage.js
+7
-7
No files found.
src/pages/FacePage.js
View file @
09d7c791
...
...
@@ -173,7 +173,7 @@ class FacePage extends Component {
handleScaleChange
=
async
({
count
})
=>
{
if
(
count
===
-
1
)
{
// 重力感应开始识别
this
.
wechatFace
(
true
);
this
.
wechatFace
();
}
else
if
(
count
===
0
)
{
// 重力感应归零
this
.
leaveC
();
...
...
@@ -235,9 +235,9 @@ class FacePage extends Component {
};
// 微信人脸身份识别
wechatFace
=
async
face
=>
{
wechatFace
=
async
()
=>
{
const
{
orderDetailsModal
,
tipsModal
}
=
this
.
state
;
if
(
(
orderDetailsModal
||
tipsModal
)
&&
!
face
)
{
if
(
orderDetailsModal
||
tipsModal
)
{
return
;
}
// 出现订单弹窗,不做人脸识别
const
tipText
=
'正在人脸识别,请看向屏幕,靠中间站稳'
;
...
...
@@ -394,7 +394,7 @@ class FacePage extends Component {
<
View
style
=
{
styles
.
faceRecogn
}
>
<
Touch
style
=
{
styles
.
faceGif
}
onPress
=
{()
=>
this
.
wechatFace
(
true
)}
onPress
=
{()
=>
this
.
wechatFace
()}
feedback
=
{
false
}
>
<
Image
source
=
{
require
(
'../assets/Vertical/face.gif'
)}
...
...
@@ -422,7 +422,7 @@ class FacePage extends Component {
)}
<
/View
>
<
Touch
onPress
=
{()
=>
this
.
wechatFace
(
true
)}
onPress
=
{()
=>
this
.
wechatFace
()}
style
=
{
styles
.
btnCome
}
feedback
=
{
false
}
>
<
View
style
=
{
styles
.
click
}
>
...
...
@@ -619,7 +619,7 @@ const styles = {
backgroundColor
:
'#FC4000'
,
width
:
'70%'
,
// height: '18%',
//
height: 200,
height
:
200
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
marginRight
:
5
,
...
...
@@ -636,7 +636,7 @@ const styles = {
callTouch
:
{
width
:
'30%'
,
// height: '18%',
//
height: 200,
height
:
200
,
marginLeft
:
5
,
backgroundColor
:
'#FC4000'
,
},
...
...
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