|
@@ -5,11 +5,15 @@ import { IonCard, IonCardContent, IonCardHeader, IonCardTitle, IonIcon, IonItem,
|
|
|
import { IonButtons } from '@ionic/angular/standalone';
|
|
|
import { addIcons } from 'ionicons';
|
|
|
import { calendarOutline, chatbubbleEllipsesOutline, chatbubbleOutline, documentTextOutline, personOutline, settingsOutline } from 'ionicons/icons';
|
|
|
-import { CloudUser } from 'src/lib/ncloud';
|
|
|
+import { CloudObject, CloudQuery, CloudUser } from 'src/lib/ncloud';
|
|
|
import { ModalController } from '@ionic/angular/standalone';
|
|
|
import { openUserLoginModal } from 'src/lib/user/modal-user-login/modal-user-login.component';
|
|
|
import { openUserEditModal } from 'src/lib/user/modal-user-edit/modal-user-edit.component';
|
|
|
import { IonMenu, IonMenuButton } from '@ionic/angular/standalone';
|
|
|
+import { IonThumbnail } from '@ionic/angular/standalone';
|
|
|
+import { CommonModule } from '@angular/common';
|
|
|
+import { IonModal } from '@ionic/angular/standalone';
|
|
|
+import { IonAlert } from '@ionic/angular/standalone';
|
|
|
|
|
|
addIcons({ settingsOutline, chatbubbleEllipsesOutline, documentTextOutline, calendarOutline, chatbubbleOutline, personOutline})
|
|
|
|
|
@@ -20,10 +24,15 @@ addIcons({ settingsOutline, chatbubbleEllipsesOutline, documentTextOutline, cale
|
|
|
standalone: true,
|
|
|
imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,
|
|
|
IonButtons, IonIcon, IonCard, IonCardHeader, IonCardTitle, IonCardContent, IonList, IonItem, IonLabel,IonButton,
|
|
|
- IonMenu, IonMenuButton
|
|
|
+ IonMenu, IonMenuButton,
|
|
|
+ IonThumbnail, CommonModule,
|
|
|
+ IonModal, IonAlert
|
|
|
],
|
|
|
})
|
|
|
export class Tab3Page {
|
|
|
+
|
|
|
+ alertButtons = ['Action'];
|
|
|
+
|
|
|
currentUser:CloudUser|undefined
|
|
|
constructor(private modalCtrl:ModalController) {
|
|
|
this.currentUser = new CloudUser();
|
|
@@ -65,4 +74,19 @@ export class Tab3Page {
|
|
|
//console.log("setTagsValue",ev);
|
|
|
this.editTags=ev;
|
|
|
}
|
|
|
+
|
|
|
+ ngOnInit() {
|
|
|
+ // 生命周期:页面加载后,运行专家列表加载函数
|
|
|
+ this.loadExpertList()
|
|
|
+ }
|
|
|
+
|
|
|
+ // 创建用于数据列表存储的属性
|
|
|
+ expertList:Array<CloudObject> = []
|
|
|
+ // 查询并加载医生列表的函数
|
|
|
+ async loadExpertList(){
|
|
|
+ let query = new CloudQuery("Expect");
|
|
|
+ this.expertList = await query.find()
|
|
|
+ console.log(this.expertList)
|
|
|
+ }
|
|
|
+
|
|
|
}
|