family wait link

This commit is contained in:
CHIEFSOFT\ameye
2024-09-26 10:20:24 -04:00
parent 9b25718df3
commit a38723964e
7 changed files with 32 additions and 11 deletions
@@ -117,6 +117,10 @@ export class FamiliyDashComponent implements OnInit {
case "acc-family":
pageToNavigate = "family";
break;
case "acc-family/activities":
pageToNavigate = "family";
break;
}
if (pageToNavigate != "") {
this.router.navigate([pageToNavigate], { state: item });
@@ -49,8 +49,6 @@ export class JobownerDashComponent implements OnInit {
pageToNavigate ='pendinterest';
break;
case 'offer-interest':
pageToNavigate = 'jobinterest';
break
@@ -59,6 +57,10 @@ export class JobownerDashComponent implements OnInit {
pageToNavigate = 'family';
break;
case "acc-family/activities":
pageToNavigate = "family";
break;
}
if(pageToNavigate !=''){
this.router.navigate([pageToNavigate],{state: item});
@@ -19,7 +19,7 @@
</div>
</div>
</div>
<div style="background-color: white; border-radius: 10px; margin: 15px; min-height: 180px; max-height: 220px;">
<div *ngIf="currOpenOffer==item.offer_uid" style="background-color: white; border-radius: 10px; margin: 15px; min-height: 180px; max-height: 220px;">
<div class="detail_txt">
{{(item.job_description.length<95)? item.job_description :item.job_description.substring(0,95)+'...' }}
</div>
@@ -11,8 +11,8 @@ import { BannersDataService } from "../../store/banners-data.service";
styleUrls: ['./offers-received.component.scss'],
})
export class OffersReceivedComponent implements OnInit {
@ViewChild('offerData') offerData: [];
//@ViewChild('offerData') offerData: [];
offerData: [];
constructor(
private navctrl: NavController,
private router: Router,
@@ -27,7 +27,7 @@ export class OffersReceivedComponent implements OnInit {
setInterval(()=>{
this.offerData = this.bannersDataService.offerData;
this.session_image_server = this.sessionDataProviderService.session_image_server;
}, 5000);
}, 15000);
}
ngOnInit() {
@@ -66,8 +66,15 @@ export class OffersReceivedComponent implements OnInit {
// );
//
// }
currOpenOffer:string='';
openOfferDetail(item){
if ( this.currOpenOffer != '' && this.currOpenOffer == item.offer_uid){
this.currOpenOffer = ''
}else
{
this.currOpenOffer = item.offer_uid;
}
}
@@ -136,8 +136,6 @@ export class WorkersDashComponent implements OnInit {
pageToNavigate ='pendinterest';
break;
case 'offer-interest':
pageToNavigate = 'jobinterest';
break
@@ -146,6 +144,10 @@ export class WorkersDashComponent implements OnInit {
pageToNavigate = 'family';
break;
case "acc-family/activities":
pageToNavigate = "family";
break;
}
if(pageToNavigate !=''){
this.router.navigate([pageToNavigate],{state: item});
+2 -1
View File
@@ -78,7 +78,8 @@
</ion-grid>
</div>
<ng-template #elseFulltag>
<app-offers-received [offerData]="offerData"></app-offers-received>
<!-- <app-offers-received [offerData]="offerData"></app-offers-received>-->
<app-offers-received ></app-offers-received>
<div *ngIf="home_dash_type=='DEFAULT_HOME_DASH'; ">
<app-latest-market></app-latest-market>
<ion-card class="map-sec" *ngIf="enableTracking > 0">
+6 -1
View File
@@ -208,9 +208,10 @@ export class HomePage implements OnInit {
// );
}
onDetails(item) {
debugger;
// var pageToNavigate = 'detail';
var pageToNavigate = "";
//alert(item.link_path);
alert(item.link_path);
switch (item.link_path) {
case "referral":
pageToNavigate = "invite";
@@ -251,6 +252,10 @@ export class HomePage implements OnInit {
case "acc-family":
pageToNavigate = "family";
break;
case "acc-family/activities":
pageToNavigate = "family";
break;
}
if (pageToNavigate != "") {
this.router.navigate([pageToNavigate], { state: item });