2a98bf62 by yangjianbin

init

1 parent 5729705b
......@@ -88,16 +88,18 @@
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
alert(data.msg);
layer.alert(data.msg);
} else if (data.code != 0) {
alert('请求失败');
layer.alert('请求失败');
} else {
alert('请求成功');
layer.alert('请求成功');
}
if(!data.code) {
layer_close();
}
},
error: function () {
alert("请求失败")
layer.alert("请求失败")
}
})
......
......@@ -69,15 +69,15 @@
contentType: "application/json; charset=UTF-8",
success:function(data){
if(data.msg){
alert(data.msg);
layer.alert(data.msg);
} else if(data.code != 0){
alert('请求失败');
layer.alert('请求失败');
} else {
alert('请求成功');
layer.alert('请求成功');
}
},
error:function(){
alert("请求失败")
layer.alert("请求失败")
}
})
......
......@@ -16,7 +16,7 @@
<div class="flow pb-20">
</div>
<div>
<button onclick="loadIframe('<?=site_url('/work')?>', '全部进件');" class="btn btn-primary size-M radius mr-20">返回【进行记录】</a>
<button onclick="loadIframe('<?=site_url('/work')?>', '全部进件');" class="btn btn-primary size-M radius mr-20">返回【进行记录】</button>
<button onclick="loadIframe('<?=site_url('/work/add')?>', '开始进件');" class="btn btn-primary size-M radius ml-20">继续【添加进行】</button>
</div>
</div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!