pening inrerest
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {Component, Input, OnInit} from '@angular/core';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
import {Router} from "@angular/router";
|
||||
|
||||
@Component({
|
||||
selector: 'app-waitinterest',
|
||||
@@ -12,22 +13,29 @@ export class WaitinterestComponent implements OnInit {
|
||||
session_image_server:string='';
|
||||
curr_session:string='';
|
||||
|
||||
constructor( public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService) { }
|
||||
constructor(
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private router: Router,
|
||||
private wrenchService: WrenchService
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.getInterestList();
|
||||
}
|
||||
usrData: {
|
||||
action: number, member_id: number, uid: string, sessionid: string, limit: 20, page: 1, offset: 0
|
||||
};
|
||||
ngOnInit() {
|
||||
this.getInterestList();
|
||||
}
|
||||
usrData: {
|
||||
action: number, member_id: number, uid: string, sessionid: string, limit: 20, page: 1, offset: 0
|
||||
};
|
||||
|
||||
interestTotalData: any;
|
||||
interestJobsData: [];
|
||||
total_jobs: number = 0;
|
||||
jobInterest(item) {
|
||||
this.router.navigate(['marketdetail'],{state: item});
|
||||
}
|
||||
|
||||
interestTotalData: any;
|
||||
interestJobsData: [];
|
||||
total_jobs: number = 0;
|
||||
|
||||
getInterestList() {
|
||||
this.curr_session = this.sessionDataProviderService.session;
|
||||
this.curr_session = this.sessionDataProviderService.session;
|
||||
this.usrData = {
|
||||
action: 13005,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
@@ -35,7 +43,6 @@ export class WaitinterestComponent implements OnInit {
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
limit: 20, page: 1, offset: 0
|
||||
}
|
||||
|
||||
this.wrenchService.getWaitingInterest(this.usrData).subscribe(
|
||||
interestTotalData => {
|
||||
this.interestTotalData = interestTotalData;
|
||||
|
||||
@@ -21,21 +21,21 @@
|
||||
<app-waitinterest></app-waitinterest>
|
||||
<div class="lesson">
|
||||
|
||||
<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="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">{{item.title}}</ion-label>
|
||||
<ion-label class="grey_text">{{item.description}}</ion-label>
|
||||
<ion-label class="price_line">{{item.offer_code}} {{item.price*0.01}} {{item.currency}} </ion-label>
|
||||
<ion-label class="due_date">Received: {{item.sent}}</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="text">-->
|
||||
<!-- <ion-label class="bold_text">{{item.title}}</ion-label>-->
|
||||
<!-- <ion-label class="grey_text">{{item.description}}</ion-label>-->
|
||||
<!-- <ion-label class="price_line">{{item.offer_code}} {{item.price*0.01}} {{item.currency}} </ion-label>-->
|
||||
<!-- <ion-label class="due_date">Received: {{item.sent}}</ion-label>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="right">-->
|
||||
<!-- <ion-icon name="chevron-forward-outline" color="medium"></ion-icon>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
|
||||
<!-- <div class="flex">-->
|
||||
<!-- <ion-label class="bold">Most Popular Courses</ion-label>-->
|
||||
|
||||
@@ -29,12 +29,10 @@ export class PendinterestPage implements OnInit {
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
onMentor() {
|
||||
this.router.navigate(['mentor']);
|
||||
}
|
||||
|
||||
jobInterest(item) {
|
||||
// this.router.navigate(['enroll']);
|
||||
debugger;
|
||||
this.router.navigate(['marketdetail'],{state: item});
|
||||
}
|
||||
|
||||
// (usrData){
|
||||
|
||||
Reference in New Issue
Block a user