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
c415037a
Commit
c415037a
authored
Mar 02, 2018
by
刘丹
Committed by
hujun
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户
parent
7d97dfe2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
409 additions
and
179 deletions
+409
-179
u_label_index.html
application/index/view/label/u_label_index.html
+78
-11
users_list.html
application/index/view/member/users_list.html
+0
-0
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+46
-124
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+54
-29
u_label.js
public/resource/js/u_label.js
+111
-0
user.js
public/resource/js/user.js
+62
-6
u_label_template_tpl.html
public/resource/template/u_label_template_tpl.html
+19
-0
user_template_tpl.html
public/resource/template/user_template_tpl.html
+39
-9
No files found.
application/index/view/label/u_label_index.html
View file @
c415037a
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
{layout name="global/frame_tpl" /}
<!--客户标签页面-->
<input
type=
"hidden"
class=
"page-load"
id=
"u_label"
/>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
客户标签
</a></li>
<li
class=
"active"
>
新增
</li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
<a
href=
"#modal-edit"
data-toggle=
"modal"
class=
"btn btn-default edit_add"
><i
class=
"icon-plus"
></i>
新增
</a>
</li>
</ul>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed text-center"
>
<thead>
<tr>
<th
class=
"text-center"
>
标签ID
</th>
<th
class=
"text-center"
>
标签名称
</th>
<th
class=
"text-center"
>
新增时间
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
id=
"u_label_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper//分页 -->
<div
class=
"text-right pageinfo"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--编辑-->
<div
class=
"modal fade"
id=
"modal-edit"
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"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
新增标签:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"title"
placeholder=
"不能多于5个字"
type=
"text"
value=
""
id=
"title"
>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
application/index/view/member/users_list.html
View file @
c415037a
This diff is collapsed.
Click to expand it.
application/index/view/remark/remark_follow_index.html
View file @
c415037a
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"RemarkFollowIndex"
/>
<style>
.modal-body
{
height
:
600px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -40,7 +47,7 @@
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"
business
_list"
>
<tbody
class=
"text-center"
id=
"
follow
_list"
>
<!--<tr>-->
<!--<td>212</td>-->
<!--<td>商场</td>-->
...
...
@@ -76,69 +83,7 @@
</div>
</div>
<div
class=
"modal fade"
id=
"modal-delete"
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"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--设置案场权限人,修改盘方-->
<div
class=
"modal fade"
id=
"modal-anch"
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"
id=
"myModalLabel"
>
设置案场权限人
</h4>
</div>
<div
class=
"modal-body"
>
<form
id=
"submit_agent"
>
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia"
>
<!--号码匹配名字-->
<ul
class=
"phone_list"
></ul>
</div>
<img
src=
"/resource/image/jia2@2x.png"
class=
"jia"
>
<input
type=
"hidden"
name=
"ues_id"
class=
"houseinfos_id"
>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_follow"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--操作记录-->
<div
class=
"modal fade"
id=
"modal-record"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
...
...
@@ -148,16 +93,43 @@
×
</button>
<h4
class=
"modal-title"
>
操作记录
客户资料/跟进
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"caozuo_hide"
>
<thead>
<tr>
<td
colspan=
"9"
>
<form
id=
"form1"
>
<span
class=
"fore-span ld-Marheight"
>
客户编号:
</span>
<span
class=
"fore-span ld-Marheight"
id=
"cus_id"
></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_name"
name=
"name"
type=
"text"
>
<select
class=
"form-control btn4 ld-Marheight"
id=
"sex"
>
<option
value=
""
class=
"successModel"
>
性别
</option>
<option
value=
"0"
>
男
</option>
<option
value=
"1"
>
女
</option>
</select>
<span
class=
"fore-span ld-Marheight"
>
电话:
</span>
<span
class=
"fore-span ld-Marheight"
id=
"cus_phone"
></span>
<div
class=
"row"
>
</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"
>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
盘方修改记录
</th>
<th
class=
"text-center"
>
操作
人
</th>
<th
class=
"text-center"
>
操作
时间
</th>
<th
class=
"text-center"
>
跟进内容
</th>
<th
class=
"text-center"
>
跟进
人
</th>
<th
class=
"text-center"
>
跟进
时间
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"caozuo_table"
>
...
...
@@ -165,64 +137,15 @@
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--是否独家-->
<div
class=
"modal fade"
id=
"modal-dujia"
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"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
是否独家:
</label>
<select
class=
"form-control btn6"
id=
"sel_dujia"
>
<option
value=
"null"
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家合同上传(小于10张):
</label>
<span
id=
"liudan_pic_pre"
></span>
<input
readonly=
"readonly"
type=
"hidden"
name=
"liudan_pic_pre"
class=
"form-control btn6"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default liudan_pic_btn"
id=
"liudan_pic_btn"
type=
"button"
>
选择图片
</button>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家代理有效期:
</label>
<input
class=
"form-control btn5 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date_dujia"
name=
"start_date_dujia"
type=
"date"
>
<span
class=
"fore-span"
>
-
</span>
<input
class=
"form-control btn5 "
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date_dujia"
name=
"end_date_dujia"
type=
"date"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家方:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"exclusive"
placeholder=
"请输入姓名或手机号码"
type=
"text"
value=
""
id=
"exclusive"
>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_
follow2
"
data-dismiss=
"modal"
>
提交
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary submit_
edit
"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
</div>
public/resource/js/RemarkFollowIndex.js
View file @
c415037a
define
([
'doT'
,
'text!temp/remark_follow_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
business
=
{
follow
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
...
...
@@ -10,67 +10,91 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
ldHtml
:
$
(
'.phone_list'
),
boxphoto
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
business
.
getList
(
0
);
business
.
event
();
follow
.
getList
(
0
);
follow
.
event
();
},
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
business
.
getList
(
1
);
follow
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
});
},
Submit_follow
:
function
()
{
//提交案场权限人数据
var
agents_id
=
""
;
var
_agents_id
=
""
;
$
(
"input[name='ues_id']"
).
each
(
function
()
{
//拼接经纪人id
var
s
=
$
(
this
).
val
();
var
m
=
s
.
match
(
/
[^
-
]
+
(?=[
-
])
/g
);
if
(
m
===
null
)
{
return
false
;
}
else
{
agents_id
+=
","
+
m
[
0
];
_agents_id
=
agents_id
.
substring
(
1
);
Caozuo
:
function
(){
//获取跟进详情的数据
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
data
:
{
"user_id"
:
follow
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
"#cus_name"
).
val
(
data
.
data
.
user_info
.
user_nick
);
//姓名
$
(
"#sex"
).
val
(
data
.
data
.
user_info
.
sex
);
//性别
$
(
"#cus_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//电话
$
(
"#cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//上传时间
$
(
"#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
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/
addHousesAgents
'
,
'url'
:
'/index/
pcEditClient
'
,
data
:
{
"houses_id"
:
business
.
house_id
,
"type"
:
business
.
type
,
"agents_id"
:
_agents_id
"id"
:
follow
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
""
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
(
"#modal-anch"
).
hide
;
}
}
else
{
$
(
"#modal-anch"
).
hide
;
}
}
});
},
getList
:
function
(
pageNo
)
{
business
.
pageNo
=
pageNo
;
follow
.
pageNo
=
pageNo
;
var
_startDateObj
=
$
(
'#start_date'
),
_endDateObj
=
$
(
'#end_date'
),
_customerNameObj
=
$
(
'#customer_name'
),
_customerPhoneObj
=
$
(
'#customer_phone'
),
_followContentObj
=
$
(
'#follow_content'
);
var
params
=
{
'pageNo'
:
business
.
pageNo
,
'pageSize'
:
business
.
pageSize
'pageNo'
:
follow
.
pageNo
,
'pageSize'
:
follow
.
pageSize
};
_startDateObj
.
val
()
!=
''
&&
(
params
.
start_date
=
_startDateObj
.
val
());
_endDateObj
.
val
()
!=
''
&&
(
params
.
start_date
=
_endDateObj
.
val
());
...
...
@@ -89,14 +113,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'remark_follow_tpl'
).
innerHTML
);
$
(
"#
business
_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#
follow
_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
business
.
pageSize
,
every
:
follow
.
pageSize
,
onClick
:
function
(
el
)
{
business
.
getList
(
el
.
num
.
current
);
follow
.
getList
(
el
.
num
.
current
);
}
});
}
else
{
...
...
@@ -117,5 +141,5 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
}
};
return
business
;
return
follow
;
});
\ No newline at end of file
public/resource/js/u_label.js
0 → 100644
View file @
c415037a
define
([
'doT'
,
'text!temp/u_label_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
u_label
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
pageNum
:
10
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
u_label
.
getList
();
u_label
.
event
();
},
event
:
function
()
{
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
u_label
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
u_label
.
Edit
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
u_label
.
Submit_edit
();
u_label
.
getList
();
});
},
Edit
:
function
(){
//获取
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/updateULabel'
,
//获取编辑数据
data
:
{
"id"
:
u_label
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
data
)
{
$
(
"input[name = title]"
).
val
(
data
.
data
.
name
);
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_edit
:
function
(){
//提交编辑的信息
var
par
=
{};
par
.
id
=
u_label
.
house_id
;
par
.
name
=
$
(
"input[name =title]"
).
val
();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/updateULabel'
,
data
:
par
,
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
}
else
{
alert
(
data
.
msg
);
}
}
});
},
getList
:
function
(
pageNo
)
{
u_label
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
u_label
.
pageNo
;
params
.
pageSize
=
u_label
.
pageSize
;
$
.
ajax
({
url
:
'/index/getULabelsList'
,
//列表数据
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'label_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#u_label_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
if
(
data
.
data
.
cz
){
$
.
each
(
data
.
data
.
cz
,
function
(
i
,
item
)
{
var
savetype
=
item
.
bt
;
switch
(
savetype
)
{
case
"add"
:
$
(
".edit_add"
).
show
();
$
(
".edit"
).
hide
();
break
;
case
"save"
:
$
(
".edit"
).
show
();
$
(
".edit_add"
).
hide
();
break
;
}
});
}
else
{
$
(
".edit_add"
).
hide
();
$
(
".edit"
).
hide
();
}
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
u_label
.
pageSize
,
onClick
:
function
(
el
)
{
u_label
.
getList
(
el
.
num
.
current
);
}
});
}
});
}
};
return
u_label
;
});
\ No newline at end of file
public/resource/js/user.js
View file @
c415037a
...
...
@@ -48,17 +48,73 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
user
.
delete_user
(
params
);
});
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
user
.
edit_add
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
Caozuo
();
});
$
(
"#edit_user"
).
click
(
function
()
{
var
params
=
{};
params
.
id
=
$
(
"#edit_id"
).
val
();
params
.
type
=
'edit'
;
params
.
user_
phone
=
$
(
"#edit_user_form input[name='phone']
"
).
val
();
params
.
pwd
=
$
(
"#edit_user_form input[name='password']"
).
val
();
params
.
user_nick
=
$
(
"#inputEmail3"
).
val
()
;
params
.
user_
nick
=
$
(
"#inputEmail3
"
).
val
();
params
.
pwd
=
$
(
"#edit_user_form input[name='password']"
).
val
();
user
.
edit_user
(
params
);
});
},
edit_add
:
function
()
{
//提交跟进
$
.
ajax
({
url
:
'/index/pcAdduser'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
house_id
,
"content"
:
$
(
"#genj_text"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Caozuo
:
function
(){
//获取跟进详情的数据
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
data
:
{
"user_id"
:
user
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
"#cus_name"
).
val
(
data
.
data
.
user_info
.
user_nick
);
//姓名
$
(
"#sex"
).
val
(
data
.
data
.
user_info
.
sex
);
//性别
$
(
"#cus_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//电话
$
(
"#cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//上传时间
$
(
"#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
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
getList
:
function
(
pageNo
)
{
user
.
pageNo
=
pageNo
;
var
params
=
{};
...
...
@@ -129,9 +185,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
});
},
edit_user
:
function
(
params
)
{
edit_user
:
function
(
params
)
{
//添加客户
$
.
ajax
({
url
:
'/index/
user_add
'
,
url
:
'/index/
pcEditClient
'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
...
...
public/resource/template/u_label_template_tpl.html
0 → 100644
View file @
c415037a
<script
id=
"label_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
public/resource/template/user_template_tpl.html
View file @
c415037a
...
...
@@ -2,22 +2,52 @@
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_nick"
]
||
''
%
]
[
%
if
(
it
[
item
][
"user_pic"
])
{
%
]
<
img
class
=
"img_header img-rounded"
src
=
'[%= it[item]["user_pic"] %]'
/>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_nick"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"sex"
]
==
0
)
{
%
]
保密
[
%
}
else
if
(
it
[
item
][
"sex"
]
==
1
)
{
%
]
男
[
%
}
else
{
%
]
女
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"realname"
]
||
'---'
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"follow_time"
]
==
null
)
{
%
]
--
[
%
}
else
{
%
]
[
%=
it
[
item
][
"follow_time"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"source"
]
==
10
)
{
%
]
客户
c
端注册
[
%
}
else
if
(
it
[
item
][
"source"
]
==
20
)
{
%
]
经纪人报备时添加
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"status"
]
==
-
1
)
{
%
]
未激活
[
%
}
else
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
正常
[
%
}
else
{
%
]
冻结
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success
"
href
=
"#modal-do"
data
-
toggle
=
"modal"
onclick
=
"edit(this)"
data
-
id
=
"[%= it[item]["
id
"] %]"
>
<
a
class
=
"btn1 btn-success
caozuo"
href
=
"#modal_add_user"
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"] %]'
>
删除
<
a
class
=
"btn1 btn-
success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
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"] %]'
>-->
<!--
删除
-->
<!--<
/a>--
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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