|
@@ -2,6 +2,9 @@ import { Component } from '@angular/core';
|
|
import { CommonModule } from '@angular/common'; // 导入 CommonModule
|
|
import { CommonModule } from '@angular/common'; // 导入 CommonModule
|
|
import { IonHeader, IonToolbar, IonTitle, IonContent, IonSearchbar, IonCard, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCardContent, IonItem, IonLabel, IonList, IonFooter } from '@ionic/angular/standalone';
|
|
import { IonHeader, IonToolbar, IonTitle, IonContent, IonSearchbar, IonCard, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCardContent, IonItem, IonLabel, IonList, IonFooter } from '@ionic/angular/standalone';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
|
+import { EditRatingStarComponent } from '../edit-rating-star/edit-rating-star.component';
|
|
|
|
+import { Router } from '@angular/router';
|
|
|
|
+import { IonButton } from '@ionic/angular/standalone';
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-tab1',
|
|
selector: 'app-tab1',
|
|
@@ -12,10 +15,28 @@ import { ExploreContainerComponent } from '../explore-container/explore-containe
|
|
CommonModule, // 在 imports 中加入 CommonModule
|
|
CommonModule, // 在 imports 中加入 CommonModule
|
|
IonHeader, IonToolbar, IonTitle, IonContent, IonSearchbar,
|
|
IonHeader, IonToolbar, IonTitle, IonContent, IonSearchbar,
|
|
IonCard, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCardContent,
|
|
IonCard, IonCardHeader, IonCardTitle, IonCardSubtitle, IonCardContent,
|
|
- IonItem, IonLabel, IonList, IonFooter, ExploreContainerComponent
|
|
|
|
|
|
+ IonItem, IonLabel, IonList, IonFooter, ExploreContainerComponent ,
|
|
|
|
+ EditRatingStarComponent, IonButton
|
|
],
|
|
],
|
|
})
|
|
})
|
|
-export class Tab1Page {
|
|
|
|
|
|
+export class Tab1Page {
|
|
|
|
+ constructor(private router: Router) {}
|
|
|
|
+
|
|
|
|
+ goToPage1(){
|
|
|
|
+ this.router.navigate(['/tabs/picture'])
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ goToPage2(){
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ currentScore: number = 0; // 初始分值
|
|
|
|
+
|
|
|
|
+ handleScoreChange(newScore: number) {
|
|
|
|
+ this.currentScore = newScore;
|
|
|
|
+ console.log('新分值:', newScore); // 处理分值变化
|
|
|
|
+ }
|
|
|
|
+
|
|
items = [
|
|
items = [
|
|
{
|
|
{
|
|
title: '医疗技术',
|
|
title: '医疗技术',
|
|
@@ -34,7 +55,7 @@ export class Tab1Page {
|
|
}
|
|
}
|
|
];
|
|
];
|
|
|
|
|
|
- constructor() {}
|
|
|
|
|
|
+
|
|
|
|
|
|
search(event: CustomEvent) {
|
|
search(event: CustomEvent) {
|
|
const searchTerm = event.detail.value;
|
|
const searchTerm = event.detail.value;
|