|
@@ -1,7 +1,8 @@
|
|
|
-import { Component } from '@angular/core';
|
|
|
+import { Component, OnInit } from '@angular/core';
|
|
|
import { AlertController } from '@ionic/angular';
|
|
|
import { trigger, state, style, animate, transition } from '@angular/animations';
|
|
|
-
|
|
|
+import * as Parse from "parse"
|
|
|
+import { Router } from '@angular/router';
|
|
|
@Component({
|
|
|
selector: 'app-tab1',
|
|
|
templateUrl: 'tab1.page.html',
|
|
@@ -9,7 +10,7 @@ import { trigger, state, style, animate, transition } from '@angular/animations'
|
|
|
}
|
|
|
|
|
|
)
|
|
|
-export class Tab1Page {
|
|
|
+export class Tab1Page implements OnInit{
|
|
|
slider = {
|
|
|
effect: 'flip',
|
|
|
speed: 400,
|
|
@@ -18,9 +19,21 @@ export class Tab1Page {
|
|
|
delay: 2000
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
-
|
|
|
- constructor() {}
|
|
|
+ ok=[{
|
|
|
+ text: 'OK',
|
|
|
+ role: 'confirm',
|
|
|
+ handler: () => {
|
|
|
+ this.router.navigate(['/tabs/tab3']);
|
|
|
+ },
|
|
|
+ },]
|
|
|
+ user:Parse.User|undefined
|
|
|
+ constructor(private router: Router) {
|
|
|
+ let a=setInterval(() => {
|
|
|
+ this.user = Parse.User.current()
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ ngOnInit(): void {
|
|
|
+ }
|
|
|
navigateTo(path:string){
|
|
|
|
|
|
}
|