family image
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<div class="ion-padding">
|
<div class="ion-padding">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<ion-label class="bold_text">Family Account</ion-label>
|
<ion-label class="bold_text">Family Account</ion-label>
|
||||||
<!-- <ion-icon slot="end" name="bookmark-outline" color="primary"></ion-icon>-->
|
<ion-icon slot="end" name="settings-outline" color="primary"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="row">-->
|
<!-- <div class="row">-->
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
<div class="video" *ngFor="let item of familyData" (click)="familyMemebr(item)">
|
<div class="video" *ngFor="let item of familyData" (click)="familyMemebr(item)">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="bg_image men_image" [style.backgroundImage]="'url('+item.profile_picture+')'"></div>
|
<div class="bg_image men_image" [style.backgroundImage]="'url('+session_image_server+'/'+curr_session+'/family/'+item.family_uid+')'"></div>
|
||||||
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<ion-label class="bold_text">{{item.firstname}} {{item.lastname}} ({{item.age}})</ion-label>
|
<ion-label class="bold_text">{{item.firstname}} {{item.lastname}} ({{item.age}})</ion-label>
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ export class FamilyPage implements OnInit {
|
|||||||
suggestion_total:number=0;
|
suggestion_total:number=0;
|
||||||
total_family:number = 0;
|
total_family:number = 0;
|
||||||
family_active:number = 0;
|
family_active:number = 0;
|
||||||
|
session_image_server:string='';
|
||||||
|
curr_session:string='';
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private navctr: NavController,
|
private navctr: NavController,
|
||||||
@@ -63,7 +66,8 @@ export class FamilyPage implements OnInit {
|
|||||||
member_id: this.sessionDataProviderService.member_id,
|
member_id: this.sessionDataProviderService.member_id,
|
||||||
uid: this.sessionDataProviderService.member_uid,
|
uid: this.sessionDataProviderService.member_uid,
|
||||||
sessionid: this.sessionDataProviderService.session ,
|
sessionid: this.sessionDataProviderService.session ,
|
||||||
limit:20, page:1,offset: 0}
|
limit:20, page:1,offset: 0};
|
||||||
|
this.curr_session = this.sessionDataProviderService.session;
|
||||||
|
|
||||||
this.wrenchService.getFamilyList(this.usrData).subscribe(
|
this.wrenchService.getFamilyList(this.usrData).subscribe(
|
||||||
familyTotalData => {
|
familyTotalData => {
|
||||||
@@ -71,6 +75,7 @@ export class FamilyPage implements OnInit {
|
|||||||
console.log("FAMILY RETURN->", this.familyTotalData);
|
console.log("FAMILY RETURN->", this.familyTotalData);
|
||||||
this.familyData = this.familyTotalData.result_list;
|
this.familyData = this.familyTotalData.result_list;
|
||||||
// debugger;
|
// debugger;
|
||||||
|
this.session_image_server = this.familyTotalData.session_image_server;
|
||||||
console.log("FAMILY RETURN DATA->", this.familyData);
|
console.log("FAMILY RETURN DATA->", this.familyData);
|
||||||
this.total_family = this.familyData.length;
|
this.total_family = this.familyData.length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user