pending offer
This commit is contained in:
@@ -286,6 +286,11 @@ const routes: Routes = [
|
||||
path: 'familysuggested',
|
||||
loadChildren: () => import('./pages-family/familysuggested/familysuggested.module').then(m => m.FamilysuggestedPageModule)
|
||||
},
|
||||
{
|
||||
path: 'managependingoffers',
|
||||
loadChildren: () => import('./pages/managependingoffers/managependingoffers.module').then(m => m.ManagependingoffersPageModule)
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<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="price_line">Reward : {{item.price*0.01}} {{item.currency}} </ion-label>
|
||||
<ion-label class="due_date">Expire: {{item.expire |date}}</ion-label>
|
||||
<ion-label class="grey_text">Sent to : <span class="job_to">{{item.job_to}}</span></ion-label>
|
||||
</div>
|
||||
|
||||
@@ -11,6 +11,8 @@ import {WrenchService} from "../../services/wrench.service";
|
||||
})
|
||||
export class MyjobOffersComponent implements OnInit {
|
||||
@Input('jobData') jobData:any;
|
||||
@Input('callOpenOffer') callOpenOffer:any;
|
||||
|
||||
isModalOpen:boolean = false;
|
||||
isModalOpenBackdrop:boolean = false;
|
||||
total_item:number = 0;
|
||||
@@ -48,14 +50,17 @@ export class MyjobOffersComponent implements OnInit {
|
||||
|
||||
openDetailModal(item){
|
||||
|
||||
this.callOpenOffer(item);
|
||||
/*
|
||||
this.currentJobSelected = item;
|
||||
|
||||
this.modal_item_title= item.title;
|
||||
this.modal_item_description= item.description;
|
||||
this.modal_item_job_detail=item.job_detail;
|
||||
|
||||
this.isModalOpen = true;
|
||||
this.isModalOpenBackdrop= true;
|
||||
*/
|
||||
//managependingoffers
|
||||
|
||||
}
|
||||
setCloseModal(){
|
||||
this.modal_item_title= '';
|
||||
|
||||
@@ -71,11 +71,10 @@
|
||||
<div class="video" *ngFor="let item of jobManagerJobsData" (click)="jobOwnerJobDetails(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url('+session_image_server+'/'+curr_session+'/job/'+item.job_uid+')'"></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.price*0.01}} {{item.currency}} </ion-label>
|
||||
<ion-label class="price_line">Reward : {{item.price*0.01 | number : '1.2-2' }} {{item.currency}} </ion-label>
|
||||
<ion-label class="due_date">Timeline: {{item.timeline_days}} days</ion-label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,8 +82,6 @@
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="flex">
|
||||
<ion-label class="bold_text">Pending Offers</ion-label>
|
||||
</div>
|
||||
<app-myjob-offers></app-myjob-offers>
|
||||
<app-myjob-offers [callOpenOffer]="callOpenOffer"></app-myjob-offers>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
@@ -25,6 +25,9 @@ export class PendingoffersPage implements OnInit {
|
||||
// this.getPendingOffersData();
|
||||
}
|
||||
|
||||
callOpenOffer(item){
|
||||
this.router.navigate(['managependingoffers'],{state: item});
|
||||
}
|
||||
onBack() {
|
||||
const event = new Event("app-myjob-offers-clear-modals");
|
||||
// Dispatch the event.
|
||||
|
||||
Reference in New Issue
Block a user