551f9e06 by yangjianbin

init

1 parent 523ef211
......@@ -2,6 +2,7 @@
<body>
<form action="" id="form1">
<input type="hidden" name="orderId" value="<?=$id?>">
<div class="panel panel-default mb-20">
<div class="panel-body cl">
<div class="row cl">
......@@ -34,7 +35,7 @@
<div class="row cl col-sm-12">
<div class="col-sm-2">
<button class="btn btn-primary btn-block" onclick="save();">保存</button>
<button class="btn btn-primary btn-block" onclick="pass();">保存</button>
</div>
</div>
......@@ -42,7 +43,35 @@
</body>
<script>
function pass() {
var data = $("#form1").serializeJson();
$.ajax({
type: 'post',
url: apiBaseUrl + 'audit/phoneAudit/record',
cache: false,
data: JSON.stringify(data),
dataType: 'json',
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.alert('操作成功');
}
if(!data.code){
setTimeout(function () {
layer_close();
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
})
}
layer_close();
</script>
</html>
\ No newline at end of file
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!