0225268 há 4 meses atrás
pai
commit
858979b0b1
29 ficheiros alterados com 343 adições e 16 exclusões
  1. 0 0
      Assets/avatar.jpg
  2. 4 1
      src/app/app-routing.module.ts
  3. 17 0
      src/app/comment-reply/comment-reply-routing.module.ts
  4. 20 0
      src/app/comment-reply/comment-reply.module.ts
  5. 13 0
      src/app/comment-reply/comment-reply.page.html
  6. 0 0
      src/app/comment-reply/comment-reply.page.scss
  7. 17 0
      src/app/comment-reply/comment-reply.page.spec.ts
  8. 15 0
      src/app/comment-reply/comment-reply.page.ts
  9. 17 0
      src/app/follow/follow-routing.module.ts
  10. 20 0
      src/app/follow/follow.module.ts
  11. 13 0
      src/app/follow/follow.page.html
  12. 0 0
      src/app/follow/follow.page.scss
  13. 17 0
      src/app/follow/follow.page.spec.ts
  14. 15 0
      src/app/follow/follow.page.ts
  15. 17 0
      src/app/like-favorite/like-favorite-routing.module.ts
  16. 20 0
      src/app/like-favorite/like-favorite.module.ts
  17. 13 0
      src/app/like-favorite/like-favorite.page.html
  18. 0 0
      src/app/like-favorite/like-favorite.page.scss
  19. 17 0
      src/app/like-favorite/like-favorite.page.spec.ts
  20. 15 0
      src/app/like-favorite/like-favorite.page.ts
  21. 17 0
      src/app/system-message/system-message-routing.module.ts
  22. 20 0
      src/app/system-message/system-message.module.ts
  23. 13 0
      src/app/system-message/system-message.page.html
  24. 0 0
      src/app/system-message/system-message.page.scss
  25. 17 0
      src/app/system-message/system-message.page.spec.ts
  26. 15 0
      src/app/system-message/system-message.page.ts
  27. 6 7
      src/app/tab3/tab3.page.html
  28. 0 6
      src/app/tab3/tab3.page.scss
  29. 5 2
      src/app/tab3/tab3.page.ts

+ 0 - 0
asset/img/大师.jpeg → Assets/avatar.jpg


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

@@ -10,7 +10,10 @@ const routes: Routes = [
     path: 'tab4',
     loadChildren: () => import('./tab4/tab4.module').then( m => m.Tab4PageModule)
   },
-  
+  { path: 'comment-reply', loadChildren: () => import('./comment-reply/comment-reply.module').then(m => m.CommentReplyPageModule) },
+  { path: 'like-favorite', loadChildren: () => import('./like-favorite/like-favorite.module').then(m => m.LikeFavoritePageModule) },
+  { path: 'follow', loadChildren: () => import('./follow/follow.module').then(m => m.FollowPageModule) },
+  { path: 'system-message', loadChildren: () => import('./system-message/system-message.module').then(m => m.SystemMessagePageModule) },
 ];
 @NgModule({
   imports: [

+ 17 - 0
src/app/comment-reply/comment-reply-routing.module.ts

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

+ 20 - 0
src/app/comment-reply/comment-reply.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 { CommentReplyPageRoutingModule } from './comment-reply-routing.module';
+
+import { CommentReplyPage } from './comment-reply.page';
+
+@NgModule({
+  imports: [
+    CommonModule,
+    FormsModule,
+    IonicModule,
+    CommentReplyPageRoutingModule
+  ],
+  declarations: [CommentReplyPage]
+})
+export class CommentReplyPageModule {}

+ 13 - 0
src/app/comment-reply/comment-reply.page.html

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

+ 0 - 0
src/app/comment-reply/comment-reply.page.scss


+ 17 - 0
src/app/comment-reply/comment-reply.page.spec.ts

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

+ 15 - 0
src/app/comment-reply/comment-reply.page.ts

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

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

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

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

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

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

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


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

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

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

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

+ 17 - 0
src/app/like-favorite/like-favorite-routing.module.ts

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

+ 20 - 0
src/app/like-favorite/like-favorite.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 { LikeFavoritePageRoutingModule } from './like-favorite-routing.module';
+
+import { LikeFavoritePage } from './like-favorite.page';
+
+@NgModule({
+  imports: [
+    CommonModule,
+    FormsModule,
+    IonicModule,
+    LikeFavoritePageRoutingModule
+  ],
+  declarations: [LikeFavoritePage]
+})
+export class LikeFavoritePageModule {}

+ 13 - 0
src/app/like-favorite/like-favorite.page.html

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

+ 0 - 0
src/app/like-favorite/like-favorite.page.scss


+ 17 - 0
src/app/like-favorite/like-favorite.page.spec.ts

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

+ 15 - 0
src/app/like-favorite/like-favorite.page.ts

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

+ 17 - 0
src/app/system-message/system-message-routing.module.ts

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

+ 20 - 0
src/app/system-message/system-message.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 { SystemMessagePageRoutingModule } from './system-message-routing.module';
+
+import { SystemMessagePage } from './system-message.page';
+
+@NgModule({
+  imports: [
+    CommonModule,
+    FormsModule,
+    IonicModule,
+    SystemMessagePageRoutingModule
+  ],
+  declarations: [SystemMessagePage]
+})
+export class SystemMessagePageModule {}

+ 13 - 0
src/app/system-message/system-message.page.html

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

+ 0 - 0
src/app/system-message/system-message.page.scss


+ 17 - 0
src/app/system-message/system-message.page.spec.ts

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

+ 15 - 0
src/app/system-message/system-message.page.ts

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

+ 6 - 7
src/app/tab3/tab3.page.html

@@ -3,9 +3,8 @@
     <ion-title>
       消息
     </ion-title>
-      <ion-button (click)="openSettingsPage()">
+      <ion-button slot="end"  (click)="openSettingsPage()">
         <ion-icon name="settings-outline"></ion-icon>
-        <ion-label>设置</ion-label>
       </ion-button>
   </ion-toolbar>
 </ion-header>
@@ -15,7 +14,7 @@
   <ion-toolbar>
    <ion-segment value="explore">
     <ion-segment-button value="explore">
-      <ion-icon  name="chatbubble-ellipses"></ion-icon>
+      <ion-icon (click)="navigateToPage('comment-reply')" name="chatbubble-ellipses"></ion-icon>
       评论和回复
     </ion-segment-button>
     <ion-segment-button value="video">
@@ -23,11 +22,11 @@
       赞与收藏
     </ion-segment-button>
     <ion-segment-button value="search">
-      <ion-icon  name="person-add"></ion-icon>
+      <ion-icon (click)="navigateToPage('follow')" name="person-add"></ion-icon>
       新增关注
     </ion-segment-button>
     <ion-segment-button value="system">
-      <ion-icon  name="notifications"></ion-icon>
+      <ion-icon (click)="navigateToPage('system-message')" name="notifications"></ion-icon>
       系统消息
     </ion-segment-button>
    </ion-segment>
@@ -38,7 +37,7 @@
     </ion-card-header>
     <ion-card-content>
       <ion-avatar slot="start">
-        <ion-img src="assets/avatar.jpg"></ion-img>
+        <ion-img src="Assets/avatar.jpg"></ion-img>
       </ion-avatar>
       <ion-label>用户名</ion-label>
       <ion-label>标签</ion-label>
@@ -46,4 +45,4 @@
       <ion-button expand="block">免费提问</ion-button>
     </ion-card-content>
   </ion-card>
-</ion-content>
+</ion-content>

+ 0 - 6
src/app/tab3/tab3.page.scss

@@ -1,6 +1,3 @@
-.details-container {
-  padding: 10px;
-}
 ion-card {
   top: 25px;
   margin: 10px;
@@ -13,6 +10,3 @@ ion-card-title {
 ion-avatar {
   margin-right: 10px;
 }
-ion-toolbar{
-  top: 10px;
-}

+ 5 - 2
src/app/tab3/tab3.page.ts

@@ -1,4 +1,5 @@
 import { Component } from '@angular/core';
+import { Router } from '@angular/router';
 
 @Component({
   selector: 'app-tab3',
@@ -7,7 +8,7 @@ import { Component } from '@angular/core';
 })
 export class Tab3Page {
 
-  constructor() {}
+  constructor(private router: Router) {}
   openFeedbackPage() {
     // 打开反馈页面
   }
@@ -16,5 +17,7 @@ export class Tab3Page {
   openSettingsPage() {
     // 打开设置页面
   }
-
+  navigateToPage(page: string) {
+    this.router.navigate([`/tabs/${page}`]);
+  }
 }