diff --git a/src/api/appointment.ts b/src/api/appointment.ts index a237479..31b645c 100644 --- a/src/api/appointment.ts +++ b/src/api/appointment.ts @@ -40,5 +40,5 @@ export const getAppointmentOrder = ({ id, date, name }: any) => export const getAppointmentHistory = (data: any) => instance({ url: '/appointment/setAppointmentOrder', method: 'post', - data: {data} + data: data }) diff --git a/src/api/myself.ts b/src/api/myself.ts index b31a7ce..5d95c10 100644 --- a/src/api/myself.ts +++ b/src/api/myself.ts @@ -8,6 +8,9 @@ export const getAllDiagnosis = () => export const getMyConsultation = () => instance.get('/center/logs/consult') +export const getMyConsultationDetail = (number: number) => + instance.post(`/center/logs/getConsult?number=${number}`) + // 我的收藏 export const getHospitalCollector = () => instance.get('/center/collection/hospital') diff --git a/src/assets/banner/hospital.png b/src/assets/banner/hospital.png new file mode 100644 index 0000000..750971b Binary files /dev/null and b/src/assets/banner/hospital.png differ diff --git a/src/assets/banner/hospital2.png b/src/assets/banner/hospital2.png new file mode 100644 index 0000000..2c17471 Binary files /dev/null and b/src/assets/banner/hospital2.png differ diff --git a/src/assets/banner/hospital3.png b/src/assets/banner/hospital3.png new file mode 100644 index 0000000..3949aea Binary files /dev/null and b/src/assets/banner/hospital3.png differ diff --git a/src/assets/banner/hospital4.png b/src/assets/banner/hospital4.png new file mode 100644 index 0000000..cffcd1f Binary files /dev/null and b/src/assets/banner/hospital4.png differ diff --git a/src/components/DoctorComponents.vue b/src/components/DoctorComponents.vue index c2c2dfd..8e2922b 100644 --- a/src/components/DoctorComponents.vue +++ b/src/components/DoctorComponents.vue @@ -34,22 +34,22 @@ const loading = show -
+
- {{ prop.info.doctorName}} + {{ prop.info.doctorName}} {{ prop.info.level }}
-
- {{ prop.info.hospitalName }} +
+ {{ prop.info.hospitalName }} {{ prop.info.name }}
{{ prop.info.briefly }}
- 预约 + 预约
@@ -77,7 +77,7 @@ const loading = show display: flex; flex-direction: column; justify-content: space-between; - width: 10%; + width: 70%; height: 100%; font-size: 12px; font-weight: 600; @@ -88,6 +88,17 @@ const loading = show overflow: hidden; text-overflow: ellipsis; } + .c1 { + margin-right: 8px; + width: 100px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis + } + } + .btn { + position: absolute; + right: 0; } } diff --git a/src/stores/modules/user.ts b/src/stores/modules/user.ts index f8134e4..18e00f7 100644 --- a/src/stores/modules/user.ts +++ b/src/stores/modules/user.ts @@ -25,7 +25,7 @@ export const useUserStore = defineStore('user', () => { return { token, setToken, userInfo, getUserInfo, setUserInfo } }, -{ - persist: true -} +// { +// persist: true +// } ) diff --git a/src/views/1_login/LoginPage.vue b/src/views/1_login/LoginPage.vue index 22acf25..bd38357 100644 --- a/src/views/1_login/LoginPage.vue +++ b/src/views/1_login/LoginPage.vue @@ -6,8 +6,8 @@ import { getCodeApi, loginApi } from '@/api/login' import type { LoginParamsType } from '@/types' const form = ref({ - phone: '13178594493', - code: '1234' + phone: '', + code: '' }) const rules = ref({ diff --git a/src/views/3_home/_HomePage.vue b/src/views/3_home/_HomePage.vue index 11cb328..eb842ad 100644 --- a/src/views/3_home/_HomePage.vue +++ b/src/views/3_home/_HomePage.vue @@ -78,10 +78,16 @@ onMounted(async () => { - + - + + + + + + + diff --git a/src/views/3_home/components/HomeTitle.vue b/src/views/3_home/components/HomeTitle.vue index 692623c..d7b677b 100644 --- a/src/views/3_home/components/HomeTitle.vue +++ b/src/views/3_home/components/HomeTitle.vue @@ -21,9 +21,9 @@ watchEffect(() => { const consultList = Object.values(groupedData).map((group: any) => { return group.sort((a: any, b: any) => a.id - b.id) }) - for (let i = 0; i < consultList.length; i++) { - list.value.push(consultList[i][0].expertise) - } + + list.value = consultList.map((group: any) => group[0].expertise) + list.value.unshift('严选专家') } }) diff --git a/src/views/4_hospital/HospitalDetail.vue b/src/views/4_hospital/HospitalDetail.vue index c4f6c5c..03e72fb 100644 --- a/src/views/4_hospital/HospitalDetail.vue +++ b/src/views/4_hospital/HospitalDetail.vue @@ -111,7 +111,7 @@ const goToAppointmentSource = (department: string) => { - +