示例1:
//调用
regList_content_html({ name: "华佗", position: "副主任医师", regDate: "上午", regFee: '50.00' });
function regList_content_html(docInfor) {
return "<div style='display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;font-size:28px'>" +
"<div style='display:flex;flex-direction:row;align-items:center;justify-content:space-between;'>" +
"<div>" +
"<span style='font-weight:bold'>" + docInfor.name + "</span>" +
"<span>(" + docInfor.position + ")</span>" +
"</div>" +
"</div>" +
"<div style='color:#000;display:block;font-size:20px;margin-top:5px;margin-bottom:5px;;border-radius:5px'>" + docInfor.regDate + "</div>" +
"<div>" +
"<span style='color:red;font-size:24px;'>挂号费:" + docInfor.regFee + "元</span>" +
"</div>" +
"</div>";
}
示例2:
//调用
regList_content_html2({ name: "华佗", position: "副主任医师", regDate: "上午", regFee: '50.00' });
function regList_content_html2(docInfor) {
return "<div style='display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;font-size:28px'>" +
"<div style='display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:15px'>" +
"<div>" +
"<span style='font-weight:bold'>" + docInfor.name + "</span>" +
"<span>(" + docInfor.position + ")</span>" +
"</div>" +
"</div>" +
"<div>" +
"<span style='color:#fff;font-size:24px;margin-right:10px;background-color:#fd2121;padding:5px;border-radius:5px'>" + docInfor.regDate + "</span>" +
"<span style='color:red;font-size:24px;'>挂号费:" + docInfor.regFee + "元</span>" +
"</div>" +
"</div>";
}
示例3:
//调用
diyContent: regList_content_html3({ name: '张春华', position: '主任医师', dept: '角膜病门诊', num: '200', regDate: '早白', regFee: '14.50', goodat: '弱视、斜视' }),
function regList_content_html3(docInfor) {
return "<div style='display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;font-size:18px;line-height:18px'>" +
"<div style='display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:1px'>" +
"<div>" +
"<span style='font-weight:bold'>" + docInfor.name + "</span>" +
"<span>(" + docInfor.position + ")</span>" +
"</div>" +
"</div>" +
"<div style='display:flex;flex-direction:column;justify-content:center;'>" +
"<span style='font-size:14px;'>" + docInfor.dept+"</span>"+
"<span style='font-size:14px;'>余号:" + docInfor.num + "</span>" +
"<span style='color:red;font-size:16px;'>" + docInfor.regDate + " 挂号费:"+docInfor.regFee + "元</span>" +
// "<span style='color:red;font-size:16px;'></span>" +
"<span style='font-size:14px;'>擅长:" + docInfor.goodat + "</span>" +
"</div>" +
"</div>";
}