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
1b9c3461
Commit
1b9c3461
authored
Mar 05, 2018
by
刘丹
Committed by
hujun
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跟进
# Conflicts: # application/index/view/global/navigation.html
parent
e60ab35d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
244 additions
and
76 deletions
+244
-76
navigation.html
application/index/view/global/navigation.html
+5
-14
users_list.html
application/index/view/member/users_list.html
+44
-9
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+35
-13
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+42
-1
user.js
public/resource/js/user.js
+116
-37
user_template_tpl.html
public/resource/template/user_template_tpl.html
+2
-2
No files found.
application/index/view/global/navigation.html
View file @
1b9c3461
...
...
@@ -24,14 +24,8 @@
<li
role=
"presentation"
class=
"active"
>
<a
href=
"/admin.php/index/advertising"
>
首页弹窗
</a>
</li>
<li
role=
"presentation"
class=
"active"
>
<a
href=
"/admin.php/index/advertising"
>
首页弹窗
</a>
</li>
<li
role=
"presentation"
class=
"active"
>
<a
href=
"/admin.php/index/advertising"
>
首页弹窗
</a>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/users_list.html"
>
用
户列表
</a>
<a
href=
"/admin.php/index/users_list.html"
>
客
户列表
</a>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/watch_shop.html"
>
预约看铺列表
</a>
...
...
@@ -70,18 +64,15 @@
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/BusinessDistrict.html"
>
商圈列表
</a>
</li>
<!-- <li role="presentation">
<a href="/admin.php/index/CellPhoneIndex.html">总记录列表</a>
</li>-->
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/CellPhoneAgentIndex.html"
>
经纪人通话列表
</a>
</li>
<!--
<li role="presentation">
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/phoneList.html"
>
号码池列表
</a>
</li>
-->
<!--
<li role="presentation">
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/bindPhoneListIndex.html"
>
号码绑定列表
</a>
</li>
-->
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/CellPhoneIndex.html"
>
通话记录
</a>
</li>
...
...
application/index/view/member/users_list.html
View file @
1b9c3461
...
...
@@ -6,6 +6,26 @@
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.user-ul
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
</style>
<!--导航star-->
...
...
@@ -86,7 +106,7 @@
</div>
<!-- /#wrapper -->
<!-- /#新增
用
户模态框 -->
<!-- /#新增
客
户模态框 -->
<div
class=
"modal fade"
id=
"modal_add_user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
...
...
@@ -95,7 +115,7 @@
×
</button>
<h4
class=
"modal-title"
>
添加
用
户
添加
客
户
</h4>
</div>
<div
class=
"modal-body"
>
...
...
@@ -110,7 +130,7 @@
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn6"
id=
""
>
<select
class=
"form-control btn6"
id=
"
user_sex
"
>
<option
value=
""
class=
"successModel"
>
性别
</option>
<option
value=
"0"
>
男
</option>
<option
value=
"1"
>
女
</option>
...
...
@@ -120,22 +140,26 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
电话:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"password"
class=
"form-control btn6"
name=
"
pwd
"
autocomplete=
"off"
id=
"set_father_id2"
>
<input
type=
"password"
class=
"form-control btn6"
name=
"
user_phone
"
autocomplete=
"off"
id=
"set_father_id2"
>
<span
class=
"use-span text-danger"
>
(必填)
</span>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
客方:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"password"
class=
"form-control btn6"
name=
"pwd"
autocomplete=
"off"
id=
"set_father_id3"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"pwd"
autocomplete=
"off"
id=
"set_father_id3"
>
<ul
class=
"user-ul"
>
</ul>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
id=
"close"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"add_user"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"add_user"
data-dismiss=
"modal"
>
提交
</button>
</div>
...
...
@@ -179,9 +203,20 @@
</div>
<span
class=
"fore-span ld-Marheight"
>
上传时间:
</span>
<span
class=
"fore-span ld-Marheight"
id=
"cus_date"
></span>
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"cus_fang"
name=
"cus_fang"
type=
"text"
>
<div
class=
"row"
>
</div>
<div
class=
"form-group"
>
<span
class=
"fore-span "
>
客方:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6 "
name=
"pwd"
autocomplete=
"off"
id=
"cus_fang"
>
<ul
class=
"user-ul2"
>
</ul>
</div>
</div>
</form>
</td>
...
...
@@ -256,7 +291,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"edit_add"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"edit_add"
data-dismiss=
"modal"
>
提交
</button>
</div>
...
...
application/index/view/remark/remark_follow_index.html
View file @
1b9c3461
...
...
@@ -6,6 +6,16 @@
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -84,19 +94,20 @@
</div>
<!--操作记录-->
<!--操作详情记录-->
<div
class=
"modal fade"
id=
"modal-record"
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>
×
</button>
<h4
class=
"modal-title"
>
客户资料/跟进
</h4>
客户资料/跟进
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body
modal-body1
"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"caozuo_hide"
>
<thead>
<tr>
...
...
@@ -119,18 +130,29 @@
</div>
<span
class=
"fore-span ld-Marheight"
>
上传时间:
</span>
<span
class=
"fore-span ld-Marheight"
id=
"cus_date"
></span>
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"cus_fang"
name=
"cus_fang"
type=
"text"
>
<div
class=
"row"
>
</div>
<div
class=
"form-group"
>
<span
class=
"fore-span "
>
客方:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6 "
name=
"pwd"
autocomplete=
"off"
id=
"cus_fang"
>
<ul
class=
"user-ul2"
>
</ul>
</div>
</div>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
跟进内容
</th>
<th
class=
"text-center"
>
跟进人
</th>
<th
class=
"text-center"
>
跟进时间
</th>
</tr>
<tr>
<th
class=
"text-center"
>
跟进内容
</th>
<th
class=
"text-center"
>
跟进人
</th>
<th
class=
"text-center"
>
跟进时间
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"caozuo_table"
>
...
...
public/resource/js/RemarkFollowIndex.js
View file @
1b9c3461
...
...
@@ -33,7 +33,48 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
});
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
if
(
$
(
"#cus_fang"
).
val
()
==
''
){
$
(
".user-ul2"
).
html
(
''
);
}
else
{
follow
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
follow
.
addphone2
(
this
);
});
},
addphone2
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
follow
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
search_phone2
:
function
(){
//手机号
$
.
ajax
({
url
:
'/index/select_by_phone'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#cus_fang"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone2" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Caozuo
:
function
(){
//获取跟进详情的数据
$
.
ajax
({
...
...
@@ -72,7 +113,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
"id"
:
follow
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
""
,
//客方
"agent_id"
:
follow
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
...
...
public/resource/js/user.js
View file @
1b9c3461
...
...
@@ -30,9 +30,6 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
"#add_user"
).
click
(
function
()
{
user
.
add_user
();
});
$
(
"#close"
).
click
(
function
()
{
document
.
getElementById
(
"add_user_form"
).
reset
();
...
...
@@ -51,6 +48,10 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
add_user
();
});
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
user
.
edit_add
();
});
...
...
@@ -58,19 +59,118 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
Caozuo
();
});
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号搜索客方
if
(
$
(
"#set_father_id3"
).
val
()
==
''
){
$
(
".user-ul"
).
html
(
''
);
}
else
{
user
.
search_phone
();
}
});
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
if
(
$
(
"#cus_fang"
).
val
()
==
''
){
$
(
".user-ul2"
).
html
(
''
);
}
else
{
user
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失
user
.
addphone
(
this
);
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
Submit_follow
();
});
$
(
"#edit_user"
).
click
(
function
()
{
var
params
=
{};
params
.
id
=
$
(
"#edit_id"
).
val
();
params
.
user_nick
=
$
(
"#inputEmail3"
).
val
();
params
.
user_nick
=
$
(
"#inputEmail3"
).
val
();
params
.
pwd
=
$
(
"#edit_user_form input[name='password']"
).
val
();
user
.
edit_user
(
params
);
},
addphone
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#set_father_id3"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
user
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
addphone2
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
},
search_phone
:
function
(){
//手机号
$
.
ajax
({
url
:
'/index/select_by_phone'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#set_father_id3"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone2
:
function
(){
//手机号
$
.
ajax
({
url
:
'/index/select_by_phone'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#cus_fang"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone2" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
"id"
:
user
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
user
.
agent_id2
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
}
else
{
}
}
});
},
edit_add
:
function
()
{
//提交跟进
$
.
ajax
({
url
:
'/index/pcAdd
user
'
,
url
:
'/index/pcAdd
Follow
'
,
type
:
'POST'
,
async
:
true
,
data
:
{
...
...
@@ -104,7 +204,6 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
$
(
"#cus_fang"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_date'
],
function
(
i
,
item
)
{
console
.
log
(
item
)
caozuo_table
+=
'<tr><td>'
+
item
.
content
+
'</td><td>'
+
item
.
agentinfo
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
...
...
@@ -149,10 +248,11 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
},
add_user
:
function
()
{
var
params
=
{};
params
.
realname
=
$
(
"#add_user_form input[name='realname']"
).
val
();
params
.
id
=
user
.
house_id
;
params
.
user_nick
=
$
(
"#add_user_form input[name='realname']"
).
val
();
params
.
user_phone
=
$
(
"#add_user_form input[name='user_phone']"
).
val
();
params
.
pwd
=
$
(
"#add_user_form input[name='pwd']
"
).
val
();
params
.
type
=
'add'
;
params
.
sex
=
$
(
"#user_sex option:selected
"
).
val
();
params
.
agent_id
=
user
.
agent_id
;
if
(
params
.
realname
==
''
)
{
alert
(
'姓名不能为空'
);
$
(
"input[name='realname']"
).
focus
();
...
...
@@ -169,23 +269,6 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
return
;
}
$
.
ajax
({
url
:
'/index/user_add'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
"#modal_add_user"
).
modal
(
'hide'
);
alert
(
data
.
msg
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
edit_user
:
function
(
params
)
{
//添加客户
$
.
ajax
({
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
...
...
@@ -193,14 +276,10 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
$
(
"#modal-delete"
).
modal
(
'hide'
);
if
(
data
.
code
==
200
)
{
$
(
"#modal-do"
).
modal
(
'hide'
);
alert
(
data
.
msg
);
}
else
{
alert
(
data
.
msg
);
}
user
.
getList
(
user
.
pageNo
);
}
});
},
...
...
public/resource/template/user_template_tpl.html
View file @
1b9c3461
...
...
@@ -39,10 +39,10 @@
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal
_add_user
"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal
-record
"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
跟进
<
/a
>
<!--<
a
class
=
"btn1 btn-danger "
href
=
"#modal-delete"
data
-
toggle
=
"modal"
onclick
=
"delete_user(this)"
data
-
id
=
'[%= it[item]["id"] %]'
>-->
...
...
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