family action
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-familiy-dash',
|
||||
@@ -7,7 +11,41 @@ import { Component, OnInit } from '@angular/core';
|
||||
})
|
||||
export class FamiliyDashComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(private navctr: NavController,
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService) {
|
||||
addEventListener('app_fastreward_action', () => {
|
||||
// this.tabs="lesson";
|
||||
//this.get();
|
||||
this.router.navigate(['family']);
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_nokids_action', () => {
|
||||
//this.tabs="lesson";
|
||||
//this.get();
|
||||
this.router.navigate(['family']);
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_notask_action', () => {
|
||||
//this.tabs="lesson";
|
||||
//this.get();
|
||||
this.router.navigate(['family']);
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_addfamily_action', () => {
|
||||
//this.tabs="lesson";
|
||||
//this.get();
|
||||
this.router.navigate(['family']);
|
||||
});
|
||||
|
||||
addEventListener('app_familiy_allowance_action', () => {
|
||||
//this.tabs="lesson";
|
||||
//this.get();
|
||||
this.router.navigate(['family']);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {}
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ export class FamiliyAddfamilyComponent implements OnInit {
|
||||
ngOnInit() {}
|
||||
|
||||
cardAction(){
|
||||
alert('card-action');
|
||||
//alert('card-action');
|
||||
dispatchEvent(new Event("app_familiy_addfamily_action"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<ion-card (click)="cardAction()">
|
||||
<!-- <img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />-->
|
||||
<ion-card-header>
|
||||
<ion-card-title><span style="font-weight: bolder; color: #f3f4f4; margin-left: 200px">Add Allowance</span></ion-card-title>
|
||||
<ion-card-title><span style="font-weight: bolder; color: #1880b0;"> Setup Allowance</span></ion-card-title>
|
||||
<ion-card-subtitle><hr class="kid-line" /></ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
<ion-card-content class="f-item">
|
||||
@@ -10,5 +10,4 @@
|
||||
<ion-icon name="arrow-forward-circle-outline" slot="end"></ion-icon>
|
||||
</ion-item>
|
||||
</ion-card-content>
|
||||
<!-- <ion-button fill="clear">Action 1</ion-button>-->
|
||||
</ion-card>
|
||||
@@ -12,7 +12,8 @@ export class FamiliyAllowanceComponent implements OnInit {
|
||||
ngOnInit() {}
|
||||
|
||||
cardAction(){
|
||||
alert('card-action');
|
||||
//alert('card-action');
|
||||
dispatchEvent(new Event("app_familiy_allowance_action"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ export class FamiliyNokidsComponent implements OnInit {
|
||||
ngOnInit() {}
|
||||
|
||||
cardAction(){
|
||||
alert('card-action');
|
||||
// alert('card-action');
|
||||
dispatchEvent(new Event("app_familiy_nokids_action"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@ export class FamiliyNotaskComponent implements OnInit {
|
||||
ngOnInit() {}
|
||||
|
||||
cardAction(){
|
||||
alert('card-action');
|
||||
//alert('card-action');
|
||||
dispatchEvent(new Event("app_familiy_notask_action"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ export class FastrewardComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.getFamilyData();
|
||||
}
|
||||
familyAcc(){
|
||||
this.router.navigate(['family']);
|
||||
familyAcc(){
|
||||
dispatchEvent(new Event("app_fastreward_action"));
|
||||
}
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0
|
||||
@@ -51,9 +51,8 @@ export class FastrewardComponent implements OnInit {
|
||||
);
|
||||
|
||||
}
|
||||
familyMemebr(item){
|
||||
|
||||
familyMemebr(item){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user