top wallet
This commit is contained in:
@@ -19,6 +19,7 @@ import { FamiliyNokidsComponent } from '../../components/familycards/familiy-nok
|
||||
import {FamiliyNotaskComponent} from "../../components/familycards/familiy-notask/familiy-notask.component";
|
||||
import {FamiliyAddfamilyComponent} from "../../components/familycards/familiy-addfamily/familiy-addfamily.component";
|
||||
import {FamiliyAllowanceComponent} from "../../components/familycards/familiy-allowance/familiy-allowance.component";
|
||||
import {DashToptoolComponent} from "../../components/dash-toptool/dash-toptool.component";
|
||||
|
||||
// @NgModule({
|
||||
// schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
@@ -37,7 +38,8 @@ import {FamiliyAllowanceComponent} from "../../components/familycards/familiy-al
|
||||
LatestMarketComponent,HelpListingComponent,
|
||||
FamiliyDashComponent,FamiliyNokidsComponent,
|
||||
FamiliyNotaskComponent,FamiliyAddfamilyComponent,
|
||||
FamiliyAllowanceComponent
|
||||
FamiliyAllowanceComponent,
|
||||
DashToptoolComponent
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
</div>
|
||||
</ion-toolbar>
|
||||
</div>
|
||||
|
||||
<div *ngIf = "accountType == 'FULL';">
|
||||
<ion-toolbar>
|
||||
<div class="heading">
|
||||
@@ -38,7 +37,7 @@
|
||||
|
||||
<ion-content class="ion-padding">
|
||||
<div class="boxed_contents">
|
||||
|
||||
<app-dash-toptool></app-dash-toptool>
|
||||
<div *ngIf = "accountType == 'FAMILY'; else elseFulltag">
|
||||
<app-familypending></app-familypending>
|
||||
<app-suggestedlist></app-suggestedlist>
|
||||
@@ -56,22 +55,25 @@
|
||||
</ion-grid>
|
||||
</div>
|
||||
<ng-template #elseFulltag>
|
||||
<ion-toolbar class="top-tool" *ngIf="walletDescription !='' || active_job_count != 0">
|
||||
<ion-buttons slot="secondary" *ngIf="walletDescription !='' ">
|
||||
<ion-button shape="round" fill="solid" color="primary" (click)="myWallet()">
|
||||
<ion-icon slot="end" name="wallet"></ion-icon>
|
||||
{{walletDescription}}
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
<ion-buttons slot="primary" *ngIf="active_job_count != 0">
|
||||
<ion-button shape="round" fill="solid" color="primary" (click)="myJobs(1)">
|
||||
My Jobs
|
||||
<ion-icon slot="end" name="list"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
<!-- <ion-title>{{walletDescription}}</ion-title>-->
|
||||
</ion-toolbar>
|
||||
<app-familiy-dash></app-familiy-dash>
|
||||
<!-- <ion-toolbar class="top-tool" *ngIf="walletDescription !='' || active_job_count != 0">-->
|
||||
<!-- <ion-buttons slot="secondary" *ngIf="walletDescription !='' ">-->
|
||||
<!-- <ion-button shape="round" fill="solid" color="primary" (click)="myWallet()">-->
|
||||
<!-- <ion-icon slot="end" name="wallet"></ion-icon>-->
|
||||
<!-- {{walletDescription}}-->
|
||||
<!-- </ion-button>-->
|
||||
<!-- </ion-buttons>-->
|
||||
<!-- <ion-buttons slot="primary" *ngIf="active_job_count != 0">-->
|
||||
<!-- <ion-button shape="round" fill="solid" color="primary" (click)="myJobs(1)">-->
|
||||
<!-- My Jobs-->
|
||||
<!-- <ion-icon slot="end" name="list"></ion-icon>-->
|
||||
<!-- </ion-button>-->
|
||||
<!-- </ion-buttons>-->
|
||||
<!-- <!– <ion-title>{{walletDescription}}</ion-title>–>-->
|
||||
<!-- </ion-toolbar>-->
|
||||
|
||||
|
||||
|
||||
<!-- <app-familiy-dash></app-familiy-dash>-->
|
||||
<app-latest-market></app-latest-market>
|
||||
<app-fastreward></app-fastreward>
|
||||
<!-- <app-tracking></app-tracking>-->
|
||||
@@ -87,11 +89,13 @@
|
||||
</ion-list>
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
<div *ngIf = "homebannerCount <3;">
|
||||
<div class="offer">
|
||||
<div class="bg_image back_image" [style.backgroundImage]="'url('+offerBanner+')'"></div>
|
||||
</div>
|
||||
<!-- <div class="offer">-->
|
||||
<!-- <div class="bg_image back_image" [style.backgroundImage]="'url('+offerBanner+')'"></div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
<div *ngFor="let item of bannerData; let i = index" class="bg_white {{item.short_style}} {{item.card_type}} " (click)="onDetails(item)">
|
||||
<div class="list">
|
||||
<div *ngIf="item.banner_location === 'URL' ">
|
||||
|
||||
@@ -49,6 +49,15 @@ export class HomePage implements OnInit {
|
||||
this.blogData = this.blogDataService.blogData;
|
||||
this.active_job_count = this.sessionDataProviderService.active_job_count;
|
||||
this.enableTracking = this.sessionDataProviderService.tracking;
|
||||
|
||||
addEventListener('dash_tool_myjobs', () => {
|
||||
this. myJobs(1);
|
||||
});
|
||||
|
||||
addEventListener('dash_tool_mywallet', () => {
|
||||
this.myWallet();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
allInitFunctions(){
|
||||
@@ -69,7 +78,7 @@ export class HomePage implements OnInit {
|
||||
//debugger;
|
||||
|
||||
|
||||
this.walletPresentation();
|
||||
// this.walletPresentation();
|
||||
}
|
||||
ngOnInit() {
|
||||
this.allInitFunctions();
|
||||
@@ -81,14 +90,14 @@ export class HomePage implements OnInit {
|
||||
console.log('Home page did enter - > ionViewWillEnter');
|
||||
this.allInitFunctions();
|
||||
}
|
||||
async walletPresentation(){
|
||||
this.walletData = this.userWalletService.getWallet();
|
||||
if( this.walletData?.length > 0 ) {
|
||||
var num = new Number(this.walletData[0].amount*0.01);
|
||||
//this.fee_display = num.toFixed(2); //outputs 14
|
||||
this.walletDescription = num.toFixed(2) + ' ' + this.walletData[0].description;
|
||||
}
|
||||
}
|
||||
// async walletPresentation(){
|
||||
// this.walletData = this.userWalletService.getWallet();
|
||||
// if( this.walletData?.length > 0 ) {
|
||||
// var num = new Number(this.walletData[0].amount*0.01);
|
||||
// //this.fee_display = num.toFixed(2); //outputs 14
|
||||
// this.walletDescription = num.toFixed(2) + ' ' + this.walletData[0].description;
|
||||
// }
|
||||
// }
|
||||
goPlayground(){
|
||||
this.router.navigate(['playground']);
|
||||
}
|
||||
@@ -104,7 +113,7 @@ export class HomePage implements OnInit {
|
||||
this.getFamilySuggestList();
|
||||
}
|
||||
|
||||
this.walletPresentation();
|
||||
// this.walletPresentation();
|
||||
//debugger;
|
||||
}
|
||||
blogResult:any;
|
||||
|
||||
Reference in New Issue
Block a user