import { Component } from '@angular/core';


@Component({
  selector: 'app-tab1',
  templateUrl: 'tab1.page.html',
  styleUrls: ['tab1.page.scss']
})
export class Tab1Page {

  
  isSignedIn: boolean = false;

  signIn() {
    if (!this.isSignedIn) {
      this.isSignedIn = true;
    } else {
      alert('您今天已经签到过了！');
    }
  }

//时钟
  currentTime: Date = new Date();

  constructor() { }

  ngOnInit(): void {
    setInterval(() => {
      this.currentTime = new Date();
    }, 1000);
  }


  customItems:Array<any> = [
    {title:"游戏"},
    {title:"历史"},
    {title:"仙侠"},
    {title:"武侠"},
    {title:"科幻"},
    {title:"悬疑"},
  ]



}
