根据错误时显示是表单问题=》form没有使用=》所以需要进行form实例化=》
@section('footer-js') <script> layui.use(['form'], function(){ var form = layui.form; }); </script> @stop