|
@@ -1,8 +1,10 @@
|
|
import { Component } from '@angular/core';
|
|
import { Component } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
import { Router } from '@angular/router';
|
|
-import { IonHeader, IonToolbar, IonTitle, IonContent, ModalController, IonButton } from '@ionic/angular/standalone';
|
|
|
|
|
|
+import { IonHeader, IonToolbar, IonTitle, IonContent, ModalController, IonButton, IonGrid, IonCol, IonCardHeader, IonLabel, IonThumbnail, IonCardContent, IonCardTitle, IonCard, IonIcon, IonSearchbar } from '@ionic/angular/standalone';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { FmChatModalInput } from 'fmode-ng';
|
|
import { FmChatModalInput } from 'fmode-ng';
|
|
|
|
+import { IonRow, IonItem } from '@ionic/angular/standalone';
|
|
|
|
+import { CommonModule } from '@angular/common';
|
|
// import { ModalAudioMessageComponent } from 'fmode-ng/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component';
|
|
// import { ModalAudioMessageComponent } from 'fmode-ng/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component';
|
|
|
|
|
|
|
|
|
|
@@ -13,7 +15,8 @@ import { FmChatModalInput } from 'fmode-ng';
|
|
standalone: true,
|
|
standalone: true,
|
|
imports: [
|
|
imports: [
|
|
IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,
|
|
IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,
|
|
- IonButton,
|
|
|
|
|
|
+ IonButton, IonGrid, IonRow, IonCol,IonCardHeader, IonItem, IonLabel,IonThumbnail,IonCardContent,
|
|
|
|
+ IonCardTitle, IonCard, IonIcon, IonSearchbar, CommonModule,
|
|
// ASR语音输入模块
|
|
// ASR语音输入模块
|
|
FmChatModalInput,
|
|
FmChatModalInput,
|
|
// ModalAudioMessageComponent
|
|
// ModalAudioMessageComponent
|
|
@@ -24,33 +27,25 @@ export class Tab3Page {
|
|
private modalCtrl:ModalController,
|
|
private modalCtrl:ModalController,
|
|
private router:Router,
|
|
private router:Router,
|
|
) {
|
|
) {
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ categories = [
|
|
|
|
+ { name: '皮肤用药', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '妇科用药', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '肠胃消化', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '呼吸用药', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '营养补充', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '家庭常备', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '耳鼻咽喉', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '男科用药', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ products = [
|
|
|
|
+ { name: '清宫长春胶囊', price: '¥120', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ { name: '知柏地黄丸', price: '¥200', image: '../../assets/image/doctor7.png' },
|
|
|
|
+ ];
|
|
|
|
+
|
|
goChat(){
|
|
goChat(){
|
|
this.router.navigateByUrl("/chat/session/role/2DXJkRsjXK")
|
|
this.router.navigateByUrl("/chat/session/role/2DXJkRsjXK")
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
- // audioModalHeightPoint:number = 0.35;
|
|
|
|
- // async startTalk(){
|
|
|
|
- // // 根据手机兼容性,适配组件弹出高度
|
|
|
|
- // let height = document.body.clientHeight || 960;
|
|
|
|
- // this.audioModalHeightPoint = Number((165/height).toFixed(2));
|
|
|
|
-
|
|
|
|
- // // 弹出组件
|
|
|
|
- // let modal:any
|
|
|
|
- // let chat:any
|
|
|
|
- // modal = await this.modalCtrl.create({
|
|
|
|
- // component:ModalAudioMessageComponent,
|
|
|
|
- // componentProps:{
|
|
|
|
- // chat:chat,
|
|
|
|
- // modal:modal,
|
|
|
|
- // onBreakPointSet:()=>{
|
|
|
|
- // modal?.setCurrentBreakpoint(this.audioModalHeightPoint)
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // modal.present();
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|