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
44751709
Commit
44751709
authored
Feb 14, 2023
by
黄日华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时去除语音自动引导
parent
17039360
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CounterMixins.js
src/pages/CounterMixins.js
+8
-8
No files found.
src/pages/CounterMixins.js
View file @
44751709
...
@@ -1027,15 +1027,15 @@ const CounterMixins = ComposeComponent => {
...
@@ -1027,15 +1027,15 @@ const CounterMixins = ComposeComponent => {
guideVoice
=
()
=>
{
guideVoice
=
()
=>
{
if
(
this
.
nobodyInter
)
clearInterval
(
this
.
nobodyInter
);
if
(
this
.
nobodyInter
)
clearInterval
(
this
.
nobodyInter
);
const
that
=
this
;
//
const that = this;
this
.
nobodyInter
=
setInterval
(
async
()
=>
{
this
.
nobodyInter
=
setInterval
(
async
()
=>
{
if
(
this
.
state
.
nobodyVoice
)
{
//
if (this.state.nobodyVoice) {
await
Speech
.
speak
(
'您好,选购完商品后请到收银机这边付款'
);
//
await Speech.speak('您好,选购完商品后请到收银机这边付款');
await
wait
(
5000
);
//
await wait(5000);
await
Speech
.
speak
(
'请先扫描商品条码,再出示付款码'
);
//
await Speech.speak('请先扫描商品条码,再出示付款码');
}
else
{
//
} else {
clearInterval
(
that
.
nobodyInter
);
//
clearInterval(that.nobodyInter);
}
//
}
},
45000
);
},
45000
);
this
.
setState
({
this
.
setState
({
nobodyVoice
:
true
,
nobodyVoice
:
true
,
...
...
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