var form1 = $(".form1").serializeArray()
html
<div id="zan_gua" style="width:85%;display: none">
<form class="layui-form form1" action="" style="margin-top: 5%">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">请选择</label>
<div class="layui-input-inline">
<select name="pending" id="pending" lay-verify="required" lay-search="">
<option value="">请选择</option>
<option value="1">暂挂</option>
<option value="2">挺期1天</option>
<option value="3">挺期2天</option>
<option value="4">挺期3天</option>
<option value="5">挺期4天</option>
<option value="6">挺期5天</option>
<option value="7">挺期6天</option>
<option value="8">挺期7天</option>
</select>
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">原因</label>
<div class="layui-input-block">
<textarea id="pendingtext" name="pendingtext" placeholder="请输入内容" class="layui-textarea"></textarea>
</div>
</div>
<div style="position:absolute;width:100%;display: flex;justify-content: center">
<div class="cdj_paidans">确定暂挂</div>
</div>
</div>
</form>
</div>