From 955f947b41d75db4126895aae2f0f7e6d4ac4977 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 25 Nov 2023 11:47:56 -0500 Subject: [PATCH] pendind item --- .../myjob-offers/myjob-offers.component.html | 37 ++++++++++++++++++- .../myjob-offers/myjob-offers.component.scss | 5 +++ .../myjob-offers/myjob-offers.component.ts | 28 +++++++++++++- .../pages/pendingoffers/pendingoffers.page.ts | 3 ++ src/global.scss | 11 ++++++ 5 files changed, 81 insertions(+), 3 deletions(-) diff --git a/src/app/components/myjob-offers/myjob-offers.component.html b/src/app/components/myjob-offers/myjob-offers.component.html index 1e2ec30..e4ce8b0 100644 --- a/src/app/components/myjob-offers/myjob-offers.component.html +++ b/src/app/components/myjob-offers/myjob-offers.component.html @@ -1,6 +1,6 @@
-
+
@@ -9,7 +9,7 @@ {{item.description}} {{item.offer_code}} {{item.price*0.01}} {{item.currency}} Expire: {{item.expire |date}} - Send to : {{item.job_to}} + Sent to : {{item.job_to}}
@@ -17,6 +17,39 @@
+ +
+ + + + + + + + Pending Details + + Close + + + + + + + {{modal_item_title}} + + + + {{modal_item_description}} + +
{{modal_item_job_detail}}
+
+
+
+
+
+
+ +
diff --git a/src/app/components/myjob-offers/myjob-offers.component.scss b/src/app/components/myjob-offers/myjob-offers.component.scss index de10fa4..83548ea 100644 --- a/src/app/components/myjob-offers/myjob-offers.component.scss +++ b/src/app/components/myjob-offers/myjob-offers.component.scss @@ -56,5 +56,10 @@ font-size: 14px; color: grey; } + .job_to{ + color: #8b198e; + font-weight: bolder; + margin-right: 10px; + } } } \ No newline at end of file diff --git a/src/app/components/myjob-offers/myjob-offers.component.ts b/src/app/components/myjob-offers/myjob-offers.component.ts index 2ef86df..1ce02f1 100644 --- a/src/app/components/myjob-offers/myjob-offers.component.ts +++ b/src/app/components/myjob-offers/myjob-offers.component.ts @@ -11,7 +11,8 @@ import {WrenchService} from "../../services/wrench.service"; }) export class MyjobOffersComponent implements OnInit { @Input('jobData') jobData:any; - + isModalOpen:boolean = false; + isModalOpenBackdrop:boolean = false; total_item:number = 0; tabs = 'about'; @@ -27,12 +28,37 @@ export class MyjobOffersComponent implements OnInit { addEventListener('app-myjob-offers-refresh', () => { this.getPendingOffersData(); }); + + addEventListener('app-myjob-offers-clear-modals', () => { + this.setCloseModal(); + }); + this.getPendingOffersData(); } ngOnInit() { // console.log('AMEYE===>', this.jobData); } + modal_item_title:string=''; + modal_item_description:string=''; + modal_item_job_detail:string=''; + + openDetailModal(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; + } + setCloseModal(){ + this.modal_item_title= ''; + this.modal_item_description= ''; + this.modal_item_job_detail=''; + this.isModalOpen = false; + setTimeout(()=>{ this.isModalOpenBackdrop= false;},1000); +} usrData: { action:number, member_id: number, uid: string, sessionid: string, limit:20, page:1,offset: 0 }; diff --git a/src/app/pages/pendingoffers/pendingoffers.page.ts b/src/app/pages/pendingoffers/pendingoffers.page.ts index 943678d..dfeeb46 100644 --- a/src/app/pages/pendingoffers/pendingoffers.page.ts +++ b/src/app/pages/pendingoffers/pendingoffers.page.ts @@ -26,6 +26,9 @@ export class PendingoffersPage implements OnInit { } onBack() { + const event = new Event("app-myjob-offers-clear-modals"); + // Dispatch the event. + dispatchEvent(event); this.navctr.back(); } diff --git a/src/global.scss b/src/global.scss index d732bad..2d238ee 100644 --- a/src/global.scss +++ b/src/global.scss @@ -288,3 +288,14 @@ ion-content{ font-weight: bolder; } } +.common_modal{ + background-color: aliceblue; + max-width: 350px ; + max-height: 550px; + margin: auto; +} +ion-backdrop { + background: var(--ion-color-dark); + opacity: 0.3; + height: auto; +} \ No newline at end of file