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
f6575a7d
Commit
f6575a7d
authored
Dec 27, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉登录接口
parent
1b06706a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
32 deletions
+34
-32
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+20
-18
user.js
public/resource/js/user.js
+14
-14
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
f6575a7d
...
...
@@ -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
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
//
checkLogin();
if
(
$
(
'.detail-modal-bargaininfo-commission-addarea>div'
).
length
>=
5
)
{
alert
(
'最多添加5条'
);
return
false
;
...
...
@@ -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
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
//
checkLogin();
$
(
this
).
parent
().
remove
();
});
//城市 区域 二级联动 筛选
...
...
@@ -154,7 +154,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params
.
type
=
3
;
};
checkLogin
();
//
checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
...
...
@@ -169,6 +169,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
else
{
alert
(
data
.
msg
)
}
}
});
...
...
@@ -198,7 +200,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//上一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
checkLogin
();
//
checkLogin();
user
.
getInfor
();
});
//下一页 获取客户详情
...
...
@@ -255,7 +257,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"
);
checkLogin
();
//
checkLogin();
user
.
getGenjinLabel
();
});
...
...
@@ -277,12 +279,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
();
//
checkLogin();
user
.
edit_add
();
});
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
checkLogin
();
//
checkLogin();
user
.
modify_add
();
});
// 客户编辑 修改记录
...
...
@@ -296,7 +298,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
();
//
checkLogin();
user
.
Caozuo
();
});
...
...
@@ -324,7 +326,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
();
//
checkLogin();
user
.
getSiteTagsEdit
();
});
...
...
@@ -360,7 +362,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
agent_id
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
checkLogin
();
//
checkLogin();
user
.
search_phone
();
}
});
...
...
@@ -369,14 +371,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
();
//
checkLogin();
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
if
(
is_outpace_call_num
==
'0'
){
checkLogin
();
//
checkLogin();
user
.
user_Call
();
}
else
{
layerTipsX
(
'该客户今日已达拨打上限,请明日再来'
);
...
...
@@ -385,14 +387,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//没打通手机号
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
user
.
unbind_Call
();
checkLogin
();
//
checkLogin();
});
//约带看 保存
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
user
.
save_look
();
checkLogin
();
//
checkLogin();
});
//约带看 商铺选择
...
...
@@ -444,7 +446,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
();
//
checkLogin();
user
.
Submit_follow
();
});
// =============下拉列表========================
...
...
@@ -530,7 +532,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_btnSave
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
//
checkLogin();
genjinSave
();
});
...
...
@@ -1451,7 +1453,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//客户编辑 修改记录
Caozuorecord
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
type
:
'POST'
,
...
...
@@ -1481,7 +1483,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
},
//筛选
getList
:
function
(
pageNo
)
{
checkLogin
();
//
checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
user
.
pageNo
=
pageNo
;
var
_startDateObj
=
$
(
'#start_date'
),
...
...
public/resource/js/user.js
View file @
f6575a7d
...
...
@@ -218,7 +218,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'该客户在保护期内,暂不能收藏'
);
return
;
}
checkLogin
();
//
checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
...
...
@@ -298,7 +298,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
type
=
3
;
};
checkLogin
();
//
checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
...
...
@@ -1397,7 +1397,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
;
checkLogin
();
//
checkLogin();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/broker/bindAXB'
,
...
...
@@ -1461,7 +1461,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
referrer_source
=
user
.
referrer_source
;
}
params
.
user_label
=
$
(
"#user_label_edit"
).
val
();
checkLogin
();
//
checkLogin();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
...
...
@@ -1491,7 +1491,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'状态标签未选中'
);
return
false
;
}
checkLogin
();
//
checkLogin();
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
$
.
ajax
({
...
...
@@ -1541,7 +1541,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/index/batchEditCustomer'
,
type
:
'POST'
,
...
...
@@ -1568,7 +1568,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
else
{
$
(
'.user_call'
).
hide
();
};
checkLogin
();
//
checkLogin();
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
...
...
@@ -1687,7 +1687,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//客户编辑 修改记录
Caozuorecord
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
type
:
'POST'
,
...
...
@@ -1717,7 +1717,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
//客户列表 无效 修改
isInvalid
:
function
()
{
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/index/updateUserStatus'
,
type
:
'POST'
,
...
...
@@ -1788,7 +1788,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'开始时间不能大于结束时间'
);
return
;
}
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/index/users_list'
,
type
:
'GET'
,
...
...
@@ -2008,7 +2008,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'请选择正确的客方'
);
return
;
}
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
...
...
@@ -2134,7 +2134,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
type
=
user_type
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
site_id
=
$
(
'.user_city_choose_site_list'
).
val
();
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/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
},
getGenjinLabel
:
function
()
{
$
(
'#genj_text'
).
val
(
''
);
checkLogin
();
//
checkLogin();
$
.
ajax
({
url
:
'/index/getUserLabel'
,
type
:
'GET'
,
...
...
@@ -2190,7 +2190,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
();
//
checkLogin();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
type
:
'POST'
,
...
...
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