Commit f6575a7d authored by agping's avatar agping

去掉登录接口

parent 1b06706a
...@@ -96,7 +96,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -96,7 +96,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_doc.on('click', '#bargaininfo_commission_add_btn>img', function(e) { _doc.on('click', '#bargaininfo_commission_add_btn>img', function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
checkLogin(); // checkLogin();
if($('.detail-modal-bargaininfo-commission-addarea>div').length >= 5) { if($('.detail-modal-bargaininfo-commission-addarea>div').length >= 5) {
alert('最多添加5条'); alert('最多添加5条');
return false; return false;
...@@ -109,7 +109,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -109,7 +109,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_doc.on('click', '.detail-modal-bargaininfo-commission-cancel-pic', function(e) { _doc.on('click', '.detail-modal-bargaininfo-commission-cancel-pic', function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
checkLogin(); // checkLogin();
$(this).parent().remove(); $(this).parent().remove();
}); });
//城市 区域 二级联动 筛选 //城市 区域 二级联动 筛选
...@@ -154,7 +154,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -154,7 +154,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params.type = 3; params.type = 3;
}; };
checkLogin(); // checkLogin();
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ //禁用 $.ajax({ //禁用
'type': 'POST', 'type': 'POST',
...@@ -169,6 +169,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -169,6 +169,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
success: function(data) { success: function(data) {
if(data.code != 200) { if(data.code != 200) {
alert("禁用失败!") alert("禁用失败!")
}else{
alert(data.msg)
} }
} }
}); });
...@@ -198,7 +200,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -198,7 +200,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//上一页 获取客户详情 //上一页 获取客户详情
_doc.on('click', '#user_up', function() { _doc.on('click', '#user_up', function() {
user_type='last'; user_type='last';
checkLogin(); // checkLogin();
user.getInfor(); user.getInfor();
}); });
//下一页 获取客户详情 //下一页 获取客户详情
...@@ -255,7 +257,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -255,7 +257,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}); });
$(document).delegate(".genj_ure", "click", function() { $(document).delegate(".genj_ure", "click", function() {
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
checkLogin(); // checkLogin();
user.getGenjinLabel(); user.getGenjinLabel();
}); });
...@@ -277,12 +279,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -277,12 +279,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$(document).delegate("#edit_add", "click", function(e) { $(document).delegate("#edit_add", "click", function(e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
checkLogin(); // checkLogin();
user.edit_add(); user.edit_add();
}); });
// 批量修改客方 // 批量修改客方
$(document).delegate("#modify_add", "click", function() { $(document).delegate("#modify_add", "click", function() {
checkLogin(); // checkLogin();
user.modify_add(); user.modify_add();
}); });
// 客户编辑 修改记录 // 客户编辑 修改记录
...@@ -296,7 +298,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -296,7 +298,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$('#note_look').val(''); $('#note_look').val('');
$('.look-shop').val(''); $('.look-shop').val('');
$('.look-shop').removeAttr('data-id'); $('.look-shop').removeAttr('data-id');
checkLogin(); // checkLogin();
user.Caozuo(); user.Caozuo();
}); });
...@@ -324,7 +326,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -324,7 +326,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.detailTabIndex = 0; user.detailTabIndex = 0;
$('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide(); $('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide();
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容 $('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
checkLogin(); // checkLogin();
user.getSiteTagsEdit(); user.getSiteTagsEdit();
}); });
...@@ -360,7 +362,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -360,7 +362,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.agent_id=''; user.agent_id='';
$(".user-ul").html(''); $(".user-ul").html('');
} else { } else {
checkLogin(); // checkLogin();
user.search_phone(); user.search_phone();
} }
}); });
...@@ -369,14 +371,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -369,14 +371,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user.user_id_edit_introduce=''; user.user_id_edit_introduce='';
$(".user-ul-edit-introduce").html(''); $(".user-ul-edit-introduce").html('');
} else { } else {
checkLogin(); // checkLogin();
user.introduce_userIdEdit(); user.introduce_userIdEdit();
} }
}); });
//拨打手机号 //拨打手机号
$(document).on("click", ".user_call", function() { $(document).on("click", ".user_call", function() {
if(is_outpace_call_num == '0'){ if(is_outpace_call_num == '0'){
checkLogin(); // checkLogin();
user.user_Call(); user.user_Call();
}else{ }else{
layerTipsX('该客户今日已达拨打上限,请明日再来'); layerTipsX('该客户今日已达拨打上限,请明日再来');
...@@ -385,14 +387,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -385,14 +387,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//没打通手机号 //没打通手机号
$(document).on("click", "#unbind_call", function() { $(document).on("click", "#unbind_call", function() {
user.unbind_Call(); user.unbind_Call();
checkLogin(); // checkLogin();
}); });
//约带看 保存 //约带看 保存
$(document).on("click", ".save-look", function() { //手机号搜索客方 $(document).on("click", ".save-look", function() { //手机号搜索客方
user.save_look(); user.save_look();
checkLogin(); // checkLogin();
}); });
//约带看 商铺选择 //约带看 商铺选择
...@@ -444,7 +446,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -444,7 +446,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$(document).delegate(".submit_edit", "click", function(e) { //提交 $(document).delegate(".submit_edit", "click", function(e) { //提交
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
checkLogin(); // checkLogin();
user.Submit_follow(); user.Submit_follow();
}); });
// =============下拉列表======================== // =============下拉列表========================
...@@ -530,7 +532,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -530,7 +532,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_btnSave.click(function(e){ _btnSave.click(function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
checkLogin(); // checkLogin();
genjinSave(); genjinSave();
}); });
...@@ -1451,7 +1453,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1451,7 +1453,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//客户编辑 修改记录 //客户编辑 修改记录
Caozuorecord: function() {//获取客户动态 Caozuorecord: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url:'/broker/useraction_search', url:'/broker/useraction_search',
type: 'POST', type: 'POST',
...@@ -1481,7 +1483,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1481,7 +1483,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}, },
//筛选 //筛选
getList: function(pageNo) { getList: function(pageNo) {
checkLogin(); // checkLogin();
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
user.pageNo = pageNo; user.pageNo = pageNo;
var _startDateObj = $('#start_date'), var _startDateObj = $('#start_date'),
......
...@@ -218,7 +218,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -218,7 +218,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert('该客户在保护期内,暂不能收藏'); alert('该客户在保护期内,暂不能收藏');
return; return;
} }
checkLogin(); // checkLogin();
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ //禁用 $.ajax({ //禁用
'type': 'POST', 'type': 'POST',
...@@ -298,7 +298,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -298,7 +298,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.type = 3; params.type = 3;
}; };
checkLogin(); // checkLogin();
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ //禁用 $.ajax({ //禁用
'type': 'POST', 'type': 'POST',
...@@ -1397,7 +1397,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1397,7 +1397,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$('#phone_title').html(user_info_obj.phone); $('#phone_title').html(user_info_obj.phone);
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.user_id = user.user_id; params.user_id = user.user_id;
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/broker/bindAXB', 'url': '/broker/bindAXB',
...@@ -1461,7 +1461,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1461,7 +1461,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.referrer_source = user.referrer_source; params.referrer_source = user.referrer_source;
} }
params.user_label = $("#user_label_edit").val(); params.user_label = $("#user_label_edit").val();
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
'type': 'POST', 'type': 'POST',
'url': '/index/pcEditClient', 'url': '/index/pcEditClient',
...@@ -1491,7 +1491,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1491,7 +1491,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert('状态标签未选中'); alert('状态标签未选中');
return false; return false;
} }
checkLogin(); // checkLogin();
if(!user.isAjaxSaving){ if(!user.isAjaxSaving){
user.isAjaxSaving = true; user.isAjaxSaving = true;
$.ajax({ $.ajax({
...@@ -1541,7 +1541,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1541,7 +1541,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert('请输入经纪人内容为空'); alert('请输入经纪人内容为空');
return false; return false;
} }
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url: '/index/batchEditCustomer', url: '/index/batchEditCustomer',
type: 'POST', type: 'POST',
...@@ -1568,7 +1568,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1568,7 +1568,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}else{ }else{
$('.user_call').hide(); $('.user_call').hide();
}; };
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url': '/index/useraction_search', 'url': '/index/useraction_search',
...@@ -1687,7 +1687,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1687,7 +1687,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//客户编辑 修改记录 //客户编辑 修改记录
Caozuorecord: function() {//获取客户动态 Caozuorecord: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url:'/broker/useraction_search', url:'/broker/useraction_search',
type: 'POST', type: 'POST',
...@@ -1717,7 +1717,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1717,7 +1717,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}, },
//客户列表 无效 修改 //客户列表 无效 修改
isInvalid: function() { isInvalid: function() {
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url:'/index/updateUserStatus', url:'/index/updateUserStatus',
type: 'POST', type: 'POST',
...@@ -1788,7 +1788,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1788,7 +1788,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert('开始时间不能大于结束时间'); alert('开始时间不能大于结束时间');
return; return;
} }
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url: '/index/users_list', url: '/index/users_list',
type: 'GET', type: 'GET',
...@@ -2008,7 +2008,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -2008,7 +2008,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert('请选择正确的客方'); alert('请选择正确的客方');
return; return;
} }
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url: '/index/pcEditClient', url: '/index/pcEditClient',
type: 'POST', type: 'POST',
...@@ -2134,7 +2134,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -2134,7 +2134,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params.type=user_type; params.type=user_type;
params.AuthToken=user_info_obj.AuthToken; params.AuthToken=user_info_obj.AuthToken;
params.site_id = $('.user_city_choose_site_list').val(); params.site_id = $('.user_city_choose_site_list').val();
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url: '/broker/getLastOrNextUserID', url: '/broker/getLastOrNextUserID',
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID', // url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
...@@ -2171,7 +2171,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -2171,7 +2171,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}, },
getGenjinLabel: function() { getGenjinLabel: function() {
$('#genj_text').val(''); $('#genj_text').val('');
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url: '/index/getUserLabel', url: '/index/getUserLabel',
type: 'GET', type: 'GET',
...@@ -2190,7 +2190,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -2190,7 +2190,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}, },
getGenjincon: function() {//获取客户动态 getGenjincon: function() {//获取客户动态
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
checkLogin(); // checkLogin();
$.ajax({ $.ajax({
url:'/broker/useraction_search', url:'/broker/useraction_search',
type: 'POST', type: 'POST',
......
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