add credit
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button expand="block" shape="round" [disabled]="isDisabled" color="secondary" (click)="contineRedeem()">Continue</ion-button>
|
||||
<ion-button expand="block" shape="round" [disabled]="isDisabled" color="secondary" (click)="contineAddCredit(processor)">Continue</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
@@ -72,19 +72,19 @@
|
||||
<div *ngIf="processor == 5000">
|
||||
<ion-grid class="send-grid">
|
||||
<ion-row>
|
||||
<ion-col class="intr">Amount({{currency_code}})</ion-col>
|
||||
<ion-col class="intr">Amount({{currency_code}}) :</ion-col>
|
||||
<ion-col>
|
||||
<ion-input (ionChange)="refreshFee()" type="number" label="Amount(ggg)" placeholder="Enter Amount" [(ngModel)]='amount'></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Fee</ion-col>
|
||||
<ion-col class="intr">Fee :</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Fee" type="number" placeholder="0" [(ngModel)]='fee_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col class="intr">Total</ion-col>
|
||||
<ion-col class="intr">Total :</ion-col>
|
||||
<ion-col>
|
||||
<ion-input label="Total" type="number" placeholder="0" [(ngModel)]='total_display' [readonly]="true"></ion-input>
|
||||
</ion-col>
|
||||
@@ -94,12 +94,9 @@
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-select (ionChange)="checkSelectVal()" placeholder="Select Payment Card" [(ngModel)]='recipient' size="block">
|
||||
<!-- <ion-select-option value="" >Select Recipient</ion-select-option>-->
|
||||
<ion-select (ionChange)="refreshFee()" placeholder="Select Payment Card" [(ngModel)]='payment_card' size="block">
|
||||
<ion-select-option value="{{item.card_uid}}" *ngFor="let item of usersCardsData">{{item.description}} **** **** **** {{item.digits}}</ion-select-option>
|
||||
<!-- <ion-select-option value="ADD_NEW_RECIP" >Add Recipient</ion-select-option>-->
|
||||
</ion-select>
|
||||
<!-- <ion-label>{{recipient_name}}</ion-label>-->
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
@@ -110,7 +107,7 @@
|
||||
|
||||
<ion-row>
|
||||
<ion-col>
|
||||
<ion-button expand="block" shape="round" color="secondary" (click)="contineRedeem()">Continue</ion-button>
|
||||
<ion-button expand="block" shape="round" [disabled]="isDisabled" color="secondary" (click)="contineAddCredit(processor)">Continue</ion-button>
|
||||
</ion-col>
|
||||
</ion-row>
|
||||
|
||||
|
||||
@@ -80,6 +80,13 @@ export class AddcreditPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
contineAddCredit(processor){
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
amount:number =0;
|
||||
fee:number = 0;
|
||||
@@ -88,6 +95,7 @@ export class AddcreditPage implements OnInit {
|
||||
total_display: string;
|
||||
recipient:string ='';
|
||||
recipient_name:string ='';
|
||||
payment_card:string = '';
|
||||
|
||||
feeReturn: any;
|
||||
refreshFee(){
|
||||
@@ -113,7 +121,10 @@ export class AddcreditPage implements OnInit {
|
||||
this.total = this.fee+this.amount; // this.feeReturn.total_amount*0.01;
|
||||
var numt = new Number(this.total);
|
||||
this.total_display= numt.toFixed(2);
|
||||
if (this.total > 100){
|
||||
if (this.total > 100 && this.processor==3030 ){
|
||||
this.isDisabled=false;
|
||||
}
|
||||
if (this.total > 5 && this.processor==5000 && this.payment_card !="" ){
|
||||
this.isDisabled=false;
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user