|
@@ -4,6 +4,8 @@ import { ExploreContainerComponent } from '../explore-container/explore-containe
|
|
import { IonButton } from '@ionic/angular/standalone';
|
|
import { IonButton } from '@ionic/angular/standalone';
|
|
import { IonIcon } from '@ionic/angular/standalone';
|
|
import { IonIcon } from '@ionic/angular/standalone';
|
|
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-tab1',
|
|
selector: 'app-tab1',
|
|
@@ -12,11 +14,24 @@ import { EditTagComponent } from '../edit-tag/edit-tag.component';
|
|
standalone: true,
|
|
standalone: true,
|
|
imports: [
|
|
imports: [
|
|
IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, IonTabButton, IonButton,
|
|
IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, IonTabButton, IonButton,
|
|
- IonIcon,EditTagComponent
|
|
|
|
|
|
+ IonIcon,EditTagComponent,EditRatingStarComponent
|
|
],
|
|
],
|
|
})
|
|
})
|
|
export class Tab1Page {
|
|
export class Tab1Page {
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 星星打分
|
|
|
|
+ */
|
|
|
|
+ currentScore:number = 0; // 初始分值
|
|
|
|
+
|
|
|
|
+ handleScoreChange(newScore: number) {
|
|
|
|
+ this.currentScore = newScore;
|
|
|
|
+ console.log('新分值:', newScore); // 处理分值变化
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 标签编辑
|
|
|
|
+ */
|
|
editTags:Array<string> = []
|
|
editTags:Array<string> = []
|
|
setTagValue(ev:any){
|
|
setTagValue(ev:any){
|
|
console.log("setTagValue:",ev)
|
|
console.log("setTagValue:",ev)
|