Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
60f1c7ac
Commit
60f1c7ac
authored
Aug 28, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台修改
parent
e3db3a53
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
74 additions
and
42 deletions
+74
-42
users_list.html
application/index/view/member/users_list.html
+1
-6
public.css
public/resource/css/public.css
+1
-0
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+19
-14
houseList.js
public/resource/js/houseList.js
+17
-1
main.js
public/resource/js/main.js
+2
-1
public.js
public/resource/js/public.js
+1
-9
shop_edit.js
public/resource/js/shop_edit.js
+5
-0
user.js
public/resource/js/user.js
+13
-11
checkLoginFailureAjax.js
public/resource/lib/js/checkLoginFailureAjax.js
+15
-0
No files found.
application/index/view/member/users_list.html
View file @
60f1c7ac
...
...
@@ -313,12 +313,7 @@
.main-select
{
display
:
none
;
}
.btn2
{
width
:
8%
!important
;
}
.btn4
{
width
:
12%
!important
;
}
</style>
<!--导航star-->
...
...
public/resource/css/public.css
View file @
60f1c7ac
...
...
@@ -15,6 +15,7 @@ body {
body
{
width
:
1560px
!important
;
}
;
}
;
html
{
overflow-y
:
scroll
;
}
a
:hover
{
...
...
public/resource/js/RemarkFollowIndex.js
View file @
60f1c7ac
...
...
@@ -116,6 +116,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_doc
.
on
(
'click'
,
'#bargaininfo_commission_add_btn>img'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
if
(
$
(
'.detail-modal-bargaininfo-commission-addarea>div'
).
length
>=
5
)
{
alert
(
'最多添加5条'
);
return
false
;
...
...
@@ -128,6 +129,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
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
$
(
this
).
parent
().
remove
();
});
//城市 区域 二级联动 筛选
...
...
@@ -171,11 +173,13 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//上一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
checkLogin
();
user
.
getInfor
();
});
//下一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_down'
,
function
()
{
user_type
=
'next'
;
checkLogin
();
user
.
getInfor
();
});
//客户列表 收藏夹
...
...
@@ -183,17 +187,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
getUserFavorites
();
});
// _doc.on('click', '.take-look', function(e) {//点击约带看 获取 客户姓名 编号 电话
// e.preventDefault();
// e.stopPropagation();
// $('#take_look_name').html($(this).attr("data-name"));
// $('#take_look_phone').html($(this).attr("data-phone"));
// $('#take_look_id').html($(this).attr("data-id"));
// $('#look_shop_date').val('');
// $('#note_look').val('');
// $('.look-shop').val('');
// $('.look-shop').removeAttr('data-id');
// });
//二级联动
user
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
()
{
...
...
@@ -237,8 +230,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
// $("#genj_text").val('');
// $("input[name = 'user_status']:checked").removeAttr("checked");
checkLogin
();
user
.
getGenjinLabel
();
});
...
...
@@ -260,10 +252,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
user
.
edit_add
();
});
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
checkLogin
();
user
.
modify_add
();
});
$
(
document
).
delegate
(
".caozuo-yue"
,
"click"
,
function
()
{
...
...
@@ -272,6 +266,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
checkLogin
();
user
.
Caozuo
();
});
...
...
@@ -296,6 +291,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
checkLogin
();
user
.
Caozuo
();
});
...
...
@@ -331,6 +327,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
agent_id
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
checkLogin
();
user
.
search_phone
();
}
});
...
...
@@ -339,12 +336,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
user_id_edit_introduce
=
''
;
$
(
".user-ul-edit-introduce"
).
html
(
''
);
}
else
{
checkLogin
();
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
if
(
is_outpace_call_num
==
'0'
){
checkLogin
();
user
.
user_Call
();
}
else
{
layerTipsX
(
'该客户今日已达拨打上限,请明日再来'
);
...
...
@@ -353,11 +352,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//没打通手机号
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
user
.
unbind_Call
();
checkLogin
();
});
//约带看 保存
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
user
.
save_look
();
checkLogin
();
});
//约带看 商铺选择
$
(
document
).
on
(
"input"
,
".look-shop"
,
function
()
{
//手机号搜索客方
...
...
@@ -408,6 +411,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
user
.
Submit_follow
();
});
// =============下拉列表========================
...
...
@@ -493,6 +497,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_btnSave
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
genjinSave
();
});
...
...
@@ -1360,8 +1365,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
},
//筛选
getList
:
function
(
pageNo
)
{
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
user
.
pageNo
=
pageNo
;
var
_startDateObj
=
$
(
'#start_date'
),
_endDateObj
=
$
(
'#end_date'
),
...
...
public/resource/js/houseList.js
View file @
60f1c7ac
...
...
@@ -98,6 +98,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
name
=
user_info_obj
.
name
;
$
(
"#search"
).
click
(
function
()
{
checkLogin
();
business
.
getList
(
1
);
});
...
...
@@ -122,12 +123,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$
(
'#persional_shop'
).
attr
(
"title"
,
"点击切换到本人商铺"
);
}
business
.
all_shop
=
!
business
.
all_shop
;
checkLogin
();
business
.
getList
(
1
);
});
$
(
'#main_select'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
business
.
main_select
=
!
business
.
main_select
;
console
.
log
(
business
.
main_select
);
if
(
business
.
main_select
){
$
(
'.main-select'
).
show
();
$
(
'#main_select'
).
html
(
"关闭高级搜索"
);
...
...
@@ -148,6 +149,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
auth_edit_exclusive
=
$
(
this
).
attr
(
"data-exclusive"
);
business
.
type
=
"1"
;
checkLogin
();
business
.
Anch
();
//获取手机号名字的
});
// 点击设置案场权限人(盘方)
...
...
@@ -155,20 +157,24 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$
(
"#myModalLabel"
).
html
(
"设置盘方"
);
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"2"
;
checkLogin
();
business
.
Anch
();
});
$
(
document
).
delegate
(
".dujia"
,
"click"
,
function
()
{
//点击独家
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"3"
;
checkLogin
();
business
.
Dujia
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作记录
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
checkLogin
();
business
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
(
e
)
{
//提交独家
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
business
.
Dujianew
();
});
//收藏 取消收藏
...
...
@@ -193,6 +199,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
else
{
params
.
type
=
3
;
}
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
...
...
@@ -240,6 +247,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if
(
business
.
detailTabIndex
==
1
){
$
(
'.iframe-shop-detail'
).
attr
(
'src'
,
'/app_broker/shop_detail_pc?shop_id='
+
business
.
id
);
}
else
if
(
business
.
detailTabIndex
==
0
){
checkLogin
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
business
.
getFollowupList
();
}
...
...
@@ -249,8 +257,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
var
myModalLabel
=
$
(
"#myModalLabel"
).
html
();
if
(
myModalLabel
==
'设置案场权限人'
)
{
checkLogin
();
business
.
Submit_follow
();
}
else
{
checkLogin
();
business
.
Submit_follow2
();
// 提交按钮设置盘方
}
});
...
...
@@ -258,6 +268,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
business
.
delBusiness
();
});
$
(
document
).
delegate
(
".jia"
,
"click"
,
function
()
{
//加号
...
...
@@ -271,6 +282,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
checkLogin
();
business
.
modify_add
();
});
// 批量修改客方
...
...
@@ -309,6 +321,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
params
.
type
=
0
;
$
(
this
).
html
(
'推荐至首页'
);
}
checkLogin
();
$
.
ajax
({
//推荐至首页
'type'
:
'POST'
,
'url'
:
'/index/carefullyChosen'
,
...
...
@@ -408,6 +421,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_doc
.
on
(
'click'
,
'[href="#modal_followup"]'
,
function
(){
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
checkLogin
();
business
.
getFollowupList
();
});
...
...
@@ -415,6 +429,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_doc
.
on
(
'click'
,
'#modal_followup_submit_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
business
.
followupAdd
();
});
...
...
@@ -431,6 +446,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
checkLogin
();
business
.
getFollowupList
();
// $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
});
...
...
public/resource/js/main.js
View file @
60f1c7ac
...
...
@@ -19,6 +19,7 @@ require.config ({
'datetimepicker'
:
'lib/js/bootstrap-datetimepicker'
,
'pagination'
:
'lib/js/Pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'checkLogin'
:
'lib/js/checkLoginFailureAjax'
,
'blow-up'
:
'lib/js/blow-up'
,
},
...
...
@@ -72,4 +73,4 @@ require.config ({
}
});
require
([
'require'
,
'jquery'
,
'doT'
,
'layer'
,
'app/public'
,
"datetimepicker"
,
'bootstrapJs'
,
'pagination'
,
'paginationStart'
]);
require
([
'require'
,
'jquery'
,
'doT'
,
'layer'
,
'app/public'
,
"datetimepicker"
,
'bootstrapJs'
,
'pagination'
,
'paginationStart'
,
'checkLogin'
]);
public/resource/js/public.js
View file @
60f1c7ac
...
...
@@ -24,14 +24,6 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
dataObj
.
init
();
});
}
//定时器
// setInterval(function(){
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
// //登录时间无效 直接跳转登录页面
// if(!user_info_obj){
// window.location.href="login.html";
// };
// },60000);
menu_bar
(
function
(){
//回调部分
...
...
@@ -83,7 +75,7 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
}
}
$
(
"#logout"
).
click
(
function
()
{
localStorage
.
removeItem
(
'pcUserInfo'
);
});
...
...
public/resource/js/shop_edit.js
View file @
60f1c7ac
...
...
@@ -83,6 +83,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
//定义获取商铺标签方法
checkLogin
();
function
getShangpuTags
(
fn
)
{
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -140,6 +141,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'source'
]
=
_source
;
_data
[
'sublet_id'
]
=
_sublet_id
;
}
else
{};
checkLogin
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/houseEdit'
,
...
...
@@ -382,6 +384,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
confirm
(
'确定删除该文件吗?'
)){
var
_imgId
=
_this
.
parent
().
attr
(
'data-imgid'
);
if
(
_imgId
){
checkLogin
();
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/delHouseFile'
,
...
...
@@ -871,6 +874,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
$
(
'#saveBtn'
).
click
(
function
(
e
)
{
//保存大讲堂
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
//多个input输入框验证标记
var
_isBreakFlag
=
false
;
//是否给商户公开,是否独家验证是否选择
...
...
@@ -1165,6 +1169,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'source'
]
=
_source
;
_data
[
'sublet_id'
]
=
_sublet_id
;
};
checkLogin
();
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/houseEdit'
,
...
...
public/resource/js/user.js
View file @
60f1c7ac
define
([
'doT'
,
'text!temp/user_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/user_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
,
'checkLogin'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
_doc
=
$
(
document
),
_token
=
user_info_obj
.
AuthToken
;
...
...
@@ -183,7 +183,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
}
};
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
...
...
@@ -1207,7 +1208,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
// console.log($(".cus_fang").val());
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
...
...
@@ -1232,7 +1232,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
search_phone_look
:
function
(
n
)
{
//商铺名选择
$
.
ajax
({
// url:"https://pre2.tonglianjituan.com"+ '/broker/getShopList',
url
:
'/broker/getShopList'
,
type
:
'GET'
,
async
:
true
,
...
...
@@ -1259,7 +1258,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
user_Call
:
function
()
{
//客户详情 点击拨打按钮
$
(
'#call_modal_phone_self'
).
val
(
user_info_obj
.
phone
);
_callModal
.
show
();
},
user_Call_Ori
:
function
()
{
//客户详情 点击拨打按钮
...
...
@@ -1270,7 +1268,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
'#phone_title'
).
html
(
user_info_obj
.
phone
);
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
user_id
=
user
.
user_id
;
c
onsole
.
log
(
params
);
c
heckLogin
(
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/broker/bindAXB'
,
...
...
@@ -1338,8 +1336,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
disc
=
$
(
"#user_area_edit"
).
val
();
params
.
user_label
=
$
(
"#user_label_edit"
).
val
();
checkLogin
();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
...
...
@@ -1369,6 +1366,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'状态标签未选中'
);
return
false
;
}
checkLogin
();
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
$
.
ajax
({
...
...
@@ -1423,7 +1421,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
checkLogin
();
$
.
ajax
({
url
:
'/index/batchEditCustomer'
,
type
:
'POST'
,
...
...
@@ -1450,7 +1448,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
else
{
$
(
'.user_call'
).
hide
();
}
checkLogin
();
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
...
...
@@ -1630,6 +1628,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
return
;
}
}
checkLogin
();
$
.
ajax
({
url
:
'/index/users_list'
,
type
:
'GET'
,
...
...
@@ -1765,7 +1764,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
return
;
}
checkLogin
();
$
.
ajax
({
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
...
...
@@ -1847,6 +1846,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
agent_id
=
user_info_obj
.
id
;
params
.
type
=
user_type
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
checkLogin
();
$
.
ajax
({
url
:
'/broker/getLastOrNextUserID'
,
// url: 'https://pre2.tonglianjituan.com'+'/broker/getLastOrNextUserID',
...
...
@@ -1883,6 +1883,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
getGenjinLabel
:
function
()
{
$
(
'#genj_text'
).
val
(
''
);
checkLogin
();
$
.
ajax
({
url
:
'/index/getUserLabel'
,
type
:
'GET'
,
...
...
@@ -1901,6 +1902,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
getGenjincon
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
checkLogin
();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
// url: 'https://pre2.tonglianjituan.com'+'/broker/useraction_search',
...
...
public/resource/lib/js/checkLoginFailureAjax.js
0 → 100644
View file @
60f1c7ac
function
checkLogin
(){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/checkLogin'
,
//验证登录失效
data
:
{},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
300
){
alert
(
'登录失效,请您重新登录'
);
window
.
location
.
href
=
"login.html"
;
}
}
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment