family send
This commit is contained in:
@@ -143,6 +143,7 @@
|
||||
label="Outline textarea"
|
||||
labelPlacement="floating"
|
||||
fill="outline"
|
||||
[(ngModel)]='description'
|
||||
placeholder="Comment">
|
||||
</ion-textarea>
|
||||
|
||||
@@ -158,7 +159,7 @@
|
||||
</ion-col>
|
||||
<ion-col class="sendpart">
|
||||
<ion-button
|
||||
(click)="sendReward()"
|
||||
(click)="sendReward(item)"
|
||||
color="secondary"
|
||||
shape="round"
|
||||
size="small">Send</ion-button>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
@@ -11,6 +11,9 @@ import {WrenchService} from "../../services/wrench.service";
|
||||
})
|
||||
export class FamilymemberPage implements OnInit {
|
||||
|
||||
@ViewChild('amount') amount;
|
||||
@ViewChild('description') description;
|
||||
|
||||
familyMemberData: any;
|
||||
tabs = 'about';
|
||||
member_firstname:string='';
|
||||
@@ -169,7 +172,7 @@ familyTransfer(reqData){
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
family_uid: this.family_uid,
|
||||
wallet_uid: item.wallet_uid
|
||||
}
|
||||
};
|
||||
// debugger;
|
||||
|
||||
this.wrenchService.familyStartTransfer(this.reqStart).subscribe(
|
||||
@@ -195,12 +198,54 @@ familyTransfer(reqData){
|
||||
startSendData:any;
|
||||
origing_current_balance:number =0;
|
||||
send_cuurency:string='';
|
||||
sendReward(){
|
||||
|
||||
setTimeout(()=>{
|
||||
this.toolBarShow = "1";
|
||||
this.startSendData=null;
|
||||
}, 3000);
|
||||
reqSend: {
|
||||
action:number,
|
||||
member_id: number,
|
||||
uid: string,
|
||||
sessionid: string,
|
||||
family_uid: string,
|
||||
origing_wallet_uid: string,
|
||||
wallet_uid: string,
|
||||
currency: string,
|
||||
amount: number,
|
||||
description:string,
|
||||
family_transfer_mode: number
|
||||
};
|
||||
|
||||
sendResultData:any;
|
||||
|
||||
sendReward(item){
|
||||
|
||||
this.reqSend = {
|
||||
action:22014,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session,
|
||||
family_uid: this.family_uid,
|
||||
origing_wallet_uid: this.startSendData.origing_wallet_uid,
|
||||
wallet_uid: item.wallet_uid,
|
||||
currency: this.startSendData.currency,
|
||||
amount: this.amount*100,
|
||||
description: this.description,
|
||||
family_transfer_mode: 100
|
||||
};
|
||||
|
||||
this.wrenchService.familyTransfer(this.reqSend).subscribe(
|
||||
sendResultData => {
|
||||
this.sendResultData = sendResultData;
|
||||
console.log("sendResultData RETURN->", this.sendResultData);
|
||||
|
||||
// if all is good
|
||||
setTimeout(()=>{
|
||||
this.toolBarShow = "1";
|
||||
this.startSendData=null;
|
||||
}, 3000);
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
startWalletPlan(){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user