From 40902424fb45b5128069c119c851d418e2706faf Mon Sep 17 00:00:00 2001 From: YUANYE <418471657@qq.com> Date: Wed, 23 Jun 2021 18:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order-list/order-list.component.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/app/admin/recharge-order/order-list/order-list.component.ts b/src/app/admin/recharge-order/order-list/order-list.component.ts index 91786f8..bedb2be 100644 --- a/src/app/admin/recharge-order/order-list/order-list.component.ts +++ b/src/app/admin/recharge-order/order-list/order-list.component.ts @@ -48,16 +48,18 @@ export class OrderListComponent implements OnInit , OnDestroy { this.init(); this.timer = setInterval(() => { // 设置定时刷新事件,每隔1分钟刷新 this.recharge.countOrder(data => { - this.getRequest(true, this.searchForm.value); - this.notification.info( - '充值订单', - '您有' + data['return_data'] + '条未充值的订单,请尽快充值,点击可查看未充值订单!' - ).onClick.subscribe(() => { - this.searchForm.value.status = 2; + if (data['return_data'] > 0) { this.getRequest(true, this.searchForm.value); - }); + this.notification.info( + '充值订单', + '您有' + data['return_data'] + '条未充值的订单,请尽快充值,点击可查看未充值订单!' + ).onClick.subscribe(() => { + this.searchForm.value.status = 2; + this.getRequest(true, this.searchForm.value); + }); + } }); - }, 10000); + }, 5000); } // 销毁