|
@@ -93,9 +93,7 @@ var sa = {
|
|
|
// 将调用者的配置和默认配置合并
|
|
|
cfg = sa.extendJson(cfg, defaultCfg);
|
|
|
|
|
|
- // 打印请求地址和参数, 以便调试
|
|
|
- console.log("请求地址:" + cfg.baseUrl + url);
|
|
|
- console.log("请求参数:" + JSON.stringify(data));
|
|
|
+
|
|
|
|
|
|
// 开始显示loading图标
|
|
|
if(cfg.msg != null){
|
|
@@ -118,7 +116,6 @@ var sa = {
|
|
|
xhr.setRequestHeader('satoken', sessionStorage.runAsToken || sessionStorage.satoken || localStorage.satoken || '');
|
|
|
},
|
|
|
success: function(res){
|
|
|
- console.log('返回数据:', res);
|
|
|
setTimeout(function() {
|
|
|
sa.hideLoading();
|
|
|
// 如果相应的处理函数存在
|
|
@@ -168,15 +165,11 @@ var sa = {
|
|
|
// 开始loding
|
|
|
sa.loading(cfg.msg);
|
|
|
|
|
|
- // 打印请求地址和参数, 以便调试
|
|
|
- console.log("======= 模拟ajax =======");
|
|
|
- console.log("请求地址:" + cfg.baseUrl + url);
|
|
|
- console.log("请求参数:" + JSON.stringify(data));
|
|
|
+
|
|
|
|
|
|
// 模拟ajax的延时
|
|
|
setTimeout(function() {
|
|
|
sa.hideLoading(); // 隐藏掉转圈圈
|
|
|
- console.log('返回数据:', cfg.res);
|
|
|
success200(cfg.res);
|
|
|
}, cfg.sleep)
|
|
|
};
|
|
@@ -1094,7 +1087,6 @@ var sa = {
|
|
|
if(window.layer_title_last_click_time) {
|
|
|
var cz = new Date().getTime() - window.layer_title_last_click_time;
|
|
|
if(cz < 250) {
|
|
|
- console.log('双击');
|
|
|
$(this).parent().find('.layui-layer-max').click();
|
|
|
}
|
|
|
}
|
|
@@ -1140,7 +1132,6 @@ var sa = {
|
|
|
|
|
|
// 如果未登录,则强制跳转到登录
|
|
|
me.checkLogin = function(not_login_url){
|
|
|
- console.log(me.getCurrUser());
|
|
|
if(me.getCurrUser().id == 0) {
|
|
|
location.href= not_login_url || '../../login.html';
|
|
|
throw '未登录,请先登录';
|