1
0

2 Revīzijas 6fa6148e4c ... a5405438bc

Autors SHA1 Ziņojums Datums
  Breeze a5405438bc Merge branch 'master' of http://git.fmode.cn:3000/5230275/FilmTraceExplore 4 mēneši atpakaļ
  Breeze 3ac329eb5f 添加搜索图标 4 mēneši atpakaļ

+ 5 - 0
src/app/place/place.page.html

@@ -1,6 +1,11 @@
 <ion-header>
   <ion-toolbar>
     <ion-title>地点</ion-title>
+    <ion-buttons slot="end">
+      <ion-button (click)="search()">
+        <ion-icon name="search"></ion-icon>
+      </ion-button>
+    </ion-buttons>
   </ion-toolbar>
 </ion-header>
 

+ 15 - 1
src/app/place/place.page.ts

@@ -1,14 +1,28 @@
 import { Component, OnInit } from '@angular/core';
 import { NavController } from '@ionic/angular';
 
+import { Router } from '@angular/router';
+import { NavController } from '@ionic/angular';
 @Component({
   selector: 'app-place',
   templateUrl: './place.page.html',
   styleUrls: ['./place.page.scss'],
 })
-export class PlacePage  {
+export class PlacePage implements OnInit {
+
   constructor(private navCtrl: NavController) {}
 
+  search() {
+    // this.router.navigate(['/blank-page']); // 替换成你的空白页面路由路径
+    // 导航到空白页面
+    console.log('Navigating to Blank page');
+  }
+
+  goToBlankPage() {
+    // 处理显示更多城市的逻辑
+    console.log('显示更多城市');
+  }
+
   goToBlankPage() {
     // 导航到空白页面
     console.log('Navigating to Blank page');

+ 5 - 0
src/app/tab1/tab1.page.html

@@ -3,6 +3,11 @@
     <ion-title>
       首页
     </ion-title>
+    <ion-buttons slot="end">
+      <ion-button (click)="search()">
+        <ion-icon name="search"></ion-icon>
+      </ion-button>
+    </ion-buttons>
   </ion-toolbar>
 </ion-header>
 

+ 6 - 0
src/app/tab1/tab1.page.ts

@@ -14,6 +14,12 @@ export class Tab1Page implements OnInit {
 
   constructor(private router: Router) {}
 
+  search() {
+    // this.router.navigate(['/blank-page']); // 替换成你的空白页面路由路径
+    // 导航到空白页面
+    console.log('Navigating to Blank page');
+  }
+
   navigateToBannerPage(banner: string) {
     // 导航到对应的Banner页面
     console.log('Navigating to Banner page: ' + banner);

+ 6 - 0
src/app/tab2/tab2.page.html

@@ -1,7 +1,13 @@
 <ion-header>
   <ion-toolbar>
     <ion-title>电影</ion-title>
+    <ion-buttons slot="end">
+      <ion-button (click)="search()">
+        <ion-icon name="search"></ion-icon>
+      </ion-button>
+    </ion-buttons>
   </ion-toolbar>
+  
 </ion-header>
 
 <ion-content>

+ 5 - 0
src/app/tab2/tab2.page.ts

@@ -17,4 +17,9 @@ export class Tab2Page {
     // 导航到空白页面
     console.log('Navigating to Blank page');
   }
+  search() {
+    // this.router.navigate(['/blank-page']); // 替换成你的空白页面路由路径
+    // 导航到空白页面
+    console.log('Navigating to Blank page');
+  }
 }

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

@@ -1,7 +1,13 @@
 <ion-header>
   <ion-toolbar>
     <ion-title>城市</ion-title>
+    <ion-buttons slot="end">
+      <ion-button (click)="search()">
+        <ion-icon name="search"></ion-icon>
+      </ion-button>
+    </ion-buttons>
   </ion-toolbar>
+  
 </ion-header>
 
 <ion-content>

+ 8 - 0
src/app/tab3/tab3.page.ts

@@ -1,4 +1,6 @@
 import { Component } from '@angular/core';
+
+import { Router } from '@angular/router';
 import { NavController } from '@ionic/angular';
 
 @Component({
@@ -9,6 +11,12 @@ import { NavController } from '@ionic/angular';
 export class Tab3Page {
   constructor(private navCtrl: NavController) {}
 
+  search() {
+    // this.router.navigate(['/blank-page']); // 替换成你的空白页面路由路径
+    // 导航到空白页面
+    console.log('Navigating to Blank page');
+  }
+
   goToBlankPage() {
     // 导航到空白页面
     console.log('Navigating to Blank page');