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
0ac95c8f
Commit
0ac95c8f
authored
Oct 30, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人 商铺列表 修改
parent
8be03f81
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
256 additions
and
24 deletions
+256
-24
agent.html
application/index/view/broker/agent.html
+133
-2
houseList.html
application/index/view/houses/houseList.html
+34
-0
agent.js
public/resource/js/agent.js
+79
-22
houseList.js
public/resource/js/houseList.js
+10
-0
No files found.
application/index/view/broker/agent.html
View file @
0ac95c8f
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
class=
"pull-right"
>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<ul
class=
"bread_btn"
>
<li>
<li>
<a
href=
"#modal-
edit
"
data-toggle=
"modal"
class=
"btn btn-default agent_add"
>
<a
href=
"#modal-
add
"
data-toggle=
"modal"
class=
"btn btn-default agent_add"
>
<i
class=
"icon-plus"
></i>
新增
<i
class=
"icon-plus"
></i>
新增
</a>
</a>
</li>
</li>
...
@@ -87,7 +87,95 @@
...
@@ -87,7 +87,95 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!--新增-->
<div
class=
"modal fade"
id=
"modal-add"
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=
"title_add"
>
新增经纪人666
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
用户名:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name_add"
placeholder=
"登录账户所用名称"
type=
"text"
value=
""
id=
"title_add"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
电话(登录账号):
</label>
<input
type=
"number"
class=
"form-control btn6"
name=
"phone_add"
value=
""
placeholder=
"填写手机号"
>
</div>
<!--<div class="form-group hide">
<label class="col-sm-4 control-label">密码:</label>
<input type="text" class="form-control btn6" name="password" id="password_add" value="44444" placeholder="填写密码">
</div>-->
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
所属部门:
</label>
<select
name=
"district_id_add"
class=
"form-control btn6"
>
<option
value=
""
>
选择所属部门
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
所属门店:
</label>
<select
name=
"store_id_add"
class=
"form-control btn6"
>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
性别:
</label>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex_add"
id=
"sex0_add"
value=
"0"
checked=
""
>
</div>
保密
</label>
</div>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex_add"
id=
"sex1_add"
value=
"1"
>
</div>
男
</label>
</div>
<div
class=
"radio radio-primary btn4 mr-10"
>
<label
for=
"sex0"
class=
"radio-label1"
>
<div
class=
"iradio_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
""
>
<input
type=
"radio"
name=
"sex_add"
id=
"sex2_add"
value=
"2"
>
</div>
女
</label>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
是否允许访问后台:
</label>
<select
name=
"admin_off"
id=
"admin_off_add"
class=
"form-control btn6"
>
<option
value=
"0"
>
允许
</option>
<option
value=
"1"
>
不允许
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
个人说明:
</label>
<textarea
name=
"remarks"
id=
"remarks_add"
class=
"form-control btn6"
length=
"120"
rows=
"5"
placeholder=
"请填写个人说明"
></textarea>
</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_add"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--编辑-->
<!--编辑-->
<div
class=
"modal fade"
id=
"modal-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog"
>
...
@@ -110,7 +198,7 @@
...
@@ -110,7 +198,7 @@
<label
class=
"col-sm-4 control-label"
>
电话(登录账号):
</label>
<label
class=
"col-sm-4 control-label"
>
电话(登录账号):
</label>
<input
type=
"number"
class=
"form-control btn6"
name=
"phone"
value=
""
placeholder=
"填写手机号"
>
<input
type=
"number"
class=
"form-control btn6"
name=
"phone"
value=
""
placeholder=
"填写手机号"
>
</div>
</div>
<div
class=
"form-group
hide
"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
密码:
</label>
<label
class=
"col-sm-4 control-label"
>
密码:
</label>
<input
type=
"text"
class=
"form-control btn6"
name=
"password"
id=
"password"
value=
"44444"
placeholder=
"填写密码"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"password"
id=
"password"
value=
"44444"
placeholder=
"填写密码"
>
</div>
</div>
...
@@ -166,6 +254,9 @@
...
@@ -166,6 +254,9 @@
</form>
</form>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<a
href=
"#modal-business"
data-toggle=
"modal"
class=
"btn btn-primary agent_business"
>
跨城市转勤
</a>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
...
@@ -290,3 +381,42 @@
...
@@ -290,3 +381,42 @@
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<div
class=
"modal fade"
id=
"modal-business"
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-4 control-label"
>
所属部门:
</label>
<select
name=
"district_id_business"
class=
"form-control btn6"
>
<option
value=
""
>
选择所属部门
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
所属门店:
</label>
<select
name=
"store_id_business"
class=
"form-control btn6"
>
</select>
</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_user"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/houses/houseList.html
View file @
0ac95c8f
...
@@ -180,6 +180,12 @@
...
@@ -180,6 +180,12 @@
overflow
:
hidden
;
overflow
:
hidden
;
display
:
none
;
display
:
none
;
}
}
/*推广链接 弹窗*/
#link_content
{
font-size
:
14px
;
font-weight
:
bold
;
margin
:
0
20px
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -301,6 +307,8 @@
...
@@ -301,6 +307,8 @@
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"persional_shop"
title=
"点击切换到本人商铺"
>
本人商铺
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"persional_shop"
title=
"点击切换到本人商铺"
>
本人商铺
</span>
<!-- 高级搜索 -->
<!-- 高级搜索 -->
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"main_select"
title=
"高级搜索"
>
高级搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"main_select"
title=
"高级搜索"
>
高级搜索
</span>
<!-- 高级搜索 -->
<a
href=
"#modal_link"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
>
生成推广链接
</a>
</div>
</div>
</form>
</form>
...
@@ -462,6 +470,32 @@
...
@@ -462,6 +470,32 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
<!--生成推广链接-->
<div
class=
"modal fade"
id=
"modal_link"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-one"
>
<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 modal-body-one"
>
<br>
<br>
<div>
<input
type=
"text"
id=
"hide-input-value"
style=
"opacity: 0;width: 6px;"
/>
<span
id=
"link_content"
>
https://www.tonglianjituan.com/shop_link.html?type=1
&
city=1
&
str=
</span>
<button
type=
"button"
class=
"btn btn-primary copy_link_content"
data-dismiss=
"modal"
>
复制
</button>
</div>
<br><br><br>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- #批量修改客方-->
<!-- #批量修改客方-->
<div
class=
"modal fade"
id=
"modal_modify_user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal_modify_user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-one"
>
<div
class=
"modal-dialog modal-dialog-one"
>
...
...
public/resource/js/agent.js
View file @
0ac95c8f
...
@@ -15,7 +15,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -15,7 +15,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
agent
.
getDistrict
(
function
()
{
agent
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2'
,
function
()
{
_doc
.
on
(
'input'
,
'[name=district_id],#district_id2
,[name=district_id_add],[name=district_id_business]
'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
_this
.
next
().
html
(
''
);
//先清空
...
@@ -105,24 +105,14 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -105,24 +105,14 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
});
});
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
$
(
"#title"
).
html
(
"新增经纪人"
);
$
(
"#password"
).
parent
().
addClass
(
'hide'
);
//新增不显示密码
$
(
".form-horizontal"
)[
0
].
reset
();
//重置表单
$
(
".form-horizontal"
)[
0
].
reset
();
//重置表单
agent
.
emptyInput
();
//清空表单
});
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
agent
.
confirm_old
=
''
//是否转勤 置空
agent
.
confirm_old
=
''
//是否转勤 置空
});
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
agent
.
confirm_old
=
''
//是否转勤 置空
agent
.
confirm_old
=
''
//是否转勤 置空
$
(
"#title"
).
html
(
"编辑经纪人"
);
$
(
".form-horizontal"
)[
1
].
reset
();
//重置表单
$
(
".form-horizontal"
)[
0
].
reset
();
//重置表单
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
$
(
"#password"
).
parent
().
removeClass
(
'hide'
);
//编辑显示密码
$
(
"#password"
).
attr
(
'type'
,
'text'
);
// agent.emptyInput(); //清空表单
agent
.
Edit
();
agent
.
Edit
();
});
});
...
@@ -138,6 +128,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -138,6 +128,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPcBindingList
();
agent
.
getPcBindingList
();
});
});
$
(
document
).
delegate
(
".submit_add"
,
"click"
,
function
(
e
)
{
//提交新增
e
.
preventDefault
();
e
.
stopPropagation
();
agent
.
Submit_add
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交编辑
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交编辑
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
...
@@ -186,15 +182,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -186,15 +182,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$
(
this
).
addClass
(
"isCheck"
).
removeClass
(
"btn-info"
).
addClass
(
'btn-warning'
);
$
(
this
).
addClass
(
"isCheck"
).
removeClass
(
"btn-info"
).
addClass
(
'btn-warning'
);
};
};
// if($(".yetai_checkbox:eq(0)").html() == '已离职' && $(".yetai_checkbox:eq(1)").html() == '长假'){
// params.type=2;
// }
// if($(".yetai_checkbox:eq(0)").html() == '离职' && $(".yetai_checkbox:eq(1)").html() == '已长假'){
// params.type=1;
// }
// if($(".yetai_checkbox:eq(0)").html() == '离职' && $(".yetai_checkbox:eq(1)").html() == '长假'){
// params.type=0;
// }
$
.
ajax
({
//经纪人 离职 长假
$
.
ajax
({
//经纪人 离职 长假
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/updateStatus'
,
'url'
:
'/index/updateStatus'
,
...
@@ -356,6 +343,74 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -356,6 +343,74 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
});
});
},
},
Submit_add
:
function
()
{
//提交新增的信息
var
params
=
{}
params
.
id
=
agent
.
agent_id
;
params
.
name
=
$
(
"input[name = name_add]"
).
val
();
params
.
password
=
$
(
"#password_add"
).
val
();
params
.
district_id
=
$
(
"[name = district_id_add]"
).
val
();
params
.
store_id
=
$
(
"[name = store_id_add]"
).
val
();
params
.
phone
=
$
(
"input[name = phone_add]"
).
val
();
params
.
admin_off
=
$
(
"#admin_off_add"
).
val
();
params
.
sex
=
$
(
"input[name =sex_add]:checked"
).
val
();
params
.
remarks
=
$
(
"#remarks_add"
).
val
();
params
.
status
=
$
(
"#status_add"
).
val
();
params
.
password
=
$
(
"input[name='password_add']"
).
val
();
params
.
confirm_old
=
agent
.
confirm_old
;
if
(
params
.
phone
==
''
)
{
alert
(
'手机号必填!'
);
return
false
;
}
if
(
params
.
district_id
==
''
)
{
alert
(
'所属部门必填'
);
$
(
"#modal-edit"
).
show
();
return
false
;
}
if
(
params
.
store_id
==
''
)
{
alert
(
'所属门店必填'
);
$
(
"#modal-edit"
).
show
();
return
false
;
}
if
(
params
.
phone
.
length
!=
11
)
{
alert
(
'手机号码错误!'
);
$
(
"#modal-edit"
).
show
();
return
false
;
}
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/saveAgent'
,
data
:
params
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
$
(
"#modal-edit"
).
modal
(
'hide'
);
}
else
if
(
data
.
code
==
101
){
if
(
data
.
msg
==
'转勤'
){
layer
.
open
({
content
:
'该账号已经有相同账号,请问是否转勤?(转勤 即人员调配另外一个城市)转勤后,所有商铺和客户也都会转到新建的相同手机号里,请确定是否转勤。'
,
btn
:
[
'确定转勤'
,
'取消转勤'
],
yes
:
function
(
_index
){
layer
.
close
(
_index
);
agent
.
confirm_old
=
1
;
agent
.
Submit_edit
();
}
});
}
else
{
alert
(
data
.
msg
);
}
}
else
{
}
}
});
},
Submit_edit
:
function
()
{
Submit_edit
:
function
()
{
//提交编辑的信息
//提交编辑的信息
var
params
=
{}
var
params
=
{}
...
@@ -561,6 +616,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -561,6 +616,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
});
});
$
(
'[name=district_id]'
).
append
(
str
);
$
(
'[name=district_id]'
).
append
(
str
);
$
(
'#district_id2'
).
append
(
str
);
$
(
'#district_id2'
).
append
(
str
);
$
(
'[name=district_id_add]'
).
append
(
str
);
$
(
'[name=district_id_business]'
).
append
(
str
);
fn
&&
fn
();
fn
&&
fn
();
}
}
...
...
public/resource/js/houseList.js
View file @
0ac95c8f
...
@@ -115,6 +115,16 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -115,6 +115,16 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
business
.
addphoneAgent
(
this
);
business
.
addphoneAgent
(
this
);
});
});
//点击复制按钮 复制推广 链接
_doc
.
on
(
'click'
,
'.copy_link_content'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'#hide-input-value'
).
val
(
$
(
'#link_content'
).
html
());
var
d_copy
=
document
.
getElementById
(
"hide-input-value"
);
d_copy
.
select
();
document
.
execCommand
(
"Copy"
);
alert
(
"复制成功!"
);
});
//部门 门店 二级联动
//部门 门店 二级联动
business
.
getDistrictPanFang
(
function
(){
//有了列表 点击 调用门店列表
business
.
getDistrictPanFang
(
function
(){
//有了列表 点击 调用门店列表
_doc
.
on
(
'input'
,
'#district_id_panfang'
,
function
(){
_doc
.
on
(
'input'
,
'#district_id_panfang'
,
function
(){
...
...
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