陈松 преди 4 месеца
родител
ревизия
68761ead02

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

@@ -5,6 +5,10 @@ const routes: Routes = [
   {
     path: '',
     loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
+  },
+  {
+    path: 'tab-mine',
+    loadChildren: () => import('./tab-mine/tab-mine.module').then( m => m.TabMinePageModule)
   }
 ];
 @NgModule({

+ 17 - 0
src/app/tab-mine/tab-mine-routing.module.ts

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

+ 20 - 0
src/app/tab-mine/tab-mine.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 { TabMinePageRoutingModule } from './tab-mine-routing.module';
+
+import { TabMinePage } from './tab-mine.page';
+
+@NgModule({
+  imports: [
+    CommonModule,
+    FormsModule,
+    IonicModule,
+    TabMinePageRoutingModule
+  ],
+  declarations: [TabMinePage]
+})
+export class TabMinePageModule {}

+ 13 - 0
src/app/tab-mine/tab-mine.page.html

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

+ 0 - 0
src/app/tab-mine/tab-mine.page.scss


+ 17 - 0
src/app/tab-mine/tab-mine.page.spec.ts

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

+ 15 - 0
src/app/tab-mine/tab-mine.page.ts

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

+ 5 - 0
src/app/tabs/tabs-routing.module.ts

@@ -19,6 +19,11 @@ const routes: Routes = [
         path: 'tab3',
         loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
       },
+      {
+        path: 'tab-mine',
+        loadChildren: () => import('../tab-mine/tab-mine.module').then( m => m.TabMinePageModule)
+      },
+
       {
         path: '',
         redirectTo: '/tabs/tab1',

+ 17 - 8
src/app/tabs/tabs.page.html

@@ -2,19 +2,28 @@
 
   <ion-tab-bar slot="bottom">
     <ion-tab-button tab="tab1" href="/tabs/tab1">
-      <ion-icon aria-hidden="true" name="triangle"></ion-icon>
-      <ion-label>Tab 1</ion-label>
+      <ion-icon aria-hidden="true" name="home"></ion-icon>
+      <ion-label>首页</ion-label>
     </ion-tab-button>
 
     <ion-tab-button tab="tab2" href="/tabs/tab2">
-      <ion-icon aria-hidden="true" name="ellipse"></ion-icon>
-      <ion-label>Tab 2</ion-label>
+      <ion-icon aria-hidden="true" name="cart"></ion-icon>
+      <ion-label>市集</ion-label>
+    </ion-tab-button>
+
+    <ion-tab-button disabled>
+      <ion-icon aria-hidden="true" name="add-circle"></ion-icon>
     </ion-tab-button>
 
     <ion-tab-button tab="tab3" href="/tabs/tab3">
-      <ion-icon aria-hidden="true" name="square"></ion-icon>
-      <ion-label>Tab 3</ion-label>
+      <ion-icon aria-hidden="true" name="compass"></ion-icon>
+      <ion-label>发现</ion-label>
     </ion-tab-button>
-  </ion-tab-bar>
 
-</ion-tabs>
+  <ion-tab-button tab="tab-mine" href="/tabs/tab-mine">
+    <ion-icon aria-hidden="true"  name="person"></ion-icon>
+      <ion-label>我的</ion-label>
+  </ion-tab-button>
+</ion-tab-bar>
+
+</ion-tabs>