wallet page

This commit is contained in:
CHIEFSOFT\ameye
2023-08-25 06:51:48 -04:00
parent 52d54c215f
commit 63319bcc33
4 changed files with 50 additions and 7 deletions
+2 -2
View File
@@ -8,10 +8,10 @@
<div class="ion-padding">
<div class="flex">
<ion-label class="bold_text">Redeem</ion-label>
<ion-label class="bold_text">Redeem from {{currency_code}} Wallet</ion-label>
<!-- <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
</div>
<ion-label class="color_text">Balance: $40</ion-label>
<ion-label class="color_text">Balance: {{curr_balance}} {{currency_description}}</ion-label>
<ion-segment [(ngModel)]="tabs">
+45 -3
View File
@@ -10,16 +10,58 @@ import {WrenchService} from "../../services/wrench.service";
styleUrls: ['./redeem.page.scss'],
})
export class RedeemPage implements OnInit {
/*
action_type
:
"AC_AD_WR_FUND"
amount
:
"93178934"
code
:
"NAIRA"
country
:
"NG"
currency
:
""
description
:
"Naira"
escrow
:
0
symbol
:
"#"
transfer_limit
:
"500000"
wallet_uid
:
"cc0f8743-3f18-4214-ba4b-781e5dda9cb8"
*/
walletData:any;
tabs = 'bank_redeem';
curr_balance:number =0;
currency_description : string='';
currency_code:string='';
constructor(
private navctr: NavController,
private router: Router,
public sessionDataProviderService: SessionDataProviderService,
private wrenchService: WrenchService
) { }
) {
this.walletData = this.router.getCurrentNavigation().extras.state;
this.curr_balance =this.walletData.amount*0.01;
this.currency_code = this.walletData.code;
this.currency_description = this.walletData.description;
// debugger;
}
ngOnInit() {
this.getPaymentHxData();
@@ -68,7 +68,7 @@ export class TransactionPage implements OnInit {
}
startRedeem(item){
this.router.navigate(['redeem']);
this.router.navigate(['redeem'],{state: item} );
}
}
/*
+2 -1
View File
@@ -22,7 +22,8 @@ export class WrenchService {
}
getPostData(reqPath:string, reqData): Observable<any> {
if (reqPath != 'userlogin'&& reqPath != 'createuser' && reqPath !='stepresetpass'){
if (reqPath != 'userlogin' && reqPath != 'createuser'
&& reqPath !='stepresetpass' && reqPath !='startresetpasword'){
const sessionId = this.sessionDataProviderService.session;
if (sessionId.length==0){
//debugger;