瀏覽代碼

在可挂号医生列表处添加医生头像。

lighter 4 年之前
父節點
當前提交
e5f00adaab

+ 2 - 2
src/api/appointment.js

@@ -47,11 +47,11 @@ export function getDoctorInfo(doctorCode, openId) {
   })
 }
 
-export function hasValidCovidAssessment(patientId) {
+export function hasValidCovidAssessment(patientId, deptCode) {
   return request({
     url: '/appointment/hasValidCovidAssessment',
     method: 'get',
-    params: { patientId },
+    params: { patientId, deptCode },
   })
 }
 

+ 1 - 1
src/views/hospital-service/appointment/AppointmentConfirm.vue

@@ -96,7 +96,7 @@ export default {
     }
     const confirmAppointment = () => {
       if (Cookies.get('appointmentDeptCode') !== '1260000') {
-        hasValidCovidAssessment(data.appointment.patientId).then((res) => {
+        hasValidCovidAssessment(data.appointment.patientId, Cookies.get('appointmentDeptCode')).then((res) => {
           if (res === 'no valid assessment') {
             router.push('/assessments/covid/' + data.appointment.patientId)
           } else {

+ 3 - 0
src/views/hospital-service/appointment/SelectDoctorAndDate.vue

@@ -27,6 +27,9 @@
     <div style="height: 5px"></div>
     <div v-for="(item, index) in data.doctorSources" :key="index">
       <van-cell center :title="item.doctorName + ' | ' + item.chargeType" is-link @click="toDoctorArangement(item)">
+        <template #icon>
+          <van-image round fit="cover" :src="'data:image/png;base64,' + item.portrait" />&nbsp;
+        </template>
         <template #label>
           <div :style="labelStyle" v-show="item.introduction">{{ item.introduction }}</div>
         </template>