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
3eeb9a27
Commit
3eeb9a27
authored
Aug 21, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表 客户跟进列表 保护期的客户隐藏电话拨打按钮
parent
f811c221
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+12
-0
user.js
public/resource/js/user.js
+11
-0
remark_follow_template_tpl.html
public/resource/template/remark_follow_template_tpl.html
+2
-2
user_template_tpl.html
public/resource/template/user_template_tpl.html
+2
-2
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
3eeb9a27
...
@@ -34,6 +34,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -34,6 +34,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
agent_id_two
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id2
:
0
,
agent_id_infor
:
0
,
agent_id_infor
:
0
,
baohu
:
''
,
agentbaohu
:
''
,
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
customerInfo
:
{},
customerInfo
:
{},
init
:
function
()
{
init
:
function
()
{
...
@@ -273,6 +275,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -273,6 +275,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
baohu
=
$
(
this
).
attr
(
"data-baohu"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.detail-modal-body-sec-2'
).
show
();
$
(
'.detail-modal-body-sec-2'
).
show
();
...
@@ -1194,6 +1197,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -1194,6 +1197,15 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
},
},
// 新增客户页面
// 新增客户页面
Caozuo
:
function
()
{
//获取跟进详情的数据
Caozuo
:
function
()
{
//获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if
((
user_info_obj
.
id
*
1
==
user
.
agent_id_infor
*
1
)
||
user
.
baohu
*
1
){
$
(
'.user_call'
).
show
();
console
.
log
(
1
)
}
else
{
$
(
'.user_call'
).
hide
();
console
.
log
(
2
);
console
.
log
(
user
.
baohu
);
};
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
'url'
:
'/index/useraction_search'
,
...
...
public/resource/js/user.js
View file @
3eeb9a27
...
@@ -36,6 +36,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -36,6 +36,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
agent_id2
:
0
,
agent_id2
:
0
,
agent_id_infor
:
0
,
agent_id_infor
:
0
,
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
baohu
:
''
,
agentbaohu
:
''
,
customerInfo
:
{},
customerInfo
:
{},
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
...
@@ -380,6 +382,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -380,6 +382,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
user
.
baohu
=
$
(
this
).
attr
(
"data-baohu"
);
user
.
agentbaohu
=
$
(
this
).
attr
(
"data-agent"
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.detail-modal-body-sec-2'
).
show
();
$
(
'.detail-modal-body-sec-2'
).
show
();
$
(
'#take_look_name'
).
html
(
$
(
this
).
attr
(
"data-name"
));
$
(
'#take_look_name'
).
html
(
$
(
this
).
attr
(
"data-name"
));
...
@@ -1326,6 +1330,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1326,6 +1330,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
},
// 新增客户页面
// 新增客户页面
Caozuo
:
function
()
{
//获取跟进详情的数据
Caozuo
:
function
()
{
//获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if
((
user_info_obj
.
id
*
1
==
user
.
agentbaohu
*
1
)
||
user
.
baohu
*
1
){
$
(
'.user_call'
).
show
();
}
else
{
$
(
'.user_call'
).
hide
();
}
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
'url'
:
'/index/useraction_search'
,
...
...
public/resource/template/remark_follow_template_tpl.html
View file @
3eeb9a27
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<
td
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
width
=
"16%"
>
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
]
*
1
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
user_info_obj
.
id
*
1
)
||
(
check_auth
(
'index/useraction_search'
)
&&
it
[
item
][
'vip'
]
*
1
==
0
&&
it
[
item
][
"is_outstrip_twenty_four_hours"
]
*
1
))
{
%
]
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
]
*
1
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
user_info_obj
.
id
*
1
)
||
(
check_auth
(
'index/useraction_search'
)
&&
it
[
item
][
'vip'
]
*
1
==
0
))
{
%
]
<
a
class
=
"btn1 caozuo genj_ure btn-success"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
data
-
agentId
=
'[%= it[item]["agent_id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 caozuo genj_ure btn-success"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
data
-
agentId
=
'[%= it[item]["agent_id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
>
详情
/
跟进
<
/a> 
;
[
%
if
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
]
||
check_auth
(
'index/pcEditClient'
))
{
%
]
[
%
if
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
]
||
check_auth
(
'index/pcEditClient'
))
{
%
]
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
>
客户编辑
<
/a> 
;
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
>
客户编辑
<
/a> 
;
...
...
public/resource/template/user_template_tpl.html
View file @
3eeb9a27
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
<!--
[
%
if
(
it
[
item
][
'source'
]
!=
null
){
%
]
[
%=
it
[
item
][
"source"
]
%
]
[
%
}
%
]
-->
<!--
[
%
if
(
it
[
item
][
'source'
]
!=
null
){
%
]
[
%=
it
[
item
][
"source"
]
%
]
[
%
}
%
]
-->
<
/td
>
<
/td
>
<
td
width
=
"16%"
>
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
]
*
1
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
it
[
item
][
'current_agent_id'
]
*
1
)
||
(
check_auth
(
'index/useraction_search'
)
&&
it
[
item
][
'vip'
]
*
1
==
0
&&
it
[
item
][
"is_outstrip_twenty_four_hours"
]
*
1
))
{
%
]
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
]
*
1
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
it
[
item
][
'agent_id'
]
*
1
==
it
[
item
][
'current_agent_id'
]
*
1
)
||
(
check_auth
(
'index/useraction_search'
)
&&
it
[
item
][
'vip'
]
*
1
==
0
))
{
%
]
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
>
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
>
[
%
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
[
%
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
收藏
收藏
...
...
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