Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8db9d744
authored
May 16, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.52.1' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V4.52.1
2 parents
15ff8039
06fdc98c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
mixin/timeout.js
mixin/timeout.js
View file @
8db9d74
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors:
yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditors:
liimin 17653212@qq.com
* @LastEditTime: 2025-0
4-29 11:23:03
* @LastEditTime: 2025-0
5-16 09:36:30
* @FilePath: \gl_tape\mixin\timeout.js
* @FilePath: \gl_tape\mixin\timeout.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -25,24 +25,25 @@ export default {
...
@@ -25,24 +25,25 @@ export default {
this
.
__timer
=
setInterval
(()
=>
{
this
.
__timer
=
setInterval
(()
=>
{
if
(
this
.
__counter
>=
TIMER_TIMEOUT
)
{
if
(
this
.
__counter
>=
TIMER_TIMEOUT
)
{
//关闭录音
//关闭录音
uni
.
$logger
.
local
.
info
(
'== 长时间未触碰平板 =='
)
uni
.
$logger
.
local
.
info
(
'== 长时间未触碰平板 ==
__timer:'
+
this
.
__timer
+
'__counter:'
+
this
.
__counter
+
'分钟
'
)
this
.
endWatchClick
()
this
.
endWatchClick
()
this
.
stopRecorder
()
this
.
stopRecorder
()
return
}
}
this
.
__counter
++
this
.
__counter
++
uni
.
$logger
.
local
.
info
(
'== 未触碰平板计时 =='
+
this
.
__counter
+
'分钟'
)
uni
.
$logger
.
local
.
info
(
'== 未触碰平板计时 =='
+
this
.
__counter
+
'分钟'
+
'== __timer:'
+
this
.
__timer
)
},
TIMER_INTERVAL
)
},
TIMER_INTERVAL
)
},
},
endWatchClick
()
{
endWatchClick
()
{
if
(
this
.
__timer
)
clearInterval
(
this
.
__timer
)
if
(
this
.
__timer
)
{
this
.
__timer
=
null
clearInterval
(
this
.
__timer
)
this
.
__counter
=
0
this
.
__timer
=
null
uni
.
$logger
.
local
.
info
(
'== 停止监听未触碰平板事件 =='
)
this
.
__counter
=
0
uni
.
$logger
.
local
.
info
(
'== 停止监听未触碰平板事件 == __timer:'
+
this
.
__timer
+
' __counter:'
+
this
.
__counter
)
}
},
},
handleTouchStart
()
{
handleTouchStart
()
{
if
(
this
.
__counter
)
{
uni
.
$logger
.
local
.
info
(
`==
${
this
.
__counter
}
分钟后触碰平板 == __timer:
${
this
.
__timer
}
`
)
uni
.
$logger
.
local
.
info
(
`==
${
this
.
__counter
}
分钟后触碰平板 ==`
)
}
this
.
__counter
=
0
this
.
__counter
=
0
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment