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
d3399471
Commit
d3399471
authored
Feb 10, 2023
by
黄日华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加引导语音
parent
b308e370
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
25 deletions
+127
-25
guide.jpg
src/assets/Vertical/guide.jpg
+0
-0
CounterMixins.js
src/pages/CounterMixins.js
+117
-14
VerticalPage.js
src/pages/VerticalPage.js
+10
-11
No files found.
src/assets/Vertical/guide.jpg
View replaced file @
b308e370
View file @
d3399471
39.9 KB
|
W:
|
H:
32.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/CounterMixins.js
View file @
d3399471
This diff is collapsed.
Click to expand it.
src/pages/VerticalPage.js
View file @
d3399471
...
@@ -36,8 +36,6 @@ import {ossLink} from '../utils/config';
...
@@ -36,8 +36,6 @@ import {ossLink} from '../utils/config';
let
pageSize
=
8
;
// 分页大小
let
pageSize
=
8
;
// 分页大小
window
.
pageSize
=
pageSize
;
window
.
pageSize
=
pageSize
;
// const wait = t => new Promise(resolve => setTimeout(resolve, t));
class
VerticalPage
extends
Component
{
class
VerticalPage
extends
Component
{
state
=
{
state
=
{
contact
:
''
,
contact
:
''
,
...
@@ -90,6 +88,10 @@ class VerticalPage extends Component {
...
@@ -90,6 +88,10 @@ class VerticalPage extends Component {
await
this
.
refreshLogo
();
await
this
.
refreshLogo
();
}
}
async
componentDidMount
()
{
await
this
.
listen
();
}
initSetting
=
()
=>
{
initSetting
=
()
=>
{
AutoClick
.
isSettingsOn
().
then
(
setting
=>
{
AutoClick
.
isSettingsOn
().
then
(
setting
=>
{
if
(
!
setting
)
this
.
setState
({
setting
:
true
});
// 展示辅助按钮
if
(
!
setting
)
this
.
setState
({
setting
:
true
});
// 展示辅助按钮
...
@@ -103,10 +105,6 @@ class VerticalPage extends Component {
...
@@ -103,10 +105,6 @@ class VerticalPage extends Component {
await
AutoClick
.
goSetting
();
// 按钮跳转设置
await
AutoClick
.
goSetting
();
// 按钮跳转设置
};
};
async
componentDidMount
()
{
this
.
listen
();
}
listen
=
async
()
=>
{
listen
=
async
()
=>
{
try
{
try
{
while
(
!
window
.
socket
)
{
while
(
!
window
.
socket
)
{
...
@@ -1764,27 +1762,28 @@ const styles = {
...
@@ -1764,27 +1762,28 @@ const styles = {
zIndex
:
999999999999999
,
zIndex
:
999999999999999
,
elevation
:
6
,
elevation
:
6
,
display
:
'flex'
,
display
:
'flex'
,
flexDirection
:
'column'
,
justifyContent
:
'center'
,
width
:
'100%'
,
width
:
'100%'
,
height
:
'100%'
,
height
:
'100%'
,
backgroundColor
:
'#0C0C0C'
,
backgroundColor
:
'#0C0C0C'
,
},
},
guardModal_image
:
{
guardModal_image
:
{
height
:
'65%'
,
height
:
'60%'
,
width
:
'100%'
,
display
:
'flex'
,
display
:
'flex'
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
},
},
Imageee
:
{
Imageee
:
{
minHeight
:
'6
0%'
,
height
:
'10
0%'
,
},
},
guardModal_button
:
{
guardModal_button
:
{
height
:
'35%'
,
width
:
'100%'
,
width
:
'100%'
,
display
:
'flex'
,
display
:
'flex'
,
flexDirection
:
'column'
,
flexDirection
:
'column'
,
justifyContent
:
'
center
'
,
justifyContent
:
'
flex-start
'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
marginTop
:
'10%'
,
},
},
guardModal_button_call
:
{
guardModal_button_call
:
{
backgroundColor
:
'#fc4000'
,
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