示例1:

//调用inforshow_format_html("樊亦村","320961199012675678","女","15281199000");//传入数据//name……姓名//idcno……身份证//sex……性别//mobile……手机号码function inforshow_format_html(name,idcno,sex,mobile) {var dom = "";dom = "<div style='font-size:32px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;line-height:70px;'>" +"<div>姓名:" + name+"</div>" +"<div>身份证:" + idcno+"</div>" +"<div>性别:"+sex+"</div>" +"<div>手机号码:" + mobile+"</div>" +"</div>";return dom;}
示例2:

//调用inforshow_format_html();//无传入数据function inforshow_format_html(){var dom = "";dom = "<div style='font-size:32px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;line-height:70px;padding-left:20px'>" +"<div>1、请您使用二代身份证在本机办理居民健康卡。</div>"+"<div>2、本院诊疗卡将收取您的10元押金。</div>" +"<div>3、请您务必妥善保管您挂号时打印出的凭条,以便就诊、取药时使用。</div>" +"<div>4、请根据 自助设备上提示及时取出您的诊疗卡。</div>" +"</div>";return dom;}
示例3:

//调用inforshow_format_html("99889900");//cardNo……卡号function inforshow_format_html(cardNo) {var dom = "";dom = "<div style='font-size:32px;display:flex;flex-direction:column;justify-content:center;align-items:center;'>" +"<div>您已经办过卡,卡号是:<spans style='color:#386fc9'>" + cardNo + "</span></div>" +"<br/>" +"<div>点击确认进行补卡,补卡后<span style='color:red'>原卡作废</span></div>" +"<div style='margin-top:20px'>否则请点击返回按钮!</div>" +"</div>";return dom;}
示例4:



//调用://type……类型(success|failed)//pic……ICON图片名(路径:./h5/img/icon/inforshow)//content……文字内容// 传入的文字内容超过一行时将自动换行,如需强制换行,则在string中加入"<br/>"即可。content: inforshow_format_html("failed", "failed.svg", "操作失败"),content: inforshow_format_html("success", "success.svg", "操作成功"),content: inforshow_format_html("success", "left-arrow.svg","请按图示,插入您的医保卡"),//HTML代码(复制即可用)function inforshow_format_html(type, pic,content) {//获取当前分辨率信息var dpi = window.ZZH5.Dpi;var _img_width ="100px";if (dpi == "1024_768") {_img_width = "75px";}var dom = "";var iconUrl = "./h5/img/icon/inforshow/";var maincolor = "#386fc9";if (type == "success") {maincolor = "#386fc9";}if (type == "failed") {maincolor = "#a81503";}dom = "<div style='display:flex;flex-direction:column;justify-content:center;align-items:center;'>" +"<img src='" + iconUrl + pic + "' style='width:" + _img_width+";margin-bottom:10px'/>" +"<div style='text-align:center;font-size:40px;color:" + maincolor + "'>" + content + "</div>" +"</div>";return dom;}
示例5:
示例6:
