diff --git a/src/app/pages/invite/invite-routing.module.ts b/src/app/pages/invite/invite-routing.module.ts index 8113846..9b04cf2 100644 --- a/src/app/pages/invite/invite-routing.module.ts +++ b/src/app/pages/invite/invite-routing.module.ts @@ -1,11 +1,3 @@ -/* - Authors : initappz (Rahul Jograna) - Website : https://initappz.com/ - App Name : E-Learning App Template - This App Template Source code is licensed as per the - terms found in the Website https://initappz.com/license - Copyright and Good Faith Purchasers © 2021-present initappz. -*/ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; diff --git a/src/app/pages/invite/invite.module.ts b/src/app/pages/invite/invite.module.ts index 82c99ca..a5cefa3 100644 --- a/src/app/pages/invite/invite.module.ts +++ b/src/app/pages/invite/invite.module.ts @@ -1,11 +1,3 @@ -/* - Authors : initappz (Rahul Jograna) - Website : https://initappz.com/ - App Name : E-Learning App Template - This App Template Source code is licensed as per the - terms found in the Website https://initappz.com/license - Copyright and Good Faith Purchasers © 2021-present initappz. -*/ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; diff --git a/src/app/pages/invite/invite.page.html b/src/app/pages/invite/invite.page.html index d98c9fc..ab90fe9 100644 --- a/src/app/pages/invite/invite.page.html +++ b/src/app/pages/invite/invite.page.html @@ -1,11 +1,3 @@ - @@ -18,18 +10,30 @@ -
+
- Tynish Obey + {{item.firstname}} {{item.lastname}}
- +91 9876543210 + {{item.email}}
- Invite + {{item.status}}
+ + + diff --git a/src/app/pages/invite/invite.page.scss b/src/app/pages/invite/invite.page.scss index 3237f7e..48740e6 100644 --- a/src/app/pages/invite/invite.page.scss +++ b/src/app/pages/invite/invite.page.scss @@ -1,11 +1,3 @@ -/* - Authors : initappz (Rahul Jograna) - Website : https://initappz.com/ - App Name : E-Learning App Template - This App Template Source code is licensed as per the - terms found in the Website https://initappz.com/license - Copyright and Good Faith Purchasers © 2021-present initappz. -*/ ion-header { ion-toolbar { --background: var(--ion-color-primary); diff --git a/src/app/pages/invite/invite.page.spec.ts b/src/app/pages/invite/invite.page.spec.ts index 0505985..609f0ff 100644 --- a/src/app/pages/invite/invite.page.spec.ts +++ b/src/app/pages/invite/invite.page.spec.ts @@ -1,11 +1,3 @@ -/* - Authors : initappz (Rahul Jograna) - Website : https://initappz.com/ - App Name : E-Learning App Template - This App Template Source code is licensed as per the - terms found in the Website https://initappz.com/license - Copyright and Good Faith Purchasers © 2021-present initappz. -*/ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; diff --git a/src/app/pages/invite/invite.page.ts b/src/app/pages/invite/invite.page.ts index 0740f8a..e51732f 100644 --- a/src/app/pages/invite/invite.page.ts +++ b/src/app/pages/invite/invite.page.ts @@ -1,13 +1,8 @@ -/* - Authors : initappz (Rahul Jograna) - Website : https://initappz.com/ - App Name : E-Learning App Template - This App Template Source code is licensed as per the - terms found in the Website https://initappz.com/license - Copyright and Good Faith Purchasers © 2021-present initappz. -*/ -import { NavController } from '@ionic/angular'; import { Component, OnInit } from '@angular/core'; +import {NavController} from "@ionic/angular"; +import {Router} from "@angular/router"; +import { WrenchService } from 'src/app/services/wrench.service'; +import {SessionDataProviderService} from "../../store/session-data-provider.service"; @Component({ selector: 'app-invite', @@ -17,14 +12,42 @@ import { Component, OnInit } from '@angular/core'; export class InvitePage implements OnInit { constructor( - private navctr: NavController - ) { } + private navctr: NavController, + private router: Router, + public sessionDataProviderService: SessionDataProviderService, + private wrenchService: WrenchService + ) { + } ngOnInit() { + this.getReferData(); } onBack() { this.navctr.back(); } + usrData: { + action:22010, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0 + }; + referTotalData:any; + referData: []; + getReferData(){ + this.usrData = {action:22010, + member_id: this.sessionDataProviderService.member_id, + uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session , + limit:20, page:1,offset: 0} + + this.wrenchService.referHx(this.usrData).subscribe( + referTotalData => { + this.referTotalData = referTotalData; + console.log("REFER RETURN->", this.referTotalData); + this.referData = this.referTotalData.result_list; + // debugger; + console.log("REFER RETURN DATA->", this.referData); + } + ); + + } } diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 8f83cbc..a784c4b 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -31,7 +31,12 @@ export class WrenchService { return this.getPostData('completemobileuser', reqData); } + referHx(reqData) { + return this.getPostData('refferhx', reqData); + } + // + signUpCountry(apiData) { /* array (size=3)