|
|
|
@ -1,14 +1,15 @@ |
|
|
|
|
import {Component, OnDestroy, OnInit} from '@angular/core'; |
|
|
|
|
import {environment} from '../../../../environments/environment'; |
|
|
|
|
import {FormBuilder, FormGroup, Validators} from '_@angular_forms@9.0.7@@angular/forms'; |
|
|
|
|
|
|
|
|
|
import {DiscountService} from '../../../services/discount.service'; |
|
|
|
|
import {CouponService} from '../../../services/coupon.service'; |
|
|
|
|
import {IconService} from '../../../services/icon.service'; |
|
|
|
|
import {NzMessageService} from '_ng-zorro-antd@9.3.0@ng-zorro-antd'; |
|
|
|
|
import {Router} from '_@angular_router@9.0.7@@angular/router'; |
|
|
|
|
|
|
|
|
|
import {CommonsService} from '../../../services/commons.service'; |
|
|
|
|
import {RechargeService} from '../../../services/recharge.service'; |
|
|
|
|
import {NzNotificationService} from 'ng-zorro-antd'; |
|
|
|
|
import {NzMessageService, NzNotificationService} from 'ng-zorro-antd'; |
|
|
|
|
import {FormBuilder, FormGroup, Validators} from '@angular/forms'; |
|
|
|
|
import {Router} from '@angular/router'; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-order-list', |
|
|
|
@ -47,15 +48,18 @@ export class OrderListComponent implements OnInit , OnDestroy { |
|
|
|
|
this.init(); |
|
|
|
|
this.timer = setInterval(() => { // 设置定时刷新事件,每隔1分钟刷新
|
|
|
|
|
this.recharge.countOrder(data => { |
|
|
|
|
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); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, 60000); |
|
|
|
|
}, 5000); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 销毁
|
|
|
|
|