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
d65ce66b
Commit
d65ce66b
authored
Jan 23, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表 编辑修改
parent
cb44a69d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+39
-3
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
d65ce66b
...
...
@@ -352,10 +352,46 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
//客户列表操作
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".cao-zuo-record"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
user
.
baohu
=
$
(
this
).
attr
(
"data-baohu"
);
user
.
agentbaohu
=
$
(
this
).
attr
(
"data-agent"
);
//隐藏拨打电话 相关
user
.
agent_id_call
=
$
(
this
).
attr
(
"data-agent"
);
user
.
agent_id_call_current
=
$
(
this
).
attr
(
"data-current"
);
user
.
agent_id_call_vip
=
$
(
this
).
attr
(
"data-vip"
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.detail-modal-body-sec-2'
).
show
();
$
(
'#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'
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
//点击客户详情 初始化客户动态 带看动态
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
user
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
user
.
getSiteTagsEdit
();
user
.
getUserLogNew
();
//客户详情获取最近一条带看动态
$
(
'.user-log-more'
).
show
();
//显示加载更多
});
//客户列表操作
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
//点击操作跟进详情
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
$
.
trim
(
_$this
.
next
().
html
())
+
'&idindex='
+
_$this
.
attr
(
'data-index'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
));
});
//查看弹出框里的tab点击事件,客户动态 带看动态
_doc
.
on
(
'click'
,
'.modal-title-genjing-con>span'
,
function
(
e
){
e
.
preventDefault
();
...
...
@@ -1442,7 +1478,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
//收藏客户 取消收藏
if
(
data
.
data
.
user_info
.
is_collect
==
2
){
if
(
data
.
data
.
is_collect
==
2
){
$
(
'#user_is_collect'
).
html
(
'收藏'
);
}
else
{
$
(
'#user_is_collect'
).
html
(
'取消收藏'
);
...
...
@@ -1503,7 +1539,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
if
(
data
.
data
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
}
else
{
$
(
".user-details-introduce"
).
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