diff --git a/src/app/pages/notification/notification.page.html b/src/app/pages/notification/notification.page.html index 8535e92..e0f99e6 100644 --- a/src/app/pages/notification/notification.page.html +++ b/src/app/pages/notification/notification.page.html @@ -23,11 +23,11 @@ -
-
+
+
- Payment Successful - Parking booking Successful + {{item.date}} + {{item.title}}
diff --git a/src/app/pages/notification/notification.page.ts b/src/app/pages/notification/notification.page.ts index 6f2c5f9..c1bdc9c 100644 --- a/src/app/pages/notification/notification.page.ts +++ b/src/app/pages/notification/notification.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-notification', @@ -17,14 +12,44 @@ import { Component, OnInit } from '@angular/core'; export class NotificationPage implements OnInit { constructor( - private navctr: NavController - ) { } + private navctr: NavController, + private router: Router, + public sessionDataProviderService: SessionDataProviderService, + private wrenchService: WrenchService + ) { + + + } ngOnInit() { + this.getNotificationData(); } onBack() { this.navctr.back(); } + usrData: { + action:11205, member_id: number, uid: string, sessionid: string, limit:20, page:1 + }; + notificationTotalData:any; + notificationData: []; + getNotificationData(){ + this.usrData = {action:11205, + member_id: this.sessionDataProviderService.member_id, + uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session , + limit:20, page:1} + + this.wrenchService.getMyNotifications(this.usrData).subscribe( + notificationTotalData => { + this.notificationTotalData = notificationTotalData; + console.log("NOTIFICATION RETURN->", this.notificationTotalData); + this.notificationData = this.notificationTotalData.result_list; + // debugger; + console.log("JOBS RETURN DATA->", this.notificationData); + } + ); + + } } diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index cb50a3a..0ac784b 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -24,6 +24,10 @@ export class WrenchService { ); } + getMyNotifications(usrData) { + return this.getPostData('mynotifications',usrData); + } + loginUser(loginData) { return this.getPostData('userlogin',loginData); } diff --git a/src/assets/images/notifications/alert.svg b/src/assets/images/notifications/alert.svg new file mode 100644 index 0000000..2a5eea9 --- /dev/null +++ b/src/assets/images/notifications/alert.svg @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/src/assets/images/notifications/message.svg b/src/assets/images/notifications/message.svg new file mode 100644 index 0000000..a27c805 --- /dev/null +++ b/src/assets/images/notifications/message.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/notifications/phone.svg b/src/assets/images/notifications/phone.svg new file mode 100644 index 0000000..a5ee904 --- /dev/null +++ b/src/assets/images/notifications/phone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/notifications/sms.svg b/src/assets/images/notifications/sms.svg new file mode 100644 index 0000000..c8bbda4 --- /dev/null +++ b/src/assets/images/notifications/sms.svg @@ -0,0 +1 @@ + \ No newline at end of file