|
@@ -3,8 +3,9 @@ import { IonHeader, IonToolbar, IonTitle, IonContent, IonTabButton } from '@ioni
|
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
import { IonButton } from '@ionic/angular/standalone';
|
|
|
import { IonIcon } from '@ionic/angular/standalone';
|
|
|
-import { EditTagComponent } from '../edit-tag/edit-tag.component';
|
|
|
-import { EditRatingStarComponent } from '../edit-rating-star/edit-rating-star.component';
|
|
|
+import { EditTagComponent } from '../component/edit-tag/edit-tag.component';
|
|
|
+import { EditRatingStarComponent } from '../component/edit-rating-star/edit-rating-star.component';
|
|
|
+import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
|
@Component({
|
|
@@ -14,33 +15,17 @@ import { EditRatingStarComponent } from '../edit-rating-star/edit-rating-star.co
|
|
|
standalone: true,
|
|
|
imports: [
|
|
|
IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, IonTabButton, IonButton,
|
|
|
- IonIcon,EditTagComponent,EditRatingStarComponent
|
|
|
+ IonIcon,
|
|
|
],
|
|
|
})
|
|
|
export class Tab1Page {
|
|
|
|
|
|
- /**
|
|
|
- * 星星打分
|
|
|
- */
|
|
|
- currentScore:number = 0; // 初始分值
|
|
|
-
|
|
|
- handleScoreChange(newScore: number) {
|
|
|
- this.currentScore = newScore;
|
|
|
- console.log('新分值:', newScore); // 处理分值变化
|
|
|
- }
|
|
|
+ constructor(private router: Router) {}
|
|
|
|
|
|
/**
|
|
|
- * 标签编辑
|
|
|
+ * Go to the page-test page
|
|
|
*/
|
|
|
- editTags:Array<string> = []
|
|
|
- setTagValue(ev:any){
|
|
|
- console.log("setTagValue:",ev)
|
|
|
- this.editTags = ev
|
|
|
- }
|
|
|
-
|
|
|
goToPage(){
|
|
|
- alert('go to page');
|
|
|
+ this.router.navigate(['/tabs/page-test'])
|
|
|
}
|
|
|
-
|
|
|
- constructor() {}
|
|
|
}
|