//自定页
layer.open({
type: 1,
skin: 'layui-layer-demo', //样式类名
closeBtn: 0, //不显示关闭按钮
anim: 2,
shadeClose: true, //开启遮罩关闭
content: $('#js-dialog-template').html()
});
<script id="js-dialog-template" type="text/html">
<div>
<lable>你好</lable>
<br>
<input type="name" value="你好">
</div>
</script>