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
e47e4a81
Commit
e47e4a81
authored
Aug 29, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点击关联客户 进入详情页
parent
75d76bc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
9 deletions
+42
-9
user_genjing_modal.html
application/index/view/member/user_genjing_modal.html
+22
-3
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+20
-6
No files found.
application/index/view/member/user_genjing_modal.html
View file @
e47e4a81
...
...
@@ -9,8 +9,8 @@
float
:
left
;
width
:
50%
;
}
.user-detail-relational
>
div
>
span
{
margin-left
:
3
0px
;
.user-detail-relational
>
div
>
span
,
.user-detail-relational
>
div
>
a
{
margin-left
:
1
0px
;
cursor
:
pointer
;
}
.user-ul-liu
{
...
...
@@ -455,7 +455,7 @@
}
.public-box-noleft-73
{
display
:
inline-block
;
width
:
73
px
;
width
:
60
px
;
height
:
26px
;
line-height
:
26px
;
text-align
:
center
;
...
...
@@ -1023,4 +1023,22 @@
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--关联客户 客户详情-->
<div
class=
"modal fade"
id=
"modal-userDetail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 850px;"
>
<div
class=
"modal-content"
>
<p
style=
"position: absolute;font-size: 16px;margin-left: 20px;"
class=
"text-danger"
>
关联客户详情
</p>
<button
type=
"button"
data-dismiss=
"modal"
aria-hidden=
"true"
style=
"margin-left: 791px;font-size: 26px;height: 20px;line-height: 20px;background: #fff;border: 0;"
>
×
</button>
<div
class=
"modal-body"
style=
"margin-top: -6px;"
>
<iframe
src=
""
frameborder=
"0"
class=
"iframe-user-detail"
style=
"width:100%;height: 756px;display: block;border: none;border-radius: 6px;"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/user_genjing_modal.js
View file @
e47e4a81
...
...
@@ -20,7 +20,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
_backPhone
=
''
,
//绑定之后返回的号码
_temp_follow_id
=
''
,
//临时的跟进id
is_outpace_call_num
=
1
;
//拨打电话0:未超过限制 1:超过限制
var
iframeType
=
getUrlParam
(
'type'
);
var
cus_obj
=
JSON
.
parse
(
getUrlParam
(
'data'
));
//获取链接上面数据
var
idIndex
=
getUrlParam
(
'idindex'
);
//客户跟进列表
var
idIndexUser
=
getUrlParam
(
'idindex'
);
//客户列表
...
...
@@ -101,10 +101,17 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
e
.
stopPropagation
();
window
.
parent
.
document
.
querySelector
(
'#modal-record .close'
).
click
();
});
user
.
user_id
=
cus_obj
.
user_id
;
if
(
_tempUrl
===
'/index/users_list'
){
user
.
user_id
=
cus_obj
.
id
;
//客户列表特殊处理
};
if
(
iframeType
){
user
.
user_id
=
getUrlParam
(
'data'
);
$
(
'.close'
).
hide
()
// window.parent.document.querySelector('#modal-userDetail .close').hide();
}
else
{
user
.
user_id
=
cus_obj
.
user_id
;
if
(
_tempUrl
===
'/index/users_list'
){
user
.
user_id
=
cus_obj
.
id
;
//客户列表特殊处理
};
}
user
.
user_phone
=
cus_obj
.
user_phone
;
user
.
baohu
=
cus_obj
.
is_outstrip_twenty_four_hours
;
user
.
agentbaohu
=
cus_obj
.
agent_id
;
...
...
@@ -203,6 +210,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//点击客户详情
_doc
.
on
(
'click'
,
'.user-detail'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'.iframe-user-detail'
).
attr
(
'src'
,
'/index/userModalList?type=1&data='
+
$
(
this
).
attr
(
'data-id'
));
});
//查看弹出框里的tab点击事件,查看客户详情,客户约带看
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>span'
,
function
(
e
){
e
.
preventDefault
();
...
...
@@ -1344,7 +1358,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
//关联客户显示 解除关联
var
user_bind_list
=
""
;
$
.
each
(
data
[
'data'
][
'user_bind_list'
],
function
(
i
,
item
)
{
user_bind_list
+=
'<div>'
+
item
.
user_name
+
',ID:'
+
item
.
user_id
+
','
+
hideTel
(
item
.
user_phone
)
+
'<span class="public-box-noleft-73 del-relational" data-id="'
+
item
.
user_id
+
'">解除关联</span></div>'
;
user_bind_list
+=
'<div>'
+
item
.
user_name
+
',ID:'
+
item
.
user_id
+
','
+
hideTel
(
item
.
user_phone
)
+
'<span class="public-box-noleft-73 del-relational" data-id="'
+
item
.
user_id
+
'">解除关联</span>
'
+
'<a class="public-box-noleft-73 user-detail" href="#modal-userDetail" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">客户详情</a>'
+
'
</div>'
;
});
if
(
user_bind_list
){
$
(
".user-detail-relational"
).
html
(
user_bind_list
);
...
...
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