|
|
|
@ -48,6 +48,7 @@ export class OrderListComponent implements OnInit , OnDestroy { |
|
|
|
|
this.init(); |
|
|
|
|
this.timer = setInterval(() => { // 设置定时刷新事件,每隔1分钟刷新
|
|
|
|
|
this.recharge.countOrder(data => { |
|
|
|
|
if (data['return_data'] > 0) { |
|
|
|
|
this.getRequest(true, this.searchForm.value); |
|
|
|
|
this.notification.info( |
|
|
|
|
'充值订单', |
|
|
|
@ -56,8 +57,9 @@ export class OrderListComponent implements OnInit , OnDestroy { |
|
|
|
|
this.searchForm.value.status = 2; |
|
|
|
|
this.getRequest(true, this.searchForm.value); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, 10000); |
|
|
|
|
}, 5000); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 销毁
|
|
|
|
|