Commit b63f6917 authored by agping's avatar agping

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

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