family send
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
<ion-col>
|
||||
<ion-toolbar *ngIf="toolBarShow == '1' ">
|
||||
<ion-buttons slot="end">
|
||||
<ion-button size="small" fill="solid" color="secondary" shape="round" (click)="startAddfund()">
|
||||
<ion-button size="small" fill="solid" color="secondary" shape="round" (click)="startAddfund(item)">
|
||||
Add Fund
|
||||
<ion-icon name="chevron-forward-circle-outline"></ion-icon>
|
||||
</ion-button>
|
||||
@@ -108,21 +108,21 @@
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
|
||||
<div *ngIf="toolBarShow == '2' ">
|
||||
<div *ngIf="toolBarShow == item.wallet_uid ">
|
||||
<ion-grid class="send-grid">
|
||||
<ion-row>
|
||||
<ion-col class="intr">Amount({{item.description}})</ion-col>
|
||||
<ion-col class="intr">Amount ({{send_cuurency}})</ion-col>
|
||||
<ion-col>
|
||||
<ion-input type="number" label="Amount(ggg)" placeholder="Enter Amount" [(ngModel)]='amount'></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">From</ion-col>
|
||||
<ion-col class="intr">From ({{send_cuurency}})</ion-col>
|
||||
<ion-col>
|
||||
<ion-input
|
||||
type="text"
|
||||
[readonly]="true"
|
||||
value="12,000 Naira">
|
||||
value="{{origing_current_balance*0.01| number : '1.2-2' }}">
|
||||
</ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
@@ -117,9 +117,83 @@ export class FamilymemberPage implements OnInit {
|
||||
backToToolBar(){
|
||||
this.toolBarShow = "1";
|
||||
}
|
||||
startAddfund(){
|
||||
this.toolBarShow = "2";
|
||||
|
||||
reqStart: {
|
||||
action:number,
|
||||
member_id: number,
|
||||
uid: string,
|
||||
sessionid: string,
|
||||
family_uid: string,
|
||||
wallet_uid: string
|
||||
};
|
||||
|
||||
startAddfund(item:any){
|
||||
// need to start ths process
|
||||
/*
|
||||
this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,'limit': 30,
|
||||
array (size=6)
|
||||
'member_id' => int 1
|
||||
'sessionid' => string 'C954B8DF32A5DDF37064DBA89A9C972604393E98A9806B9D5593055BB348D627' (length=64)
|
||||
'uid' => string '3119b744-42ad-4834-bb83-b737588754ca' (length=36)
|
||||
'family_uid' => string '1f385837-b5e6-420e-a17a-488c4b8ef015' (length=36)
|
||||
'wallet_uid' => string 'aa6e6488-2e71-4f83-b265-27c3c4339f73' (length=36)
|
||||
'action' => int 22013
|
||||
/var/www/html/public/wrenchboard/wrenchboard_class.php:215:
|
||||
array (size=10)
|
||||
'currency' => string 'NAIRA' (length=5)
|
||||
'current_balance' => string '33617' (length=5)
|
||||
'exchange_rate' => string '1' (length=1)
|
||||
'origing_currency' => string 'NAIRA' (length=5)
|
||||
'origing_current_balance' => string '91799493' (length=8)
|
||||
'origing_transfer_limit' => string '500000' (length=6)
|
||||
'origing_wallet_uid' => string 'cc0f8743-3f18-4214-ba4b-781e5dda9cb8' (length=36)
|
||||
'recipient_wallet_uid' => string 'aa6e6488-2e71-4f83-b265-27c3c4339f73' (length=36)
|
||||
'status' => string 'OK' (length=2)
|
||||
'internal_return' => int 0
|
||||
TARGET ENDPOINT[POST]http://10.204.5.100:9083/en/wrench/api/v1/familytransferstart
|
||||
|
||||
familyStartTransfer(reqData){
|
||||
return this.getPostData("familytransferstart", reqData);
|
||||
}
|
||||
|
||||
familyTransfer(reqData){
|
||||
return this.getPostData("familytransfer", reqData);
|
||||
}
|
||||
*/
|
||||
this.reqStart = {
|
||||
action:22013,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
family_uid: this.family_uid,
|
||||
wallet_uid: item.wallet_uid
|
||||
}
|
||||
// debugger;
|
||||
|
||||
this.wrenchService.familyStartTransfer(this.reqStart).subscribe(
|
||||
startSendData => {
|
||||
this.startSendData = startSendData;
|
||||
console.log("startSendData RETURN->", this.startSendData);
|
||||
|
||||
this.origing_current_balance = this.startSendData.origing_current_balance;
|
||||
this.send_cuurency = this.startSendData.currency;
|
||||
this.toolBarShow = item.wallet_uid;
|
||||
// if ( this.accountAddResult.internal_return != undefined && this.accountAddResult.internal_return > 0 ){
|
||||
// this.presentToast("Recipient Accound Added",'middle');
|
||||
// setTimeout(() => {
|
||||
// this.onBack();
|
||||
// }, 3000);
|
||||
// }
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
startSendData:any;
|
||||
origing_current_balance:number =0;
|
||||
send_cuurency:string='';
|
||||
sendReward(){
|
||||
|
||||
setTimeout(()=>{
|
||||
|
||||
@@ -232,6 +232,14 @@ export class WrenchService {
|
||||
return this.getPostData("sendmoney", sendmoneyData);
|
||||
}
|
||||
|
||||
familyStartTransfer(reqData){
|
||||
return this.getPostData("familytransferstart", reqData);
|
||||
}
|
||||
|
||||
familyTransfer(reqData){
|
||||
return this.getPostData("familytransfer", reqData);
|
||||
}
|
||||
|
||||
familySuggestList(usrData){
|
||||
return this.getPostData("familysuggestlist", usrData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user