This commit is contained in:
CHIEFSOFT\ameye
2023-06-24 12:18:28 -04:00
parent e565f31752
commit 4e29e9bd95
5 changed files with 84 additions and 34 deletions
+27 -7
View File
@@ -12,21 +12,23 @@
<ion-content class="ion-padding">
<ion-segment [(ngModel)]="tabs">
<ion-segment-button value="chat">
<ion-segment-button value="tasks">
<ion-label>Active</ion-label>
</ion-segment-button>
<ion-segment-button value="call">
<ion-segment-button value="pastdue">
<ion-label>Past Due</ion-label>
</ion-segment-button>
<ion-segment-button value="review">
<ion-label>In Review</ion-label>
</ion-segment-button>
</ion-segment>
<div *ngIf="tabs =='chat'">
<div *ngIf="tabs =='tasks'">
<div class="chat" *ngFor="let item of [1,2,3,4,5,6,7,8,9]" (click)="onMessage()">
<div class="chat" *ngFor="let item of jobsData;" (click)="onMessage()">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p2.jpg)'"></div>
<div style="margin-left: 10px;">
<ion-label class="bold_text"> Mike Jenifer </ion-label>
<ion-label class="bold_text"> {{item.title}}</ion-label>
<div style="display: flex;">
<ion-label class="grey_text"> typing..... </ion-label>
</div>
@@ -39,7 +41,7 @@
</div>
</div>
<div *ngIf="tabs =='call'">
<div *ngIf="tabs =='pastdue'">
<div class="chat" *ngFor="let item of [1,2,3,4,5,6,7,8,9]">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p3.jpg)'"></div>
@@ -57,4 +59,22 @@
</div>
</div>
<div *ngIf="tabs =='review'">
<div class="chat" *ngFor="let item of [1,2,3,4,5,6,7,8,9]" (click)="onMessage()">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p2.jpg)'"></div>
<div style="margin-left: 10px;">
<ion-label class="bold_text"> Mike Jenifer </ion-label>
<div style="display: flex;">
<ion-label class="grey_text"> typing..... </ion-label>
</div>
</div>
</div>
<div class="column">
<ion-label class="small_text"> 11:30 PM</ion-label>
<ion-label class="color_text"> 10</ion-label>
</div>
</div>
</div>
</ion-content>
+27 -10
View File
@@ -1,14 +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 { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { WrenchService } from 'src/app/services/wrench.service';
import {SessionDataProviderService} from "../../store/session-data-provider.service";
@Component({
selector: 'app-inbox',
templateUrl: './inbox.page.html',
@@ -19,10 +13,13 @@ export class InboxPage implements OnInit {
tabs: any = 'chat';
constructor(
private router: Router
private router: Router,
public sessionDataProviderService: SessionDataProviderService,
private wrenchService: WrenchService
) { }
ngOnInit() {
this.getJobsData();
}
onCall() {
@@ -32,5 +29,25 @@ export class InboxPage implements OnInit {
onMessage() {
this.router.navigate(['message']);
}
usrData: {
action:11200, member_id: number, uid: string, sessionid: string, limit:20, page:1
};
jobsTotalData:any;
jobsData: [];
getJobsData(){
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session , limit:20, page:1}
this.wrenchService.getJobsData(this.usrData).subscribe(
jobsTotalData => {
this.jobsTotalData = jobsTotalData;
console.log("PAH HX RETURN->", this.jobsTotalData);
this.jobsData = this.jobsTotalData.result_list;
// debugger;
console.log("JOBS RETURN DATA->", this.jobsData);
// this.blogDataService.setBlogData(this.blogResult.blog_data);
}
);
}
}
+2 -7
View File
@@ -22,16 +22,11 @@
<div *ngIf="tabs =='on'">
<div class="content" *ngFor="let item of [1,2,3,4,5,6,7]" (click)="onCourseDetail()">
<div class="content" *ngFor="let item of jobsData;" (click)="onCourseDetail()">
<div class="flex">
<div class="bg_image back_image" [style.backgroundImage]="'url(assets/images/p4.jpg)'"></div>
<div class="text">
<ion-label class="bold_text">3D Design Illustartion</ion-label>
<ion-label class="bold_text">{{item.title}}</ion-label>
<ion-label class="grey_text">2hrs 23min</ion-label>
<div class="progress">
<ion-progress-bar value="0.5"></ion-progress-bar>
<ion-label class="stage">87/175</ion-label>
</div>
</div>
</div>
</div>
+25 -10
View File
@@ -1,14 +1,7 @@
/*
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 { Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { WrenchService } from 'src/app/services/wrench.service';
import {SessionDataProviderService} from "../../store/session-data-provider.service";
@Component({
selector: 'app-my-course',
templateUrl: './my-course.page.html',
@@ -19,14 +12,36 @@ export class MyCoursePage implements OnInit {
tabs: any = 'on';
constructor(
private router: Router
private router: Router,
public sessionDataProviderService: SessionDataProviderService,
private wrenchService: WrenchService
) { }
ngOnInit() {
this.getJobsData();
}
onCourseDetail() {
this.router.navigate(['course-detail']);
}
usrData: {
action:11200, member_id: number, uid: string, sessionid: string, limit:20, page:1
};
jobsTotalData:any;
jobsData: [];
getJobsData(){
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session , limit:20, page:1}
this.wrenchService.getJobsData(this.usrData).subscribe(
jobsTotalData => {
this.jobsTotalData = jobsTotalData;
console.log("PAH HX RETURN->", this.jobsTotalData);
this.jobsData = this.jobsTotalData.result_list;
// debugger;
console.log("JOBS RETURN DATA->", this.jobsData);
// this.blogDataService.setBlogData(this.blogResult.blog_data);
}
);
}
}
+3
View File
@@ -45,6 +45,9 @@ export class WrenchService {
getPaymentHx(usrData) {
return this.getPostData("paymenthx", usrData);
}
getJobsData(usrData) {
return this.getPostData("getjobsdata", usrData);
}
/*