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
1d1a6693
Commit
1d1a6693
authored
Jul 02, 2020
by
修福龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复手机号码验证后闪退的问题
parent
ecc91797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
FacePage.js
src/pages/FacePage.js
+6
-9
No files found.
src/pages/FacePage.js
View file @
1d1a6693
...
@@ -289,7 +289,6 @@ class FacePage extends Component {
...
@@ -289,7 +289,6 @@ class FacePage extends Component {
// device 代表当前打开的门
// device 代表当前打开的门
handleScaleChange
=
({
count
})
=>
{
handleScaleChange
=
({
count
})
=>
{
console
.
warn
(
count
);
if
(
count
===
-
1
)
{
if
(
count
===
-
1
)
{
// 重力感应开始识别
// 重力感应开始识别
this
.
wechatFace
();
this
.
wechatFace
();
...
@@ -359,7 +358,6 @@ class FacePage extends Component {
...
@@ -359,7 +358,6 @@ class FacePage extends Component {
const
tipText
=
'正在人脸识别,请看向屏幕,靠中间站稳'
;
const
tipText
=
'正在人脸识别,请看向屏幕,靠中间站稳'
;
Speech
.
speak
(
tipText
);
Speech
.
speak
(
tipText
);
let
auth
=
(
await
this
.
authinfo
())
||
{};
let
auth
=
(
await
this
.
authinfo
())
||
{};
console
.
warn
(
auth
);
if
(
if
(
auth
.
return_code
===
'SUCCESS'
||
auth
.
return_code
===
'SUCCESS'
||
(
auth
.
code
===
1
&&
auth
.
data
.
bizCode
===
'0000'
)
(
auth
.
code
===
1
&&
auth
.
data
.
bizCode
===
'0000'
)
...
@@ -376,7 +374,6 @@ class FacePage extends Component {
...
@@ -376,7 +374,6 @@ class FacePage extends Component {
ask_unionid
:
1
,
ask_unionid
:
1
,
};
};
let
res
=
(
await
WxFacepay
.
faceinfo
(
params
))
||
{};
let
res
=
(
await
WxFacepay
.
faceinfo
(
params
))
||
{};
console
.
warn
(
res
);
if
(
window
.
socket
)
{
if
(
window
.
socket
)
{
window
.
socket
.
connect
();
window
.
socket
.
connect
();
}
// 返回结果,立即重新连接socket
}
// 返回结果,立即重新连接socket
...
@@ -417,11 +414,11 @@ class FacePage extends Component {
...
@@ -417,11 +414,11 @@ class FacePage extends Component {
// });
// });
// };
// };
talkCall
=
()
=>
{
//
talkCall = () => {
this
.
props
.
dispatch
({
//
this.props.dispatch({
type
:
'store/talkCall'
,
//
type: 'store/talkCall',
});
//
});
};
//
};
dropUp
=
()
=>
{
dropUp
=
()
=>
{
let
{
current
}
=
this
.
state
;
let
{
current
}
=
this
.
state
;
...
@@ -478,7 +475,7 @@ class FacePage extends Component {
...
@@ -478,7 +475,7 @@ class FacePage extends Component {
maskClosable
maskClosable
onClose
=
{
this
.
handleOrderClose
}
onClose
=
{
this
.
handleOrderClose
}
onRequestClose
=
{
this
.
handleOrderClose
}
onRequestClose
=
{
this
.
handleOrderClose
}
onCall
=
{
this
.
onCall
}
//
onCall={this.onCall}
dropUp
=
{
this
.
dropUp
}
dropUp
=
{
this
.
dropUp
}
dropDown
=
{
this
.
dropDown
}
dropDown
=
{
this
.
dropDown
}
goodsArr
=
{
goodsArr
}
goodsArr
=
{
goodsArr
}
...
...
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