Update -
Transactions, Contact, Search, Home
This commit is contained in:
parent
bcd5d2330a
commit
d03fcc8dd1
|
@ -14,5 +14,26 @@
|
|||
|
||||
|
||||
<ion-content padding>
|
||||
<ion-card (click)="selectContact('tata')">
|
||||
<ion-card-content>
|
||||
Name : tata
|
||||
<br>
|
||||
Address : 75438973HJFBSDFZ989024
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
<ion-card (click)="selectContact('test')">
|
||||
<ion-card-content>
|
||||
Name : test
|
||||
<br>
|
||||
Address : 754389IHGOERG989324JIJ
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
<ion-card (click)="selectContact('toaster')">
|
||||
<ion-card-content>
|
||||
Name : toaster
|
||||
<br>
|
||||
Address : 780U8GEOKNOKSQDU974328
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
</ion-content>
|
||||
|
|
|
@ -22,4 +22,8 @@ export class ContactsPage {
|
|||
console.log('ionViewDidLoad ContactsPage');
|
||||
}
|
||||
|
||||
selectContact(contact) {
|
||||
console.log('toto - '+contact)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,10 @@ export class HomePage {
|
|||
this.navCtrl.push(BuyPage);
|
||||
break;
|
||||
}
|
||||
case 'contact':{
|
||||
this.navCtrl.push(ContactsPage);
|
||||
break;
|
||||
}
|
||||
case 'send':{
|
||||
this.navCtrl.push(SendPage);
|
||||
break;
|
||||
|
|
|
@ -14,5 +14,13 @@
|
|||
|
||||
|
||||
<ion-content padding>
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-label stacked>Recipient</ion-label>
|
||||
<ion-input [(ngModel)]="user" name="recipient" type="text"></ion-input>
|
||||
</ion-item>
|
||||
<br>
|
||||
<button ion-button (click)="searchUser(user)">Rechercher</button>
|
||||
</ion-list>
|
||||
|
||||
</ion-content>
|
||||
|
|
|
@ -22,4 +22,8 @@ export class SearchPage {
|
|||
console.log('ionViewDidLoad SearchPage');
|
||||
}
|
||||
|
||||
searchUser($user){
|
||||
console.log('prout')
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -14,8 +14,21 @@
|
|||
|
||||
|
||||
<ion-content padding>
|
||||
<ion-buttons>
|
||||
<button ion-button (click)="changePage('search')">Chercher un contact</button>
|
||||
<ion-list>
|
||||
<button ion-button (click)="changePage('contact')">Contacts</button>
|
||||
</ion-buttons>
|
||||
<button ion-button (click)="changePage('search')">Chercher un contact</button>
|
||||
|
||||
<ion-item>
|
||||
<ion-label stacked>Recipient</ion-label>
|
||||
<ion-input [(ngModel)]="recipient" name="recipient" type="text"></ion-input>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
<ion-label stacked>Montant</ion-label>
|
||||
<ion-input [(ngModel)]="amount" name="amount" type="number" value="10"></ion-input>
|
||||
</ion-item>
|
||||
|
||||
<button ion-button (click)="t">Envoyer</button>
|
||||
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
<ion-card-content>
|
||||
From : {{transactionTest.from}}
|
||||
<br>
|
||||
To : {{transactionTest.to}}
|
||||
<br>
|
||||
Amount : {{transactionTest.amount}}
|
||||
<br>
|
||||
Date : {{transactionTest.date}}
|
||||
|
|
|
@ -29,6 +29,7 @@ export class TransactionsPage {
|
|||
}
|
||||
|
||||
init(){
|
||||
|
||||
this.transactionTest.from="toto";
|
||||
this.transactionTest.to="tata";
|
||||
this.transactionTest.amount=200;
|
||||
|
|
Loading…
Reference in a new issue