|
@@ -173,6 +173,7 @@ import { genTextPortrait } from '../../../utils/portrait'
|
|
|
import { getOneWeekText, getNextSevenDate } from '../../../utils/date'
|
|
|
import { showToast } from 'vant'
|
|
|
import {fetchDoctorComments} from "../../../api/comment";
|
|
|
+import Cookies from 'js-cookie'
|
|
|
|
|
|
const router = useRouter()
|
|
|
const deptCode = router.currentRoute.value.params.dept
|
|
@@ -215,8 +216,8 @@ const pmSectionLabel = [
|
|
|
]
|
|
|
const beforeConfirmAppointment = (item) => {
|
|
|
currentAppointmentItem.value = item
|
|
|
- currentAppointmentItem.value.deptCode = data.doctorInfo.deptCode
|
|
|
- currentAppointmentItem.value.deptName = data.doctorInfo.deptName
|
|
|
+ currentAppointmentItem.value.deptCode = Cookies.get('appointmentDeptCode')
|
|
|
+ currentAppointmentItem.value.deptName = Cookies.get('appointmentDeptName')
|
|
|
currentAppointmentItem.value.date = data.date
|
|
|
currentAppointmentItem.value.week = weekText.value
|
|
|
if (item.ampm !== '上午' && item.ampm !== '下午') {
|