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

@Component({
  selector: 'app-contact',
  templateUrl: './contact.page.html',
  styleUrls: ['./contact.page.scss'],
})
export class ContactPage implements OnInit {

  constructor() { }

  ngOnInit() {
  }

  profile = {
    name: '张三',
    birthday: new Date(),
    relationship: '朋友',
    gender: 'male',
    contact: '1234567890',
    hobbies: '阅读, 旅游',
    taste: '辣',
    habits: '早睡早起',
    dislikes: '嘈杂'
  };

  editProfile(field: string) {
    console.log(`Editing ${field}`);
    // 这里可以添加逻辑来弹出一个模态框或表单来编辑属性
  }

}
