family walllet
This commit is contained in:
@@ -77,7 +77,21 @@
|
||||
</div>
|
||||
|
||||
<div *ngIf="tabs =='lesson'" class="lesson">
|
||||
<div class="video" *ngFor="let item of familyMemberWalletData" (click)="jobActive(item)">
|
||||
<div class="left">
|
||||
<div class="bg_image men_image" [style.backgroundImage]="'url(assets/images/task-list.svg)'"></div>
|
||||
|
||||
<div class="text">
|
||||
<ion-label class="bold_text"> {{item.amount*0.01 | number : '1.2-2'}} {{item.description}}</ion-label>
|
||||
<!-- <ion-label class="grey_text">{{item.job_description}}</ion-label>-->
|
||||
<!-- <ion-label class="price_line">{{item.contract}} {{item.price*0.01}} {{item.currency}} </ion-label>-->
|
||||
<!-- <ion-label class="due_date">Due Date: {{item.delivery_date |date}}</ion-label>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<ion-icon name="chevron-forward-outline" color="medium"></ion-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="tabs =='profile'" class="review_tab">
|
||||
|
||||
@@ -39,6 +39,7 @@ export class FamilymemberPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.getThisFamilyAccount();
|
||||
this.getFamilyWalletsData();
|
||||
}
|
||||
|
||||
onBack() {
|
||||
@@ -87,4 +88,27 @@ export class FamilymemberPage implements OnInit {
|
||||
);
|
||||
}
|
||||
|
||||
familyMemberWalletTotalData:any;
|
||||
familyMemberWalletData: [];
|
||||
getFamilyWalletsData(){
|
||||
this.postData = {
|
||||
action:22025,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
family_uid: this.family_uid
|
||||
};
|
||||
|
||||
this.wrenchService.getFamilyWallets(this.postData).subscribe(
|
||||
familyMemberWalletTotalData => {
|
||||
this.familyMemberWalletTotalData = familyMemberWalletTotalData;
|
||||
console.log("familyMemberWalletTotalData RETURN->", this.familyMemberWalletTotalData);
|
||||
this.familyMemberWalletData = this.familyMemberWalletTotalData.result_list;
|
||||
// debugger;
|
||||
console.log("FAMILY familyMemberWalletData DATA->", this.familyMemberWalletData);
|
||||
//this.suggestion_total = this.familyMemberWalletData.length;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,6 +139,11 @@ export class WrenchService {
|
||||
return this.getPostData("getwallets", usrData);
|
||||
}
|
||||
|
||||
|
||||
getFamilyWallets(reqData) {
|
||||
return this.getPostData("familywallet", reqData);
|
||||
}
|
||||
|
||||
getPaymentHx(usrData) {
|
||||
return this.getPostData("paymenthx", usrData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user