| 
					
				 | 
			
			
				@@ -1,5 +1,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { Component } from '@angular/core'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { IonCardHeader, IonHeader, IonToolbar, IonTitle, IonContent, IonTabButton, IonSearchbar, IonLabel, IonItem, IonList, NavController, IonCard, IonCardTitle, IonCardSubtitle, IonCardContent, IonThumbnail, IonRippleEffect, IonFab, IonFabList, IonFabButton } from '@ionic/angular/standalone'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { IonCardHeader, IonHeader, IonToolbar, IonTitle, IonContent, IonTabButton, IonSearchbar, IonLabel, IonItem, IonList, NavController, IonCard, IonCardTitle, IonCardSubtitle, IonCardContent, IonThumbnail, IonRippleEffect, IonFab, IonFabList, IonFabButton, IonBadge } from '@ionic/angular/standalone'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { ExploreContainerComponent } from '../explore-container/explore-container.component'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { IonButton } from '@ionic/angular/standalone'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { IonIcon } from '@ionic/angular/standalone'; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -16,6 +16,28 @@ import { ChatPanelOptions, FmodeChat, FmodeChatMessage, openChatPanelModal } fro 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 addIcons({ documentText, chatbubbles, person, calendar, newspaper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    medkit,clipboard, podium, videocam, people,add 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ import { FmodeMapModule } from 'fmode-ng'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+interface ClinicAd { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  id: number; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  title: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  price?: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  description: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  image: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  backgroundColor: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+interface ServiceItem { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  id: number; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  title: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  description: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  image: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  hasDetail?: boolean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  isHot?: boolean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  backgroundColor?: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  size?: 'large' | 'small'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Component({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   selector: 'app-tab1', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   templateUrl: 'tab1.page.html', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -24,11 +46,97 @@ addIcons({ documentText, chatbubbles, person, calendar, newspaper, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   imports: [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent, IonTabButton, IonButton, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     IonIcon,IonSearchbar,IonLabel,IonItem,IonList,CommonModule,IonCard,IonCardHeader,IonCardTitle,IonCardSubtitle, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    IonCardContent, IonThumbnail, IonRippleEffect, IonFab, IonFabButton, IonFabList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    IonCardContent, IonThumbnail, IonRippleEffect, IonFab, IonFabButton, IonFabList,IonBadge 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   ], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  title1 = "特色服务"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  subtitle1 = "一站式医疗健康解决方案"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  services: ServiceItem[] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "援脑妇科病", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "小症状隐藏大隐患", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      hasDetail: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      backgroundColor: "#E8F5F2", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'large' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "解决口腔难题", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "享健康生活", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      hasDetail: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      isHot: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      backgroundColor: "#E8F5F2", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'large' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 3, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "解决皮肤难题", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "专业医生来助力", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 4, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "儿科常见疾病", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "在家就能请专家", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 5, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "赶走烦恼困扰", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "科学治疗好经不费", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 6, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "知己心理", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "温暖地陪你懂自己", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 7, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "搞定偏头痛", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "止疼彻底合集", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 8, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "搞定偏头痛", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "止疼彻底合集", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      size: 'small' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  title = "专科门诊"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  subtitle = "智养高复诊率、高口碑名医"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  clinicAds: ClinicAd[] = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "专业男科", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      price: "18元起", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "阳痿早泄", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor7.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      backgroundColor: "#EEF4FF" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      id: 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: "智养中医馆", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      price: "18元起", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      description: "口碑中医", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      image: "../../assets/image/doctor6.png", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      backgroundColor: "#FFF5EB" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   constructor( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private router: Router, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private modalCtrl: ModalController, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -81,6 +189,11 @@ export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   goToPage1(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     console.log(['route']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    let user = new CloudUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!user.id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.router.navigate(['/tabs/tab4']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.router.navigate(['/tabs/inquiry/ai']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -88,6 +201,11 @@ export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    * Go to the human page 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   goToPage2(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    let user = new CloudUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!user.id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.router.navigate(['/tabs/tab4']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.router.navigate(['/tabs/inquiry/human']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,6 +240,11 @@ export class Tab1Page { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   // 导航到指定路由 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   navigateTo(route: string) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    let user = new CloudUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!user.id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.router.navigate(['/tabs/tab4']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     this.router.navigate([route]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     console.log("route: ",route) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -243,10 +366,15 @@ ${userPrompt} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             consult.save(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       onChatSaved:(chat:FmodeChat)=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // chat?.chatSession?.id 本次会话的 chatId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log("onChatSaved",chat,chat?.chatSession,chat?.chatSession?.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // consult.set({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //   chatId:chat?.chatSession?.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log("chat.MessageList", chat?.messageList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openChatPanelModal(this.modalCtrl,options) 
			 |