From 976ca19580ea9903844f34a087565f9d20eea4fd Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 27 Nov 2023 08:07:51 -0500 Subject: [PATCH] add credit --- src/app/accounts/addcredit/addcredit.page.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/app/accounts/addcredit/addcredit.page.ts b/src/app/accounts/addcredit/addcredit.page.ts index 7088b7a..2d9eee5 100644 --- a/src/app/accounts/addcredit/addcredit.page.ts +++ b/src/app/accounts/addcredit/addcredit.page.ts @@ -52,7 +52,8 @@ export class AddcreditPage implements OnInit { } onBack() { this.setCloseModal(); - this.navctr.back(); + // this.navctr.back(); + } usrData: { @@ -128,7 +129,10 @@ export class AddcreditPage implements OnInit { } setCloseModal(){ this.isModalOpen = false; - setTimeout(()=>{ this.isModalOpenBackdrop= false;},1000); + setTimeout(()=>{ + this.isModalOpenBackdrop= false; + this.myWallet(); + },1000); } amount:number =0; @@ -213,7 +217,10 @@ export class AddcreditPage implements OnInit { this.userWalletService.getWalletData(); // refresh the wallet this.credit_confirmation = creditResult.confirmation; alert("Completed"); - + this.onBack(); + // setTimeout(()=>{ + // this.onBack(); + // },2500); // this.startCreditResult = startCreditResult; // // @@ -228,6 +235,10 @@ export class AddcreditPage implements OnInit { } + myWallet(){ + this.router.navigate(['tabs/tab4']); + } + payPevCreditData:{ member_id:number, sessionid:string,