<%include('pageHeader',header)%>
<%=param.doctor.name%>
<%=param.depart?param.depart.name: ''%> <%if (param.depart && param.depart.name) {%>       <%}%> <%=(param.doctor && param.doctor.title) ? param.doctor.title : ''%>
<%if (pageName === 'ExpertIndexView') {%>
医生排班
医生详情
<%}%>
医生简介
<%=param.doctor.introduction ? param.doctor.introduction : '暂无'%>
医生擅长
<%=param.doctor.speciality ? param.doctor.speciality : '暂无'%>
门诊地点
<%=param.doctor.location ? param.doctor.location : '暂无'%>
门诊时间
<%=param.doctor.expertTimePrice ? param.doctor.expertTimePrice : '暂无'%>
<%if (pageName !== 'ExpertIndexView') {%>
快速挂号
快速预约
<%}%> <% var regMap = { 'MORNING': '上午', 'AFTERNOON': '下午' }; if (pageName === 'ExpertIndexView') {%> <%if (scheduleList && scheduleList.length > 0) {%>
<%for (var i = 0; i < scheduleList.length; i++) { if (scheduleList[i].times && scheduleList[i].times.length>0){ var schedule = scheduleList[i],isLast = (i === scheduleList.length-1)? 'last-child': '', times = schedule.times; if(!times || times.length === 0){ continue; } %>
<%=scheduleList[i].regDate + ' '%> <%=scheduleList[i].weekDay%><%=regMap[scheduleList[i].regTime]%> (剩余号源:<%=scheduleList[i].leftNum + '/' + scheduleList[i].totalNum%>)
<%for(var j = 0;j var time = times[j];%> <%if(j%4 === 0){%>
<%} if(time.timeline && time.timeline.length > 5){ time.timeline = time.timeline.substring(0,5); var len = time.timeline.length; var lastStr = time.timeline.substring(len-1, len); if( lastStr === ':' || lastStr === ':'){ time.timeline = time.timeline.substring(0,4) } }%> <%if(time.leftNum > 0){%>
<%=time.numArea%>
<%=time.timeline%>
<%}else{%>
<%=time.numArea%>
<%=time.timeline%>
<%}%> <%if( j%4 === 3){%>
<%}%> <%if(j === times.length-1 && j%4 === 0){%>
<%}else if(j === times.length-1 && j%4 === 1){%>
<%}else if(j === times.length-1 && j%4 === 2){%>
<%}%> <%}%> <%}else{%>
<%for (var i = 0; i < scheduleList.length; i++) {%>
<%=scheduleList[i].regDate%>
<%=scheduleList[i].weekDay%><%=scheduleList[i].regTime === 'AFTERNOON' ? '下午' : '上午'%>
<%='¥'+scheduleList[i].price%>
<%if(scheduleList[i].leftNum && scheduleList[i].leftNum*1 !== 0){%>
<%= param.regType === 'REAL_TIME' ? '去挂号' : '去预约'%>
<%} else{%>
<%=scheduleList[i].remark%>
<%}%>
<%}%>
<%}%> <%}%>
<%}else{%>
没有专家排班
<%}%> <%}%>