Commit b63f6917 authored by agping's avatar agping

客户列表 客户跟进列表 商铺列表 商铺跟进列表 添加 加载图标

parent e270eb70
...@@ -49,7 +49,18 @@ ...@@ -49,7 +49,18 @@
.ld-Marheight-city{ .ld-Marheight-city{
margin-top: 8px; margin-top: 8px;
} }
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -50px;
overflow: hidden;
display: none;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -171,4 +182,8 @@ ...@@ -171,4 +182,8 @@
</div> </div>
</div> </div>
</div> </div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
...@@ -168,6 +168,18 @@ ...@@ -168,6 +168,18 @@
line-height: 30px; line-height: 30px;
margin-left: -28px; margin-left: -28px;
} }
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -50px;
overflow: hidden;
display: none;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -576,3 +588,7 @@ ...@@ -576,3 +588,7 @@
</div> </div>
</div> </div>
</div> </div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
\ No newline at end of file
...@@ -342,6 +342,18 @@ ...@@ -342,6 +342,18 @@
.form-group-bottom{ .form-group-bottom{
margin-bottom: 9px; margin-bottom: 9px;
} }
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -50px;
overflow: hidden;
display: none;
}
</style> </style>
<!--导航star--> <!--导航star-->
...@@ -1324,3 +1336,7 @@ ...@@ -1324,3 +1336,7 @@
</div> </div>
<!-- /.modal --> <!-- /.modal -->
</div> </div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
\ No newline at end of file
...@@ -314,6 +314,18 @@ ...@@ -314,6 +314,18 @@
.btn-guanbi{ .btn-guanbi{
margin-left: 20px; margin-left: 20px;
} }
/*加载图片*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -50px;
overflow: hidden;
display: none;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -897,3 +909,7 @@ ...@@ -897,3 +909,7 @@
</div> </div>
<!-- /.modal --> <!-- /.modal -->
</div> </div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
...@@ -1505,7 +1505,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1505,7 +1505,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
beforeSend: function() {}, beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
...@@ -1529,10 +1531,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1529,10 +1531,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
error: function() { error: function() {
alert('error'); alert('error');
}, },
complete: function(xhr, textStatus){ complete: function(){
if(textStatus === 'timeout'){ $('#main_loading_pic').hide();
alert('请求超时');
};
} }
}); });
} }
......
...@@ -230,7 +230,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -230,7 +230,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
beforeSend: function() {}, beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
...@@ -248,10 +250,8 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css' ...@@ -248,10 +250,8 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
error: function() { error: function() {
alert('error'); alert('error');
}, },
complete: function(xhr, textStatus) { complete: function() {
if(textStatus === 'timeout') { $('#main_loading_pic').hide();
alert('请求超时');
};
} }
}); });
}, },
......
...@@ -1172,6 +1172,9 @@ if(data.code == 200) { ...@@ -1172,6 +1172,9 @@ if(data.code == 200) {
async: true, async: true,
data: params, data: params,
dataType: 'json', dataType: 'json',
beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) { success: function(data) {
$('#user_city_choose').show(); $('#user_city_choose').show();
var temp = document.getElementById('house_list_tpl').innerHTML; var temp = document.getElementById('house_list_tpl').innerHTML;
...@@ -1198,7 +1201,11 @@ if(data.code == 200) { ...@@ -1198,7 +1201,11 @@ if(data.code == 200) {
business.getList (el.num.current); business.getList (el.num.current);
} }
});*/ });*/
},
complete: function(){
$('#main_loading_pic').hide();
} }
}); });
}, },
getDistrict: function(fn) { getDistrict: function(fn) {
......
...@@ -1782,6 +1782,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1782,6 +1782,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
async: true, async: true,
data: params, data: params,
dataType: 'json', dataType: 'json',
beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
var temp = document.getElementById('user_list_tpl').innerHTML; var temp = document.getElementById('user_list_tpl').innerHTML;
...@@ -1791,12 +1794,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1791,12 +1794,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
/*分页代码*/ /*分页代码*/
add_page(data.data.total, pageNo, user.pageSize, user.getList); add_page(data.data.total, pageNo, user.pageSize, user.getList);
$("#total_page").html(data.data.total); $("#total_page").html(data.data.total);
} else { } else {
alert(data.msg); alert(data.msg);
} }
},
complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
} }
}); });
}, },
......
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