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
58bd9806
Commit
58bd9806
authored
Jan 07, 2019
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e9715fdb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
210 additions
and
8 deletions
+210
-8
user_genjing_modal.html
application/index/view/member/user_genjing_modal.html
+84
-5
users_list.html
application/index/view/member/users_list.html
+0
-0
users_list_old.html
application/index/view/member/users_list_old.html
+0
-0
user.js
public/resource/js/user.js
+4
-2
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+121
-0
user_old.js
public/resource/js/user_old.js
+0
-0
user_template_tpl.html
public/resource/template/user_template_tpl.html
+1
-1
No files found.
application/index/view/member/user_genjing_modal.html
View file @
58bd9806
{layout name="global/frame_pure_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"user_genjing_modal"
/>
<style>
/*关联客户相关*/
.user-detail-relational
>
div
{
float
:
left
;
margin-right
:
15px
;
}
.user-detail-relational
>
div
>
span
{
margin-left
:
10px
;
cursor
:
pointer
;
}
.user-ul-liu
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul-liu
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone-liu
{
float
:
left
;
margin-top
:
15px
;
margin-left
:
10px
;
}
/**/
.follow-up-modal-list-area
{
height
:
258px
;
overflow-y
:
scroll
;
}
.modal-body1
{
height
:
7
16
px
;
height
:
7
50
px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
...
...
@@ -312,7 +337,7 @@
padding
:
8px
;
}
.modal-body
{
padding
:
10px
;
padding
:
0
!important
;
}
.input-border-0
{
border
:
0
;
...
...
@@ -374,12 +399,12 @@
}
body
{
width
:
8
4
8px
!important
;
width
:
8
1
8px
!important
;
background-color
:
white
;
}
</style>
<div
style=
"width: 8
48px
;"
>
<div
style=
"width: 8
18px; margin: 0 auto
;"
>
<div
class=
"modal-header"
>
<h4
class=
"modal-title text-info detail-modal-header-tab"
>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
客户详情/跟进
</a>
...
...
@@ -389,6 +414,7 @@
<span
id=
"user_up"
class=
"ld-Marheight text-primary ld-Marheight"
>
上一条客户
</span>
<span
id=
"user_down"
class=
"ld-Marheight text-primary ld-Marheight"
>
下一条客户
</span>
<span
id=
'user_is_collect'
class=
'ld-Marheight text-primary'
>
收藏
</span>
<a
id=
'user_add_relational'
class=
'ld-Marheight text-primary'
style=
"margin-left: 32px;cursor: pointer;"
href=
"#modal-addRelational"
data-toggle=
"modal"
>
添加关联客户
</a>
</div>
</div>
...
...
@@ -527,9 +553,18 @@
</thead>
</table>
<!--关联客户-->
<div>
<div
class=
"text-info"
style=
"font-size: 16px;"
>
关联客户
</div>
<div
class=
"user-detail-relational"
style=
"overflow: hidden;"
>
</div>
</div>
<!--客户详情 最近一条带看动态-->
<div>
<div
class=
"text-info"
style=
"margin: 2px;font-size: 16px;"
>
最近一条带看动态
</div>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
style=
"margin-bottom: 0;"
>
<tbody
class=
"text-center user-log-detail"
>
</tbody>
</table>
...
...
@@ -736,4 +771,47 @@
</div>
</div>
<div
id=
"close_btn"
><img
src=
"/app/images/ic_cha.png"
/></div>
</div>
<!--关联客户弹窗-->
<div
class=
"modal fade"
id=
"modal-addRelational"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
添加关联客户
</h4>
</div>
<div
class=
"modal-body"
style=
"padding: 25px;"
>
<div
class=
"left-phone-liu"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"请输入客户编号"
type=
"text"
value=
""
>
<ul
class=
"user-ul-liu"
></ul>
</div>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-info save-relational"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/member/users_list.html
View file @
58bd9806
This diff is collapsed.
Click to expand it.
application/index/view/member/users_list_old.html
0 → 100644
View file @
58bd9806
This diff is collapsed.
Click to expand it.
public/resource/js/user.js
View file @
58bd9806
...
...
@@ -449,8 +449,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user
.
delete_user
(
params
);
});
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
getGenjinLabel
();
// user.user_id = $(this).attr("data-id");
// user.getGenjinLabel();
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
));
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//重置搜索
...
...
public/resource/js/user_genjing_modal.js
View file @
58bd9806
...
...
@@ -53,6 +53,7 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination',
agent_id_call_vip
:
""
,
pageNoUser
:
1
,
//客户详情 客户动态初始化分页
moreUser
:
0
,
//标识点击加载更多 还有没有数据
agent_id_phone
:
''
,
init
:
function
()
{
//汉化实现
...
...
@@ -140,6 +141,43 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination',
}
});
//客户详情 关联客户
_doc
.
on
(
'click'
,
'.save-relational'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
user
.
addRelational
()
});
//客户详情 解除关联客户
_doc
.
on
(
'click'
,
'.del-relational'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
id_
=
$
(
this
).
attr
(
"data-id"
);
user
.
delRelational
(
id_
);
});
//点击客户详情 添加关联客户
_doc
.
on
(
'click'
,
'#user_add_relational'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'#partical_name'
).
val
(
''
);
user
.
agent_id_phone
=
''
;
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
user
.
agent_id_phone
=
''
;
$
(
".user-ul-liu"
).
html
(
''
);
}
else
{
user
.
search_phone_liu
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphoneliu"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphoneliu
(
this
);
});
//客户动态 加载更多
_doc
.
on
(
'click'
,
'.user-log-more'
,
function
(
e
)
{
e
.
preventDefault
();
...
...
@@ -880,6 +918,12 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination',
user
.
customerInfo
=
data
.
data
.
user_info
;
is_outpace_call_num
=
data
.
data
.
is_outpace_call_num
;
//关联客户显示 解除关联
var
user_bind_list
=
""
;
$
.
each
(
data
[
'data'
][
'user_bind_list'
],
function
(
i
,
item
)
{
user_bind_list
+=
'<div>'
+
item
.
user_name
+
',ID:'
+
item
.
user_id
+
','
+
item
.
user_phone
+
'<span class="text-info del-relational" data-id="'
+
item
.
user_id
+
'">解除关联</span></div>'
;
});
$
(
".user-detail-relational"
).
html
(
user_bind_list
);
}
}
else
{
alert
(
data
.
msg
);
...
...
@@ -887,6 +931,83 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'pagination',
}
});
},
//新增关联客户
addRelational
:
function
()
{
$
.
ajax
({
url
:
'/index/addUserBind'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'bind_id'
:
user
.
agent_id_phone
,
"user_id"
:
user
.
user_id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
);
user
.
Caozuo
();
//更新关联客户
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//解除关联客户
delRelational
:
function
(
id
)
{
$
.
ajax
({
url
:
'/index/removeUserBind'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
);
user
.
Caozuo
();
//更新关联客户
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//跟进人 姓名搜索
search_phone_liu
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
'id'
:
$
(
"#partical_name"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphoneliu" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_id
+
'-'
+
item
.
user_phone
+
'</li>'
;
});
$
(
".user-ul-liu"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul-liu"
).
html
(
''
);
user
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
getGenjinLabel
:
function
()
{
$
(
'#genj_text'
).
val
(
''
);
$
.
ajax
({
...
...
public/resource/js/user_old.js
0 → 100644
View file @
58bd9806
This diff is collapsed.
Click to expand it.
public/resource/template/user_template_tpl.html
View file @
58bd9806
...
...
@@ -52,7 +52,7 @@
<
/td
>
<
td
width
=
"16%"
>
[
%
if
((
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
check_auth
(
'index/useraction_search'
)))
{
%
]
<
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"] %]'
data
-
vip
=
'[%= it[item]["vip"] %]'
data
-
current
=
'[%= it[item]["current_agent_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"] %]'
data
-
vip
=
'[%= it[item]["vip"] %]'
data
-
current
=
'[%= it[item]["current_agent_id"] %]'
data
-
item
=
'[%= JSON.stringify(it[item]) %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 is_show [%= sw(it[item]['is_collect']) %]"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
cid
=
'[%= it[item]["is_collect"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
agent
=
'[%= it[item]["agent_id"] %]'
>
[
%
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