More wallet page
This commit is contained in:
@@ -38,13 +38,12 @@
|
||||
<ion-item>
|
||||
<ion-label>
|
||||
|
||||
<div class="bg_white" *ngFor="let item of [1,2,3,4,5,6]">
|
||||
<div class="bg_white" *ngFor="let item of paymentData;">
|
||||
<div class="list">
|
||||
<div class="detail">
|
||||
|
||||
<ion-label class="name">3D Design Illustration</ion-label>
|
||||
|
||||
<ion-label class="paid">AASSWWW</ion-label>
|
||||
<!-- <div dangerouslySetInnerHTML={{__html: item.recipient}}></div>-->
|
||||
<ion-label class="name">{{item.recipient}}</ion-label>
|
||||
<ion-label class="paid">{{item.confirmation}}- {{item.amount*0.01}}</ion-label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,7 +66,7 @@ ion-content {
|
||||
.paid {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 50px;
|
||||
width: 150px;
|
||||
padding: 2px 10px;
|
||||
border-radius: 5px;
|
||||
margin-top: 5px;
|
||||
|
||||
@@ -18,6 +18,7 @@ export class TransactionPage implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.getWalletData();
|
||||
this.getPaymentHxData();
|
||||
}
|
||||
|
||||
onReceipt() {
|
||||
@@ -26,10 +27,10 @@ export class TransactionPage implements OnInit {
|
||||
walletResult:any;
|
||||
walletData: [];
|
||||
usrData: {
|
||||
action:11200, member_id: number, uid: string, sessionid: string
|
||||
action:11200, member_id: number, uid: string, sessionid: string, limit:20, page:1
|
||||
};
|
||||
getWalletData(){
|
||||
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session }
|
||||
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session, limit:20, page:1 }
|
||||
this.wrenchService.getUserWallets(this.usrData).subscribe(
|
||||
walletResult => {
|
||||
this.walletResult = walletResult;
|
||||
@@ -42,4 +43,28 @@ export class TransactionPage implements OnInit {
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
paymentHxData:any;
|
||||
paymentData: [];
|
||||
getPaymentHxData(){
|
||||
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, sessionid: this.sessionDataProviderService.session , limit:20, page:1}
|
||||
this.wrenchService.getPaymentHx(this.usrData).subscribe(
|
||||
paymentHxData => {
|
||||
this.paymentHxData = paymentHxData;
|
||||
console.log("PAH HX RETURN->", this.paymentHxData);
|
||||
this.paymentData = this.paymentHxData.result_list;
|
||||
// debugger;
|
||||
console.log("BANNERS RETURN DATA->", this.paymentData);
|
||||
// this.blogDataService.setBlogData(this.blogResult.blog_data);
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
'limit' => int 20
|
||||
'page' => int 1
|
||||
'action' => int 15046
|
||||
*/
|
||||
|
||||
@@ -42,6 +42,9 @@ export class WrenchService {
|
||||
return this.getPostData("getwallets", usrData);
|
||||
}
|
||||
|
||||
getPaymentHx(usrData) {
|
||||
return this.getPostData("paymenthx", usrData);
|
||||
}
|
||||
/*
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user