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
a8f311f0
Commit
a8f311f0
authored
Mar 17, 2021
by
zhonghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JKWRD-72: 迷你店人脸订单轮询速度调整
parent
e1bbb0e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
19 deletions
+1
-19
FacePage.js
src/pages/FacePage.js
+1
-1
tools.js
src/utils/tools.js
+0
-18
No files found.
src/pages/FacePage.js
View file @
a8f311f0
...
...
@@ -395,7 +395,7 @@ class FacePage extends Component {
// 轮询获取订单数据
this
.
goodsCounterInter
=
setInterval
(()
=>
{
this
.
getOrderDetailMiniCounter
();
},
5
00
);
},
10
00
);
this
.
orderDetailMiniPop
(
600000
);
// 十分钟后关闭弹窗
}
}
...
...
src/utils/tools.js
deleted
100644 → 0
View file @
e1bbb0e0
/**
* 简单防抖
* @param {Function} 防抖回调函数
* @param {Number} 触发时间
*/
export
function
simpleDebounce
(
fn
,
delay
=
500
)
{
let
timer
=
null
;
return
function
()
{
if
(
timer
)
{
clearTimeout
(
timer
);
}
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
,
arguments
);
timer
=
null
;
},
delay
);
};
}
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