Interest data
This commit is contained in:
@@ -37,69 +37,34 @@
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="lesson">
|
||||
<div class="flex">
|
||||
<ion-label class="bold">Most Popular Courses</ion-label>
|
||||
<ion-label class="color">See all</ion-label>
|
||||
</div>
|
||||
|
||||
<div class="sec">
|
||||
<ion-label class="grey">Section 1 - Introduction</ion-label>
|
||||
<ion-label class="color">15 min</ion-label>
|
||||
</div>
|
||||
|
||||
<div class="video" *ngFor="let item of [1,2]">
|
||||
<div class="video" *ngFor="let item of interestJobsData" (click)="jobInterest(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/line.png)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text">Why Using Figma ?</ion-label>
|
||||
<ion-label class="grey_text">10 mins</ion-label>
|
||||
<ion-label class="bold_text">{{item.title}}</ion-label>
|
||||
<ion-label class="grey_text">{{item.description}}</ion-label>
|
||||
<ion-label class="price_line">{{item.contract}} {{item.price*0.01}} {{item.currency}} </ion-label>
|
||||
<ion-label class="due_date">Due Date: {{item.delivery_date}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="lock-closed-outline"></ion-icon>
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sec">
|
||||
<ion-label class="grey">Section 2 - Figma Basic</ion-label>
|
||||
<ion-label class="color">60 min</ion-label>
|
||||
</div>
|
||||
<!-- <div class="flex">-->
|
||||
<!-- <ion-label class="bold">Most Popular Courses</ion-label>-->
|
||||
<!-- <ion-label class="color">See all</ion-label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="sec">-->
|
||||
<!-- <ion-label class="grey">Section 1 - Introduction</ion-label>-->
|
||||
<!-- <ion-label class="color">15 min</ion-label>-->
|
||||
<!-- </div>-->
|
||||
|
||||
|
||||
<div class="video" *ngFor="let item of [1,2,3,4,5,6]">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/line.png)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text">Why Using Figma ?</ion-label>
|
||||
<ion-label class="grey_text">10 mins</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="lock-closed-outline"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sec">
|
||||
<ion-label class="grey">Section 3 - Let's Practice</ion-label>
|
||||
<ion-label class="color">75 min</ion-label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="video" *ngFor="let item of [1,2,3,4,5,6]">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/line.png)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text">Why Using Figma ?</ion-label>
|
||||
<ion-label class="grey_text">10 mins</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="lock-closed-outline"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NavController } from '@ionic/angular';
|
||||
import { WrenchService } from 'src/app/services/wrench.service';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-pendinterest',
|
||||
templateUrl: './pendinterest.page.html',
|
||||
@@ -12,10 +15,14 @@ export class PendinterestPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
private router: Router
|
||||
) { }
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.getInterestList();
|
||||
}
|
||||
|
||||
onBack() {
|
||||
@@ -26,7 +33,36 @@ export class PendinterestPage implements OnInit {
|
||||
this.router.navigate(['mentor']);
|
||||
}
|
||||
|
||||
onEnroll() {
|
||||
this.router.navigate(['enroll']);
|
||||
jobInterest(item) {
|
||||
// this.router.navigate(['enroll']);
|
||||
}
|
||||
}
|
||||
|
||||
// (usrData){
|
||||
usrData: {
|
||||
action: number, member_id: number, uid: string, sessionid: string, limit: 20, page: 1, offset: 0
|
||||
};
|
||||
|
||||
interestTotalData: any;
|
||||
interestJobsData: [];
|
||||
total_jobs: number = 0;
|
||||
|
||||
getInterestList() {
|
||||
this.usrData = {
|
||||
action: 13005,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
limit: 20, page: 1, offset: 0
|
||||
}
|
||||
|
||||
this.wrenchService.getWaitingInterest(this.usrData).subscribe(
|
||||
interestTotalData => {
|
||||
this.interestTotalData = interestTotalData;
|
||||
console.log("interestTotalData RETURN->", this.interestTotalData);
|
||||
this.interestJobsData = this.interestTotalData.result_list;
|
||||
this.total_jobs = this.interestJobsData.length;
|
||||
console.log("jobManagerJobsData RETURN DATA->", this.interestJobsData);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -80,6 +80,9 @@ export class WrenchService {
|
||||
//blogdata
|
||||
}
|
||||
|
||||
getWaitingInterest(usrData){
|
||||
return this.getPostData('waitinginterest',usrData);
|
||||
}
|
||||
getHomeBanners(usrData){
|
||||
return this.getPostData('homebanners',usrData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user