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
b3f4d622
Commit
b3f4d622
authored
Jan 24, 2024
by
黄日华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加收银台系统卡顿检测反馈
parent
79c4880d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
agora.js
src/models/agora.js
+1
-1
CounterMixins.js
src/pages/CounterMixins.js
+10
-1
agora.js
src/services/agora.js
+3
-2
No files found.
src/models/agora.js
View file @
b3f4d622
...
@@ -10,7 +10,7 @@ export default {
...
@@ -10,7 +10,7 @@ export default {
return
data
;
return
data
;
},
},
*
talkCall
(
action
,
{
call
})
{
*
talkCall
(
action
,
{
call
})
{
const
{
data
}
=
yield
call
(
api
.
talkCall
);
const
{
data
}
=
yield
call
(
api
.
talkCall
,
action
);
return
data
;
return
data
;
},
},
*
talkLeave
(
action
,
{
call
})
{
*
talkLeave
(
action
,
{
call
})
{
...
...
src/pages/CounterMixins.js
View file @
b3f4d622
...
@@ -802,7 +802,16 @@ const CounterMixins = ComposeComponent => {
...
@@ -802,7 +802,16 @@ const CounterMixins = ComposeComponent => {
if
(
barcode
)
{
if
(
barcode
)
{
const
goods
=
this
.
goodsMap
[
barcode
];
const
goods
=
this
.
goodsMap
[
barcode
];
if
(
!
goods
)
{
if
(
!
goods
)
{
Toast
.
loading
(
'正在查询商品'
);
this
.
timeout
=
Date
.
now
();
Toast
.
loading
(
'正在查询商品'
,
3
,
()
=>
{
const
timeDiff
=
Date
.
now
()
-
this
.
timeout
;
if
(
timeDiff
>
2500
)
{
this
.
props
.
dispatch
({
type
:
'agora/talkCall'
,
isBug
:
1
,
});
}
});
}
}
this
.
setDelay
();
this
.
setDelay
();
let
{
goodsArr
}
=
this
.
state
;
let
{
goodsArr
}
=
this
.
state
;
...
...
src/services/agora.js
View file @
b3f4d622
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
qs
from
'qs'
;
export
function
agora
()
{
export
function
agora
()
{
return
axios
.
post
(
'/store/agora/token'
);
return
axios
.
post
(
'/store/agora/token'
);
}
}
export
function
talkCall
()
{
export
function
talkCall
(
{
isBug
}
)
{
return
axios
.
post
(
'/store/agora/call'
);
return
axios
.
post
(
'/store/agora/call'
,
qs
.
stringify
({
isBug
})
);
}
}
export
function
talkLeave
()
{
export
function
talkLeave
()
{
...
...
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