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
87c48f38
Commit
87c48f38
authored
Mar 12, 2021
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复迷你店订单商品轮询刷新
parent
e73876b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
FacePage.js
src/pages/FacePage.js
+7
-7
No files found.
src/pages/FacePage.js
View file @
87c48f38
...
...
@@ -156,18 +156,17 @@ class FacePage extends Component {
};
/**
* 用于控制订单详情弹窗,当参数为Number时为弹窗显示时间,当参数为boolean时关闭弹窗
* @param {Number} timeoutt 超时时间
* @param {Boolean} timeoutt 当参数为false时会清空定时器
* @param {Number} timeout 超时时间
*/
orderDetailMiniPop
=
timeout
t
=>
{
if
(
timeout
t
===
false
)
{
orderDetailMiniPop
=
timeout
=>
{
if
(
timeout
===
false
)
{
this
.
setState
({
orderDetailMini
:
false
,
});
clearTimeout
(
this
.
goodsCounterTimer
);
clearInterval
(
this
.
goodsCounterInter
);
return
;
}
else
if
(
timeout
t
===
true
)
{
}
else
if
(
timeout
===
true
)
{
this
.
setState
({
orderDetailMini
:
true
,
});
...
...
@@ -177,10 +176,11 @@ class FacePage extends Component {
orderDetailMini
:
true
,
});
this
.
goodsCounterTimer
=
setTimeout
(()
=>
{
clearInterval
(
this
.
goodsCounterInter
);
this
.
setState
({
orderDetailMini
:
false
,
});
},
timeout
t
);
},
timeout
);
};
/**
* 拉取数据,同步至state
...
...
@@ -240,7 +240,7 @@ class FacePage extends Component {
Speech
.
speak
(
'正在进行安全检查'
);
// this.getOrderDetailMiniCounter();
// this.orderDetailMiniPop(30000);
this
.
loading
(
true
,
30000
);
//
this.loading(true, 30000);
}
}
};
...
...
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