From 25d705c6279b4a6db335fd989014e14321bccdc5 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 1 Oct 2023 16:34:19 -0400 Subject: [PATCH] offer response --- .../familypending/familypending.component.ts | 35 +++++++++++++++++-- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/src/app/components/familypending/familypending.component.ts b/src/app/components/familypending/familypending.component.ts index d609fd0..07ac1f1 100644 --- a/src/app/components/familypending/familypending.component.ts +++ b/src/app/components/familypending/familypending.component.ts @@ -34,20 +34,49 @@ export class FamilypendingComponent implements OnInit { text: "Cancel", role: "cancel", handler: () => { - // this.getMyOffersData(); + this.getMyOffersData(); }, }, { text: "Start Now", handler: () => { - // this.sessionDataProviderService.DestroySessionOnLogout(); - this.getMyOffersData(); + this.sendOfferResponse(item, 100); // accepted + // this.getMyOffersData(); }, }, ], }); await alert.present(); } + responseData: { + action:number, + member_id: number, + uid: string, + sessionid: string, + offer_result:number, + contract:string, + offer_code:string + }; + offerRespData:any; + sendOfferResponse(item, respType){ + + this.responseData = { + action:15010, + member_id: this.sessionDataProviderService.member_id, + uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session , + offer_result:respType, + contract:item.contract, + offer_code: item.contract + } + this.wrenchService.offferResponse(this.responseData).subscribe( + offerRespData => { + this.offerRespData = offerRespData; + console.log("offerRespData RETURN->", this.offerRespData); + this.getMyOffersData(); + } + ); + } usrData: { action:number, member_id: number, uid: string,