%if (data && data.length > 0) {
for (var i = 0; i < data.length; i++) {
var item = data[i];
%>
<%if(type == 'pay'){%>
<%if (item.status == 'INIT_WAIT') {%>
<%} else if (item.status == 'INIT_Y') {
if (item.expressPayStatus != 'PAID_SUCCESS' && item.copyPayStatus != 'PAID_SUCCESS') {%>
<%} else if (item.expressPayStatus == 'PAID_SUCCESS') {%>
<%} else if (item.copyPayStatus == 'PAID_SUCCESS'){%>
<%}%>
<%} else if (item.status == 'INIT_FAIL') {%>
<%} else if (item.status == 'WAIT_SEND') {%>
<%} else if (item.status == 'SENDRD') {%>
<%}%>
姓名: <%=item.patientName%>
订单号: <%=item.businessNO%>
预约时间: <%=item.createTime%>
<%}else{%>
<%if (item.status == 'INIT_WAIT') {%>
<%} else if (item.status == 'INIT_Y') {
if (item.expressPayStatus != 'PAID_SUCCESS' && item.copyPayStatus != 'PAID_SUCCESS') {%>
<%} else if (item.expressPayStatus == 'PAID_SUCCESS') {%>
<%} else if (item.copyPayStatus == 'PAID_SUCCESS'){%>
<%}%>
<%} else if (item.status == 'INIT_FAIL') {%>
<%} else if (item.status == 'WAIT_SEND') {%>
<%} else if (item.status == 'SENDRD') {%>
<%}%>
姓名: <%=item.patientName%>
订单号: <%=item.businessNO%>
预约时间: <%=item.createTime%>
<%}%>
<%}%>
<%}else{%>