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
6c72a893
Commit
6c72a893
authored
Sep 06, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
0527912a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
10 deletions
+34
-10
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+9
-2
houseFollowUp.js
public/resource/js/houseFollowUp.js
+7
-1
houseList.js
public/resource/js/houseList.js
+5
-2
user.js
public/resource/js/user.js
+13
-5
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
6c72a893
...
...
@@ -56,7 +56,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
'#end_date'
).
val
(
day_end
);
//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选
user
.
initializationCityFunction
();
user
.
getList
();
user
.
event
();
//时间控件初始化
//bootstrap 时间控件选择
...
...
@@ -115,9 +114,11 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#user_area_choose'
).
val
(
''
);
user
.
getList
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
user
.
setUpCityFunction
(
_id
);
$
(
'#user_area_choose'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getCityAreaList
(
_id
,
function
(
_data
)
{
...
...
@@ -131,6 +132,10 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
}
else
{};
});
//自动筛选 区域
_doc
.
on
(
'input'
,
'#user_area_choose'
,
function
()
{
user
.
getList
();
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit'
,
function
()
{
var
_this
=
$
(
this
);
...
...
@@ -1114,7 +1119,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params
.
industry_type
=
$
(
".industry_type_two_1"
).
val
();
params
.
price_demand
=
$
(
".price_demand_1"
).
val
();
params
.
area_demand
=
$
(
".area_demand_1"
).
val
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
;
// params.referrer_id = user.user_id_edit_introduce;
params
.
referrer_id
=
user
.
user_id_edit_introduce
?
user
.
user_id_edit_introduce
:
0
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
...
...
@@ -1643,6 +1649,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
"#user_area_choose"
).
html
(
_str
);
});
}
else
{};
user
.
getList
();
}
});
},
...
...
public/resource/js/houseFollowUp.js
View file @
6c72a893
...
...
@@ -68,7 +68,6 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$
(
'#create_time_end'
).
val
(
day_end
);
//商铺跟进 添加 默认时间 一个月
//初始化城市 区域筛选
house
.
initializationCityFunction
();
house
.
getList
(
0
);
//商铺跟进列表
// 部门 门店 二级联动
house
.
getDistrict
(
function
()
{
...
...
@@ -132,6 +131,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#shop_area_id'
).
val
(
''
);
house
.
getList
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
...
...
@@ -152,6 +152,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
});
}
else
{};
});
_doc
.
on
(
'input'
,
'#shop_area_id'
,
function
()
{
house
.
getList
();
});
//查看点击事件
_doc
.
on
(
'click'
,
'a[href="#modal_shop_detail"]'
,
function
(
e
){
e
.
preventDefault
();
...
...
@@ -387,7 +390,10 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$
(
"#shop_area_id"
).
html
(
_str
);
});
}
else
{};
house
.
getList
(
0
);
//商铺跟进列表
}
});
},
//设置 城市
...
...
public/resource/js/houseList.js
View file @
6c72a893
...
...
@@ -80,7 +80,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
// $('#end_date').val(day_end);//去掉默认时间
//初始化城市 区域筛选
business
.
initializationCityFunction
();
business
.
getList
(
1
);
business
.
event
();
business
.
resetLoad
();
},
...
...
@@ -253,11 +252,12 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#shop_area_id'
).
val
(
''
);
business
.
getList
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
business
.
setUpCityFunction
(
_id
);
$
(
'#
user_area_choose
'
).
html
(
''
);
//先清空
$
(
'#
shop_area_id
'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
...
...
@@ -1188,7 +1188,10 @@ if(data.code == 200) {
$
(
"#shop_area_id"
).
html
(
_str
);
});
}
else
{};
business
.
getList
(
1
);
}
});
},
//设置 城市
...
...
public/resource/js/user.js
View file @
6c72a893
...
...
@@ -87,7 +87,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
'#end_date'
).
val
(
day_end
);
//客户列表 进来 默认时间 一个月
//默认 筛选求租客户
$
(
"select[name=public_status]"
).
val
(
'0'
);
user
.
getList
();
user
.
event
();
//新增 默认上海
user
.
getCityAreaList
(
310100
,
function
(
_data
)
{
...
...
@@ -211,6 +211,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#user_area_choose'
).
val
(
''
);
user
.
getList
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
...
...
@@ -228,6 +229,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
});
}
else
{};
});
_doc
.
on
(
'input'
,
'#user_area_choose'
,
function
()
{
user
.
getList
();
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit'
,
function
()
{
var
_this
=
$
(
this
);
...
...
@@ -1203,9 +1207,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
if
(
data
.
data
.
user_date
){
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
}
$
(
".user-ul-edit-introduce"
).
html
(
user_ul
);
}
else
{
...
...
@@ -1330,7 +1337,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
industry_type
=
$
(
".industry_type_two_1"
).
val
();
params
.
price_demand
=
$
(
".price_demand_1"
).
val
();
params
.
area_demand
=
$
(
".area_demand_1"
).
val
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
?
user
.
user_id_edit_introduce
:
""
;
params
.
referrer_id
=
user
.
user_id_edit_introduce
?
user
.
user_id_edit_introduce
:
0
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
...
...
@@ -1874,6 +1881,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"#user_area_choose"
).
html
(
_str
);
});
}
else
{};
user
.
getList
();
}
});
},
...
...
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