123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- import { Component, OnInit } from '@angular/core';
- import { IonHeader, IonToolbar, IonTitle, IonContent, IonList, IonItem, IonLabel, IonAvatar, IonButton, IonChip, IonIcon, IonBadge, IonText, IonCard, IonSegmentButton, IonSegment, IonCol, IonRow, IonGrid } from '@ionic/angular/standalone';
- import { ExploreContainerComponent } from '../../explore-container/explore-container.component';
- import { addIcons } from 'ionicons';
- import { airplane, bluetooth, call, wifi } from 'ionicons/icons';
- import { Router } from '@angular/router';
- import { CommonModule } from '@angular/common';
- import { FormsModule } from '@angular/forms';
- addIcons({ airplane, bluetooth, call, wifi });
- interface Doctor {
- avatar: string;
- name: string;
- title: string;
- department: string;
- hospital: string;
- hospitalLevel: string;
- hospitalType: string;
- expertise: string;
- rating: number;
- consultations: string;
- recommendations: number;
- prices: {
- text: number;
- voice: number;
- video: number;
- }
- }
- @Component({
- selector: 'inquiry-human',
- templateUrl: './inquiry-human.component.html',
- styleUrls: ['./inquiry-human.component.scss'],
- standalone: true,
- imports: [
- IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,CommonModule,
- IonLabel,IonItem,IonList,IonAvatar,IonLabel,IonButton,IonChip,IonIcon,IonBadge,
- IonText,IonCard,IonSegment,IonSegmentButton, FormsModule,IonCol,IonRow,IonGrid
- ]
- })
- export class InquiryHumanComponent implements OnInit {
- constructor(
- private router: Router
- ) { }
- ngOnInit() {}
- back:string = "<";
- backhome(){
- this.router.navigate(['/tabs/tab1']);
- }
- selectedSegment = '全部';
- segments = ['全部', '妇科', '儿科', '皮肤性病科', '内科',];
-
- doctors: Doctor[] = [
- {
- avatar: 'https://app.fmode.cn/dev/jxnu/202226701019/doctor7.png',
- name: '张伟',
- title: '主任医师',
- department: '消化内科',
- hospital: '首都医科大学附属北京友谊..',
- hospitalLevel: '三甲',
- hospitalType: '百强医院',
- expertise: '擅长:结肠息肉和息肉病、胃息肉、幽门螺杆菌感染、慢性胃炎、胃食管反流、慢性萎缩性胃炎、糜烂性胃炎...',
- rating: 5.0,
- consultations: '1.1万',
- recommendations: 100,
- prices: {
- text: 100,
- voice: 150,
- video: 300
- },
- },
- {
- avatar: 'https://app.fmode.cn/dev/jxnu/202226701019/doctor6.png',
- name: '张伟',
- title: '主任医师',
- department: '消化内科',
- hospital: '首都医科大学附属北京友谊..',
- hospitalLevel: '三甲',
- hospitalType: '百强医院',
- expertise: '擅长:结肠息肉和息肉病、胃息肉、幽门螺杆菌感染、慢性胃炎、胃食管反流、慢性萎缩性胃炎、糜烂性胃炎...',
- rating: 5.0,
- consultations: '1.1万',
- recommendations: 100,
- prices: {
- text: 100,
- voice: 150,
- video: 300
- },
- },{
- avatar: 'https://app.fmode.cn/dev/jxnu/202226701019/doctor5.png',
- name: '张伟',
- title: '主任医师',
- department: '消化内科',
- hospital: '首都医科大学附属北京友谊..',
- hospitalLevel: '三甲',
- hospitalType: '百强医院',
- expertise: '擅长:结肠息肉和息肉病、胃息肉、幽门螺杆菌感染、慢性胃炎、胃食管反流、慢性萎缩性胃炎、糜烂性胃炎...',
- rating: 5.0,
- consultations: '1.1万',
- recommendations: 100,
- prices: {
- text: 100,
- voice: 150,
- video: 300
- },
- },{
- avatar: 'https://app.fmode.cn/dev/jxnu/202226701019/doctor7.png',
- name: '张伟',
- title: '主任医师',
- department: '消化内科',
- hospital: '首都医科大学附属北京友谊..',
- hospitalLevel: '三甲',
- hospitalType: '百强医院',
- expertise: '擅长:结肠息肉和息肉病、胃息肉、幽门螺杆菌感染、慢性胃炎、胃食管反流、慢性萎缩性胃炎、糜烂性胃炎...',
- rating: 5.0,
- consultations: '1.1万',
- recommendations: 100,
- prices: {
- text: 100,
- voice: 150,
- video: 300
- },
- }
- ];
- goToDoctorDetail(doctor: Doctor) {
- // this.router.navigate(['/doctor-detail'], { state: { doctor: doctor } });
- }
- segmentChanged(event: any) {
- this.selectedSegment = event.detail.value;
- console.log(this.selectedSegment);
- }
-
- }
|