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
65bc6865
Commit
65bc6865
authored
Mar 13, 2021
by
zhonghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打开屏保
parent
00d89c03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
FacePage.js
src/pages/FacePage.js
+5
-9
No files found.
src/pages/FacePage.js
View file @
65bc6865
...
...
@@ -24,7 +24,7 @@ import {qrHost} from '../utils/config';
import
Icons
from
'react-native-vector-icons/MaterialIcons'
;
import
AutoClick
from
'../utils/AutoClick'
;
import
validity
from
'../utils/validity'
;
import
{
simpleDebounce
}
from
"../utils/tools"
;
import
{
simpleDebounce
}
from
'../utils/tools'
;
@
connect
(({
admin
})
=>
({
admin
}))
class
FacePage
extends
Component
{
...
...
@@ -42,7 +42,7 @@ class FacePage extends Component {
tip
:
''
,
tipsModal
:
false
,
faceType
:
'wxpay'
,
//
sleep: true, // 屏保模式
sleep
:
true
,
// 屏保模式
loadingModal
:
false
,
qrCode
:
''
,
goTipsModal
:
false
,
...
...
@@ -53,13 +53,9 @@ class FacePage extends Component {
phone
=
''
;
// 监听用户输入手机
// 设备类型
sense
=
true
;
// 测试即拿刷脸设备
//
sense = true; // 测试即拿刷脸设备
async
componentWillMount
()
{
this
.
goodsCounterInter
=
setInterval
(()
=>
{
this
.
getOrderDetailMiniCounter
();
},
800
);
this
.
orderDetailMiniPop
(
true
);
this
.
storeKey
=
await
AsyncStorage
.
getItem
(
'KEY'
);
let
contact
=
await
AsyncStorage
.
getItem
(
'CONTACT'
);
let
storeName
=
await
AsyncStorage
.
getItem
(
'NAME'
);
...
...
@@ -196,12 +192,12 @@ class FacePage extends Component {
const
{
data
}
=
await
this
.
props
.
dispatch
({
type
:
'goods/getOrderCounter'
,
});
if
(
data
.
length
!==
0
)
{
if
(
data
.
length
!==
0
)
{
simpleDebounce
(()
=>
{
this
.
setState
({
goodsArr
:
data
,
});
},
1000
)
},
1000
)
;
}
}
catch
(
error
)
{
Toast
.
show
(
'当前网络存在异常'
);
...
...
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