diff --git a/src/app/pages/family/family.page.html b/src/app/pages/family/family.page.html index e6a39fc..8fb3243 100644 --- a/src/app/pages/family/family.page.html +++ b/src/app/pages/family/family.page.html @@ -68,68 +68,28 @@
- Most Popular Courses - See all + Total : {{family_active}}
-
- Section 1 - Introduction - 15 min -
+ + + + -
-
-
- -
- Why Using Figma ? - 10 mins -
-
-
- -
-
- -
- Section 2 - Figma Basic - 60 min -
- - -
-
-
- -
- Why Using Figma ? - 10 mins -
-
-
- -
-
- -
- Section 3 - Let's Practice - 75 min -
- - -
+
{{item.title}} - 10 mins + {{item.job_description}}
+
diff --git a/src/app/pages/family/family.page.ts b/src/app/pages/family/family.page.ts index 09eacc9..6e8d282 100644 --- a/src/app/pages/family/family.page.ts +++ b/src/app/pages/family/family.page.ts @@ -15,6 +15,7 @@ export class FamilyPage implements OnInit { tabs = 'members'; suggestion_total:number=0; total_family:number = 0; + family_active:number = 0; constructor( private navctr: NavController, @@ -28,6 +29,7 @@ export class FamilyPage implements OnInit { ngOnInit() { this.getFamilyData(); this.getFamilyPeningData(); + this.getFamilyActiveJobsData(); } onBack() { @@ -88,4 +90,27 @@ export class FamilyPage implements OnInit { ); } + + jobManagerActiveTotalData:any; + jobManagerActiveData: []; + getFamilyActiveJobsData(){ + 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.getJobsManagerData(this.usrData).subscribe( + jobManagerActiveTotalData => { + this.jobManagerActiveTotalData = jobManagerActiveTotalData; + console.log("jobManagerActiveTotalData RETURN->", this.jobManagerActiveTotalData); + this.jobManagerActiveData = this.jobManagerActiveTotalData.result_list; + // debugger; + console.log("jobManagerActiveTotalData RETURN DATA->", this.jobManagerActiveData); + this.family_active = this.jobManagerActiveData.length; + } + ); + + } + } diff --git a/src/app/pages/jobmanager/jobmanager.page.html b/src/app/pages/jobmanager/jobmanager.page.html index 0af8a58..5d7a262 100644 --- a/src/app/pages/jobmanager/jobmanager.page.html +++ b/src/app/pages/jobmanager/jobmanager.page.html @@ -15,8 +15,9 @@
3D Design
- - 4.8 (4478 reviews) + + + My Jobs
@@ -25,15 +26,15 @@
- 9876 Students + 20 Jobs
- 2.5 hours + 0 Waiting
- Certificate + 0 Interest
@@ -157,36 +158,7 @@ See all
-
- -
+
diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 1b52cb1..5a9e985 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -90,6 +90,11 @@ export class WrenchService { return this.getPostData("getjobsdata", usrData); } + getJobsManagerData(usrData) { + return this.getPostData("jobmanageractive", usrData); + } + + getMyActiveJobsData(usrData) { return this.getPostData("activetaskslist", usrData);