2a98bf62 by yangjianbin

init

1 parent 5729705b
...@@ -88,16 +88,18 @@ ...@@ -88,16 +88,18 @@
88 contentType: "application/json; charset=UTF-8", 88 contentType: "application/json; charset=UTF-8",
89 success: function (data) { 89 success: function (data) {
90 if (data.msg) { 90 if (data.msg) {
91 alert(data.msg); 91 layer.alert(data.msg);
92 } else if (data.code != 0) { 92 } else if (data.code != 0) {
93 alert('请求失败'); 93 layer.alert('请求失败');
94 } else { 94 } else {
95 alert('请求成功'); 95 layer.alert('请求成功');
96 } 96 }
97 if(!data.code) {
97 layer_close(); 98 layer_close();
99 }
98 }, 100 },
99 error: function () { 101 error: function () {
100 alert("请求失败") 102 layer.alert("请求失败")
101 } 103 }
102 }) 104 })
103 105
......
...@@ -69,15 +69,15 @@ ...@@ -69,15 +69,15 @@
69 contentType: "application/json; charset=UTF-8", 69 contentType: "application/json; charset=UTF-8",
70 success:function(data){ 70 success:function(data){
71 if(data.msg){ 71 if(data.msg){
72 alert(data.msg); 72 layer.alert(data.msg);
73 } else if(data.code != 0){ 73 } else if(data.code != 0){
74 alert('请求失败'); 74 layer.alert('请求失败');
75 } else { 75 } else {
76 alert('请求成功'); 76 layer.alert('请求成功');
77 } 77 }
78 }, 78 },
79 error:function(){ 79 error:function(){
80 alert("请求失败") 80 layer.alert("请求失败")
81 } 81 }
82 }) 82 })
83 83
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 <div class="flow pb-20"> 16 <div class="flow pb-20">
17 </div> 17 </div>
18 <div> 18 <div>
19 <button onclick="loadIframe('<?=site_url('/work')?>', '全部进件');" class="btn btn-primary size-M radius mr-20">返回【进行记录】</a> 19 <button onclick="loadIframe('<?=site_url('/work')?>', '全部进件');" class="btn btn-primary size-M radius mr-20">返回【进行记录】</button>
20 <button onclick="loadIframe('<?=site_url('/work/add')?>', '开始进件');" class="btn btn-primary size-M radius ml-20">继续【添加进行】</button> 20 <button onclick="loadIframe('<?=site_url('/work/add')?>', '开始进件');" class="btn btn-primary size-M radius ml-20">继续【添加进行】</button>
21 </div> 21 </div>
22 </div> 22 </div>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!