Commit a8f311f0 by zhonghao

JKWRD-72: 迷你店人脸订单轮询速度调整

parent e1bbb0e0
......@@ -395,7 +395,7 @@ class FacePage extends Component {
// 轮询获取订单数据
this.goodsCounterInter = setInterval(() => {
this.getOrderDetailMiniCounter();
}, 500);
}, 1000);
this.orderDetailMiniPop(600000); // 十分钟后关闭弹窗
}
}
......
/**
* 简单防抖
* @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);
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment