Commit 60533860 authored by agping's avatar agping

商铺查看日志 加载图标

parent d464ab89
......@@ -24,6 +24,18 @@
.clear{
clear: both;
}
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: 50px;
margin-top: -150px;;
overflow: hidden;
display: none;
}
</style>
<div id="page-content-wrapper">
<div class="container">
......@@ -97,7 +109,10 @@
</div>
</div>
</div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
......
......@@ -60,7 +60,9 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home
data: params,
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) {
if(typeof data === 'object') {
......@@ -84,6 +86,7 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home
alert('error');
},
complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
if(textStatus === 'timeout') {
alert('请求超时');
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment