Procházet zdrojové kódy

Merge branch 'master' of http://git.fmode.cn:3000/0225273/APPmy

0225273 před 4 měsíci
rodič
revize
fe77f4cba6

+ 4 - 0
src/app/app-routing.module.ts

@@ -64,6 +64,10 @@ const routes: Routes = [
   {
     path: 'aichat',
     loadChildren: () => import('./aichat/aichat.module').then( m => m.AIChatPageModule)
+  },
+  {
+    path: 'consult',
+    loadChildren: () => import('./consult/consult.module').then( m => m.ConsultPageModule)
   }
 
 

+ 17 - 0
src/app/consult/consult-routing.module.ts

@@ -0,0 +1,17 @@
+import { NgModule } from '@angular/core';
+import { Routes, RouterModule } from '@angular/router';
+
+import { ConsultPage } from './consult.page';
+
+const routes: Routes = [
+  {
+    path: '',
+    component: ConsultPage
+  }
+];
+
+@NgModule({
+  imports: [RouterModule.forChild(routes)],
+  exports: [RouterModule],
+})
+export class ConsultPageRoutingModule {}

+ 20 - 0
src/app/consult/consult.module.ts

@@ -0,0 +1,20 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { FormsModule } from '@angular/forms';
+
+import { IonicModule } from '@ionic/angular';
+
+import { ConsultPageRoutingModule } from './consult-routing.module';
+
+import { ConsultPage } from './consult.page';
+
+@NgModule({
+  imports: [
+    CommonModule,
+    FormsModule,
+    IonicModule,
+    ConsultPageRoutingModule
+  ],
+  declarations: [ConsultPage]
+})
+export class ConsultPageModule {}

+ 13 - 0
src/app/consult/consult.page.html

@@ -0,0 +1,13 @@
+<ion-header [translucent]="true">
+  <ion-toolbar>
+    <ion-title>consult</ion-title>
+  </ion-toolbar>
+</ion-header>
+
+<ion-content [fullscreen]="true">
+  <ion-header collapse="condense">
+    <ion-toolbar>
+      <ion-title size="large">consult</ion-title>
+    </ion-toolbar>
+  </ion-header>
+</ion-content>

+ 0 - 0
src/app/consult/consult.page.scss


+ 17 - 0
src/app/consult/consult.page.spec.ts

@@ -0,0 +1,17 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { ConsultPage } from './consult.page';
+
+describe('ConsultPage', () => {
+  let component: ConsultPage;
+  let fixture: ComponentFixture<ConsultPage>;
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(ConsultPage);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 15 - 0
src/app/consult/consult.page.ts

@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-consult',
+  templateUrl: './consult.page.html',
+  styleUrls: ['./consult.page.scss'],
+})
+export class ConsultPage implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}