|
@@ -1,8 +1,9 @@
|
|
|
import { Component, CUSTOM_ELEMENTS_SCHEMA, OnInit } from '@angular/core';
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
-import { IonicModule, AlertController } from '@ionic/angular';
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
import { Router } from '@angular/router';
|
|
|
+import { AlertController, IonSegment, IonCard, IonCardTitle, IonCardSubtitle, IonButton, IonGrid, IonRow, IonToolbar, IonTitle } from '@ionic/angular/standalone';
|
|
|
+import { IonSegmentButton, IonCardHeader, IonCardContent, IonCol, IonIcon, IonChip, IonHeader, IonContent } from '@ionic/angular/standalone';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-tab1',
|
|
@@ -10,9 +11,12 @@ import { Router } from '@angular/router';
|
|
|
templateUrl: 'tab1.page.html',
|
|
|
styleUrls: ['tab1.page.scss'],
|
|
|
imports: [
|
|
|
- IonicModule,
|
|
|
CommonModule,
|
|
|
- FormsModule
|
|
|
+ FormsModule,
|
|
|
+ IonSegment,IonSegmentButton,IonCard,IonCardHeader,
|
|
|
+ IonCardTitle,IonCardSubtitle,IonCardContent,IonButton,
|
|
|
+ IonGrid,IonRow,IonCol,IonIcon,IonChip,
|
|
|
+ IonHeader,IonContent,IonToolbar,IonTitle
|
|
|
],
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
|
})
|
|
@@ -99,7 +103,7 @@ export class Tab1Page implements OnInit {
|
|
|
},
|
|
|
{
|
|
|
text: '确认',
|
|
|
- handler: (data) => {
|
|
|
+ handler: (data:any) => {
|
|
|
console.log('地址:', data.address);
|
|
|
console.log('手机号:', data.phone);
|
|
|
this.showAlert('购买成功', '您的订单已提交!');
|
|
@@ -133,7 +137,7 @@ export class Tab1Page implements OnInit {
|
|
|
},
|
|
|
{
|
|
|
text: '确认',
|
|
|
- handler: (data) => {
|
|
|
+ handler: (data:any) => {
|
|
|
console.log('姓名:', data.name);
|
|
|
console.log('手机号:', data.phone);
|
|
|
this.showAlert('报名成功', '您已成功报名活动!');
|
|
@@ -167,7 +171,7 @@ export class Tab1Page implements OnInit {
|
|
|
},
|
|
|
{
|
|
|
text: '确认',
|
|
|
- handler: (data) => {
|
|
|
+ handler: (data:any) => {
|
|
|
console.log('上课时间:', data.classTime);
|
|
|
console.log('手机号:', data.phone);
|
|
|
this.showAlert('报名成功', '您已成功报名课程!');
|