Commit a38aca5d authored by mohan122's avatar mohan122

created_homepage

parent 60b5783a
......@@ -6,13 +6,32 @@
-->
<ion-header>
<ion-navbar>
<ion-title>home</ion-title>
</ion-navbar>
<ion-navbar>
<ion-title>home</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-item id="password" style="position: relative; padding:0px;">
<ion-label floating>Username</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item id="password" style="position: relative; padding:0px;">
<ion-label floating>Name of the Shop</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item id="password" style="position: relative; padding:0px;">
<ion-label floating>Phone no</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<ion-item id="password" style="position: relative; padding:0px;">
<ion-label floating>Shop Registration number</ion-label>
<ion-input type="text"></ion-input>
</ion-item>
<div padding>
<button block ion-button color="vamsi" style="padding:0px; width: 100%;" medium (click)="submit()">SUBMIT</button>
</div>
</ion-content>
</ion-content>
\ No newline at end of file
......@@ -18,6 +18,9 @@ export class HomePage {
constructor(public navCtrl: NavController, public navParams: NavParams,private fire:AngularFireAuth,private toast:ToastController) {
}
submit(){
}
ionViewWillLoad() {
......
......@@ -32,10 +32,10 @@ export class RegisterPage {
console.log('ionViewDidLoad RegisterPage');
}
registerUser() {
this.fire.auth.createUserWithEmailAndPassword(this.user.value,this.password.value)
.then(data=> {
console.log('got data',data);
async registerUser() {
const result=this.fire.auth.createUserWithEmailAndPassword(this.user.value,this.password.value)
.then(result=> {
console.log('got data',result);
}
)
.catch(error=>{
......
......@@ -20,8 +20,8 @@
<ion-content padding>
<div padding>
<button block ion-button color="vamsi" style="padding:0px; width: 100%;" medium (click)="PLogin()">RETAILER</button>
<button block ion-button color="vamsi" style="padding:0px; width: 100%;" medium (click)="PLogin()">PURCHASER</button>
<div class="spacer" style="width: 50px; height: 10px;"></div>
<button block ion-button color="vamsi" medium (click)="Login()">PURCHASER</button>
<button block ion-button color="vamsi" medium (click)="Login()">RETAILER</button>
</div>
</ion-content>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment