Mexi преди 6 години
родител
ревизия
83b32bb51d
променени са 1 файла, в които са добавени 10 реда и са изтрити 5 реда
  1. 10
    5
      src/pages/payment/payment.ts

+ 10
- 5
src/pages/payment/payment.ts Целия файл

10
   selector: 'page-payment',
10
   selector: 'page-payment',
11
   templateUrl: 'payment.html',
11
   templateUrl: 'payment.html',
12
 })
12
 })
13
+
14
+
13
 export class PaymentPage {
15
 export class PaymentPage {
14
-  fromId: string;
15
-  toId: string;
16
-  amount: number;
17
-  trans: TransactionComponent =  new TransactionComponent(this.fromId, this.toId, this.amount);
18
-  ;
16
+  fromId: any;
17
+  toId: any;
18
+  amount: any;
19
+  //trans: TransactionComponent =  new TransactionComponent(this.fromId, this.toId, this.amount);
20
+  trans = {fromId: '', toId: '', amount: ''};
19
 
21
 
20
   constructor(public navCtrl: NavController, public navParams: NavParams, private http: HttpClient, public transfer: TransactionService) {
22
   constructor(public navCtrl: NavController, public navParams: NavParams, private http: HttpClient, public transfer: TransactionService) {
21
  this.navCtrl = navCtrl;
23
  this.navCtrl = navCtrl;
24
+//  this.fromId = document.getElementByIdaa;
25
+//  this.toId ='';
26
+//  this.amount = 0;
22
   }
27
   }
23
 
28
 
24
   ionViewDidLoad() {
29
   ionViewDidLoad() {