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
0b45a3da
Commit
0b45a3da
authored
Nov 01, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台 客户列表 商铺推广 修改
parent
b105bc08
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
71 deletions
+35
-71
index.html
application/index/view/auth/index.html
+7
-3
houseList.html
application/index/view/houses/houseList.html
+4
-1
users_list.html
application/index/view/member/users_list.html
+5
-1
user.js
public/resource/js/user.js
+19
-66
No files found.
application/index/view/auth/index.html
View file @
0b45a3da
...
@@ -147,9 +147,13 @@
...
@@ -147,9 +147,13 @@
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight"
>
<br
/>
<br
/>
</div>
<div
class=
"shangpu_tags_area_edit ld-Marheight"
></div>
<br
/>
<br
/>
<br
/>
<br
/>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
...
...
application/index/view/houses/houseList.html
View file @
0b45a3da
...
@@ -186,6 +186,9 @@
...
@@ -186,6 +186,9 @@
font-weight
:
bold
;
font-weight
:
bold
;
margin
:
0
20px
;
margin
:
0
20px
;
}
}
.modal-dialog-tuiguang
{
width
:
966px
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -472,7 +475,7 @@
...
@@ -472,7 +475,7 @@
</div>
</div>
<!--生成推广链接-->
<!--生成推广链接-->
<div
class=
"modal fade"
id=
"modal_link"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<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-dialog modal-dialog-one
modal-dialog-tuiguang
"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
...
...
application/index/view/member/users_list.html
View file @
0b45a3da
...
@@ -354,6 +354,9 @@
...
@@ -354,6 +354,9 @@
overflow
:
hidden
;
overflow
:
hidden
;
display
:
none
;
display
:
none
;
}
}
.ld-Marheight-tags
{
margin-top
:
20px
;
}
</style>
</style>
<!--导航star-->
<!--导航star-->
...
@@ -385,6 +388,7 @@
...
@@ -385,6 +388,7 @@
<tr>
<tr>
<td
colspan=
"11"
>
<td
colspan=
"11"
>
<form
action=
""
method=
"get"
id=
"form_search"
>
<form
action=
""
method=
"get"
id=
"form_search"
>
<select
class=
"form-control btn2-city ld-Marheight user_city_choose_site_list"
></select>
<!--<select class="form-control btn2 ld-Marheight" id="user_area_choose">
<!--<select class="form-control btn2 ld-Marheight" id="user_area_choose">
<option value="" selected="selected">区域筛选</option>
<option value="" selected="selected">区域筛选</option>
</select>-->
</select>-->
...
@@ -1240,7 +1244,7 @@
...
@@ -1240,7 +1244,7 @@
<tr>
<tr>
<td
colspan=
"3"
>
<td
colspan=
"3"
>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight"
>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight
-tags
"
>
</div>
</div>
<!--<select class="form-control btn4 ld-Marheight" id="user_city_edit">
<!--<select class="form-control btn4 ld-Marheight" id="user_city_edit">
<option value="">请选择城市</option>
<option value="">请选择城市</option>
...
...
public/resource/js/user.js
View file @
0b45a3da
...
@@ -89,19 +89,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -89,19 +89,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
// $('#end_date').val(day_end);//客户列表 进来 默认时间 一个月
// $('#end_date').val(day_end);//客户列表 进来 默认时间 一个月
//默认 筛选求租客户
//默认 筛选求租客户
$
(
"select[name=public_status]"
).
val
(
'0'
);
$
(
"select[name=public_status]"
).
val
(
'0'
);
user
.
event
();
user
.
event
();
//新增 默认上海
// user.getCityAreaList(310100, function(_data) {
// var _str = '<option value="">全部</option>';
// $.each(_data, function(i, item) {
// _str += '<option value="' + item.fullName + '">' + item.fullName + '</option>';
// });
// $('#user_area_add').html(_str);
// console.log('默认');
// });
//汉化实现
//汉化实现
;(
function
(
$
){
;(
function
(
$
){
$
.
fn
.
datetimepicker
.
dates
[
'zh-CN'
]
=
{
$
.
fn
.
datetimepicker
.
dates
[
'zh-CN'
]
=
{
...
@@ -135,6 +123,24 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -135,6 +123,24 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"select[name=landlord_status]"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"select[name=landlord_status]"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"select[name=landlord_status]"
).
val
(
3
);
$
(
"select[name=landlord_status]"
).
val
(
3
);
};
};
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".user_city_choose_site_list"
).
append
(
str
);
}
}
});
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
...
@@ -355,8 +361,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -355,8 +361,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
});
});
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
// $("#genj_text").val('');
// $("input[name = 'user_status']:checked").removeAttr("checked");
user
.
getGenjinLabel
();
user
.
getGenjinLabel
();
});
});
...
@@ -490,11 +494,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -490,11 +494,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//拨打手机号
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
user
.
user_Call
();
user
.
user_Call
();
// if(is_outpace_call_num == '0'){
// user.user_Call();
// }else{
// layerTipsX('该客户今日已达拨打上限,请明日再来');
// }
});
});
//没打通手机号
//没打通手机号
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
...
@@ -621,16 +620,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -621,16 +620,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
_this
.
parent
().
html
(
''
).
hide
();
});
});
//拨打电话相关
//拨打电话相关
//跟进模态框,列表标签的点击事件
//跟进模态框,列表标签的点击事件
_doc
.
on
(
'click'
,
'.genjin-mark-area-alink>a'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.genjin-mark-area-alink>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -808,7 +798,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -808,7 +798,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
};
};
//获取跟进标签列表信息
//获取跟进标签列表信息
console
.
log
(
_userId
);
_userId
&&
$
.
ajax
({
_userId
&&
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
ServerHostTempC
+
'/broker/getULabelsListApp'
,
url
:
ServerHostTempC
+
'/broker/getULabelsListApp'
,
...
@@ -1129,11 +1118,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1129,11 +1118,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
}
}
}
// if(user_info_obj.id==1){
// alert('当前用户没有权限提交约带看');
// return false;
// }
if
(
arr_look
.
length
<
0
||
arr_look
.
length
==
0
){
if
(
arr_look
.
length
<
0
||
arr_look
.
length
==
0
){
alert
(
'请选择约带看商铺'
);
alert
(
'请选择约带看商铺'
);
return
false
;
return
false
;
...
@@ -1394,8 +1378,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1394,8 +1378,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
// alert(data.msg);
// $("#modal-record").modal('hide');
}
else
{
}
else
{
alert
(
data
.
msg
)
alert
(
data
.
msg
)
}
}
...
@@ -1477,7 +1459,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1477,7 +1459,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'修改成功'
);
alert
(
'修改成功'
);
user
.
getGenjincon
();
user
.
getGenjincon
();
$
(
'#genj_text'
).
val
(
''
);
$
(
'#genj_text'
).
val
(
''
);
// $("#modal-record").modal('hide');
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
@@ -1493,16 +1474,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1493,16 +1474,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
}
},
},
//
// 批量修改客方
// 批量修改客方
//
modify_add
:
function
()
{
//modify_add批量修改客方
modify_add
:
function
()
{
//modify_add批量修改客方
var
old_agents_text
=
$
(
'.old_agents'
).
val
();
var
old_agents_text
=
$
(
'.old_agents'
).
val
();
var
new_agents_text
=
$
(
'.new_agents'
).
val
();
var
new_agents_text
=
$
(
'.new_agents'
).
val
();
console
.
log
(
$
(
'.phone_jia:eq(0)'
).
attr
(
'data-id'
));
console
.
log
(
$
(
'.phone_jia:eq(0)'
).
attr
(
'data-id'
));
console
.
log
(
$
(
'.phone_jia:eq(1)'
).
attr
(
'data-id'
));
console
.
log
(
$
(
'.phone_jia:eq(1)'
).
attr
(
'data-id'
));
// console.log($('.old_agents').attr('name'));
if
(
old_agents_text
==
''
)
{
if
(
old_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
alert
(
'请输入经纪人内容为空'
);
return
false
;
return
false
;
...
@@ -1550,7 +1527,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1550,7 +1527,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
...
@@ -1577,12 +1553,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1577,12 +1553,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))
&&
(
item
.
checked
=
'checked'
);
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))
&&
(
item
.
checked
=
'checked'
);
});
});
//获取 站点城市(详情)
// data.data.user_info['site_ids'] && $.each($('.roomTagDetail'), function(i, item) {
// if(~data.data.user_info['site_ids'].indexOf(item.getAttribute('data-id'))){
// site_detail=item.value+','+site_detail ;
// }
// });
$
(
'.shangpu_tags_area_detail'
).
show
();
$
(
'.shangpu_tags_area_detail'
).
show
();
var
site_detail
=
data
.
data
.
user_info
.
site_name
.
join
(
','
);
var
site_detail
=
data
.
data
.
user_info
.
site_name
.
join
(
','
);
$
(
'.shangpu_tags_area_detail'
).
html
(
site_detail
);
$
(
'.shangpu_tags_area_detail'
).
html
(
site_detail
);
...
@@ -1738,18 +1708,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1738,18 +1708,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
first_login_end
=
$
.
trim
(
$
(
"#first_login_end"
).
val
());
params
.
first_login_end
=
$
.
trim
(
$
(
"#first_login_end"
).
val
());
params
.
is_single_homeowner
=
$
.
trim
(
$
(
"select[name=landlord_status]"
).
val
());
//纯房东 筛选 受权限限制
params
.
is_single_homeowner
=
$
.
trim
(
$
(
"select[name=landlord_status]"
).
val
());
//纯房东 筛选 受权限限制
params
.
is_referrer_source_user
=
$
.
trim
(
$
(
"select[name='customer_referrals_choose']"
).
val
());
//客户列表 是否转介绍 筛选
params
.
is_referrer_source_user
=
$
.
trim
(
$
(
"select[name='customer_referrals_choose']"
).
val
());
//客户列表 是否转介绍 筛选
params
.
site_id
=
$
(
'.user_city_choose_site_list'
).
val
();
//添加个人商铺和所有商铺选择功能
//添加个人商铺和所有商铺选择功能
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
// params.city = '上海市' ;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
// params.city = '杭州市' ;
}
// params.disc = $.trim($("#user_area_choose").val());//区域
// 创建时间 筛选 不能超过 2个月
var
start_
=
params
.
start_date
+
" 00:00:00"
;
var
start_
=
params
.
start_date
+
" 00:00:00"
;
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
var
start_time
=
date_start
.
getTime
();
var
start_time
=
date_start
.
getTime
();
...
@@ -1761,14 +1722,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1761,14 +1722,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'开始时间不能大于结束时间'
);
alert
(
'开始时间不能大于结束时间'
);
return
;
return
;
}
}
// 客户编号 客户姓名 客户手机号 搜索 创建时间不受限制
// if($.trim($("input[name='user']").val())||$.trim($("input[name='phone']").val())||$.trim($("input[name='userID']").val())){
// }else{
// if(cha_time > 5270400000*3){
// alert("创建时间筛选区间不能超过6个月");
// return;
// }
// }
checkLogin
();
checkLogin
();
$
.
ajax
({
$
.
ajax
({
url
:
'/index/users_list'
,
url
:
'/index/users_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