job interest
This commit is contained in:
@@ -87,7 +87,9 @@
|
||||
</ion-card-header>
|
||||
|
||||
<ion-card-content>
|
||||
<ion-button color="secondary" expand="block">Send Interest Request to task</ion-button>
|
||||
<ion-button color="secondary" expand="block" (click)="sendJobInterestMessage()">Send Interest Request to task</ion-button>
|
||||
<ion-label class="description">{{interest_status}}
|
||||
</ion-label>
|
||||
</ion-card-content>
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NavController } from '@ionic/angular';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import { WrenchService } from 'src/app/services/wrench.service';
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-marketdetail',
|
||||
@@ -14,7 +17,9 @@ export class MarketdetailPage implements OnInit {
|
||||
jobData: any;
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
private router: Router
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService
|
||||
) {
|
||||
|
||||
this.jobData = this.router.getCurrentNavigation().extras.state;
|
||||
@@ -23,6 +28,7 @@ export class MarketdetailPage implements OnInit {
|
||||
//console.log("XXXXX 3", this.router.getCurrentNavigation().extras.state.ID);
|
||||
}
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
@@ -38,4 +44,49 @@ export class MarketdetailPage implements OnInit {
|
||||
this.router.navigate(['enroll']);
|
||||
}
|
||||
|
||||
/*
|
||||
action
|
||||
:
|
||||
13033
|
||||
member_id
|
||||
:
|
||||
"3"
|
||||
msg_type
|
||||
:
|
||||
"JOB"
|
||||
offer_code
|
||||
:
|
||||
"R742R1D88B"
|
||||
sessionid
|
||||
:
|
||||
"6F9FD1ABD671030133F70D0868D58028321AA299A519B5219B579D70A8DB019E"
|
||||
uid
|
||||
:
|
||||
"43c766d9-403d-4125-9983-63c21960b187"
|
||||
*/
|
||||
|
||||
reqData: {
|
||||
action:13033, member_id: number, uid: string, sessionid: string, msg_type:string, offer_code:string
|
||||
};
|
||||
interest_status:string = "";
|
||||
InterestReqResult:any;
|
||||
sendJobInterestMessage(){
|
||||
this.reqData = {action:13033,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
msg_type: "JOB",
|
||||
|
||||
offer_code:this.jobData.offer_code}
|
||||
|
||||
this.wrenchService.sendMarketInterest(this.reqData).subscribe(
|
||||
reqResult => {
|
||||
this.InterestReqResult = reqResult;
|
||||
console.log("jobManagerJobsTotalData RETURN->", this.InterestReqResult);
|
||||
this.interest_status = this.InterestReqResult?.status;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -98,9 +98,9 @@ export class WrenchService {
|
||||
getJobsManagerData(usrData) {
|
||||
return this.getPostData("jobmanageractive", usrData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
sendMarketInterest(reqData){
|
||||
return this.getPostData("marketinterest", reqData);
|
||||
}
|
||||
getMyActiveJobsData(usrData) {
|
||||
return this.getPostData("activetaskslist", usrData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user