90f6b839 by 任超

style:注册

1 parent 3bf4207e
$(function () {
layui.use(['form'], function () {
var form = layui.form
form.on('select(type)', function (data) {
console.log(data);
})
//监听提交
form.on('submit(demo1)', function (data) {
register(data.field)
......@@ -12,7 +9,7 @@ $(function () {
})
})
// 获取受理流程信息
// 注册
function register(formData) {
$.ajax({
url: portal.api_url + "/protal/users/insert",//路径
......@@ -28,6 +25,8 @@ function register(formData) {
})
window.open("../index.html","_self")
window.history.go(-1)
}else {
layer.msg(result.message);
}
}
});
......
......@@ -31,7 +31,7 @@
<div class="layui-form-item">
<label class="layui-form-label">证件种类</label>
<div class="layui-input-block">
<select name="interest" lay-filter="type">
<select name="zjzl" lay-filter="type">
<option value="0">身份证</option>
</select>
</div>
......@@ -40,14 +40,14 @@
<div class="layui-form-item">
<label class="layui-form-label">身份证</label>
<div class="layui-input-block">
<input type="text" name="idcard" placeholder="请输入身份证" class="layui-input">
<input type="text" name="zjhm" placeholder="请输入身份证" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">户籍</label>
<div class="layui-input-block">
<input type="text" name="household" disabled="disabled" class="layui-input">
<input type="text" name="hjszss" disabled="disabled" class="layui-input">
</div>
</div>
<div class="layui-form-item">
......