|
@@ -2,16 +2,24 @@ import { Component } from '@angular/core';
|
|
import { IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/angular/standalone';
|
|
import { IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/angular/standalone';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { EditTagComponent } from '../edit-tag/edit-tag.component'
|
|
import { EditTagComponent } from '../edit-tag/edit-tag.component'
|
|
|
|
+import { EditRatingStarComponent } from '../edit-rating-star/edit-rating-star.component';
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-tab2',
|
|
selector: 'app-tab2',
|
|
templateUrl: 'tab2.page.html',
|
|
templateUrl: 'tab2.page.html',
|
|
styleUrls: ['tab2.page.scss'],
|
|
styleUrls: ['tab2.page.scss'],
|
|
standalone: true,
|
|
standalone: true,
|
|
- imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, EditTagComponent]
|
|
|
|
|
|
+ imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,
|
|
|
|
+ EditTagComponent, EditRatingStarComponent]
|
|
})
|
|
})
|
|
export class Tab2Page {
|
|
export class Tab2Page {
|
|
|
|
|
|
constructor() { }
|
|
constructor() { }
|
|
|
|
|
|
|
|
+ currentScore: number = 0; // 初始分值
|
|
|
|
+
|
|
|
|
+ handleScoreChange(newScore: number) {
|
|
|
|
+ this.currentScore = newScore;
|
|
|
|
+ console.log('新分值:', newScore); // 处理分值变化
|
|
|
|
+ }
|
|
}
|
|
}
|