|  | @@ -1,8 +1,10 @@
 | 
	
		
			
				|  |  |  import { Component,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
 | 
	
		
			
				|  |  |  import { IonHeader, IonToolbar, IonTitle, IonContent, IonAvatar, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonLabel, IonList,
 | 
	
		
			
				|  |  | -   IonItem,IonIcon,IonCardTitle,IonInput,IonSearchbar } from '@ionic/angular/standalone';
 | 
	
		
			
				|  |  | +   IonItem,IonIcon,IonCardTitle,IonInput,IonSearchbar} from '@ionic/angular/standalone';
 | 
	
		
			
				|  |  |  import { ExploreContainerComponent } from '../explore-container/explore-container.component';
 | 
	
		
			
				|  |  |  import { CommonModule } from '@angular/common';
 | 
	
		
			
				|  |  | +import { EditDetailComponent } from '../edit-detail/edit-detail.component';
 | 
	
		
			
				|  |  | +import { Router } from '@angular/router';
 | 
	
		
			
				|  |  |  @Component({
 | 
	
		
			
				|  |  |    selector: 'app-tab1',
 | 
	
		
			
				|  |  |    templateUrl: 'tab1.page.html',
 | 
	
	
		
			
				|  | @@ -12,7 +14,7 @@ import { CommonModule } from '@angular/common';
 | 
	
		
			
				|  |  |      IonButtons,IonButton,IonIcon,
 | 
	
		
			
				|  |  |      IonCard,IonCardContent,IonCardHeader,IonCardTitle,
 | 
	
		
			
				|  |  |      IonLabel,IonList,IonItem,IonAvatar,IonInput,IonSearchbar,
 | 
	
		
			
				|  |  | -    CommonModule,
 | 
	
		
			
				|  |  | +    CommonModule,EditDetailComponent
 | 
	
		
			
				|  |  |    ],
 | 
	
		
			
				|  |  |    schemas: [CUSTOM_ELEMENTS_SCHEMA],
 | 
	
		
			
				|  |  |  })
 | 
	
	
		
			
				|  | @@ -25,21 +27,20 @@ export class Tab1Page {
 | 
	
		
			
				|  |  |    consultants = [
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |        name: '李医生',
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        fields: ['焦虑', '抑郁']
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |        name: '张医生',
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        fields: ['人际关系', '情绪管理']
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |        name: '王医生',
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        fields: ['压力管理', '心理咨询']
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    ];
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    topics = [
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |        id: 1,
 | 
	
	
		
			
				|  | @@ -57,25 +58,29 @@ export class Tab1Page {
 | 
	
		
			
				|  |  |        description: '学习如何建立自信。'
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    ];
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    reviews = [
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        content: '这款APP真的帮助了我,感谢陪聊师!',
 | 
	
		
			
				|  |  |        rating: 4
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        content: '非常实用的心理咨询平台!',
 | 
	
		
			
				|  |  |        rating: 5
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -      avatar: 'img/1.png',
 | 
	
		
			
				|  |  | +      avatar: '/assets/img/1.png',
 | 
	
		
			
				|  |  |        content: '我喜欢这里的热门话题!',
 | 
	
		
			
				|  |  |        rating: 4
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    ];
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +  constructor(private router: Router) {
 | 
	
		
			
				|  |  | +    // 其他构造函数代码
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +  viewDetails(){//查看详情
 | 
	
		
			
				|  |  | +    this.router.navigate(['/tabs/detail'])
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |    bookConsultation(consultant: any) {
 | 
	
		
			
				|  |  |      // 预约咨询逻辑
 | 
	
		
			
				|  |  |      console.log(`预约咨询: ${consultant.name}`);
 |