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;
|
||||
|
||||
Reference in New Issue
Block a user