offer page
This commit is contained in:
@@ -25,7 +25,9 @@
|
||||
|
||||
<ion-card *ngFor="let item of myOffersData">
|
||||
<div class="top_banner">
|
||||
<img class="offer_banner" alt="{{item.title}}" src="https://www.wrenchboard.com/assets/images/apps/offerslist/{{item.banner}}" />
|
||||
<!-- <img class="offer_banner" alt="{{item.title}}" src="https://www.wrenchboard.com/assets/images/apps/offerslist/{{item.banner}}" />-->
|
||||
<img class="offer_banner" alt="{{item.title}}" src="{{session_image_server+'/'+curr_session+'/job/'+item.job_uid}}" />
|
||||
|
||||
</div>
|
||||
<ion-card-header>
|
||||
<ion-card-title class="offer_title">{{item.title}}</ion-card-title>
|
||||
|
||||
@@ -37,6 +37,8 @@ export class JoboffersPage implements OnInit {
|
||||
this.router.navigate(['enroll']);
|
||||
}
|
||||
|
||||
session_image_server:string='';
|
||||
curr_session:string='';
|
||||
//
|
||||
usrData: {
|
||||
action:number, member_id: number, uid: string,
|
||||
@@ -54,9 +56,11 @@ export class JoboffersPage implements OnInit {
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
limit:20, page:1,offset: 0}
|
||||
|
||||
this.curr_session = this.sessionDataProviderService.session;
|
||||
this.wrenchService.getMyOffers(this.usrData).subscribe(
|
||||
myOffersTotalData => {
|
||||
this.myOffersTotalData = myOffersTotalData;
|
||||
this.session_image_server = this.myOffersTotalData.session_image_server;
|
||||
console.log("myOffersTotalData RETURN->", this.myOffersTotalData);
|
||||
this.myOffersData = this.myOffersTotalData.result_list;
|
||||
console.log("myOffersData RETURN DATA->", this.myOffersData);
|
||||
|
||||
Reference in New Issue
Block a user