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
762650e2
Commit
762650e2
authored
Oct 22, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表 修改
parent
05b37966
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
5 deletions
+46
-5
edit.html
application/index/view/houses/edit.html
+1
-1
users_list.html
application/index/view/member/users_list.html
+3
-3
user.js
public/resource/js/user.js
+42
-1
No files found.
application/index/view/houses/edit.html
View file @
762650e2
...
...
@@ -123,7 +123,7 @@
</label>
</li>
<li
class=
"list-group-item"
id=
"shangpu_tags_area"
>
<label
for=
""
>
商铺标签(可多选)
</label>
<!--<label class="checkbox-inline">
<input type="checkbox" class="roomTag" id="" value="购物广场" name="shangpu_tags[]">购物广场
</label>
...
...
application/index/view/member/users_list.html
View file @
762650e2
...
...
@@ -593,14 +593,14 @@
</div>
<div
class=
"form-group form-group-bottom"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户所属城市:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn5"
id=
"user_city_add"
>
<div
class=
"col-sm-9"
id=
"shangpu_tags_area"
>
<
!--<
select class="form-control btn5" id="user_city_add">
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>
<select class="form-control btn5" id="user_area_add">
<option value="" selected="selected">请选择区域</option>
</select>
</select>
-->
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
...
...
public/resource/js/user.js
View file @
762650e2
...
...
@@ -374,7 +374,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
document
).
delegate
(
".add-user-new"
,
"click"
,
function
()
{
//新增客户
user
.
agent_id
=
''
;
user
.
initializationCityFunctionAdd
();
// user.initializationCityFunctionAdd();
user
.
getSiteTags
();
//获取站点 城市
});
// 跟进的提交按钮 点击
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
(
e
)
{
...
...
@@ -1803,6 +1805,45 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
});
},
//获取站点 标签
getSiteTags
:
function
()
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getSiteList'
,
data
:
{},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
var
_htmlTemp
=
''
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_htmlTemp
+=
'<label class="checkbox-inline"><input type="checkbox" class="roomTag" id="" value="{0}" data-id="{1}" name="shangpu_tags[]">{0}</label>'
.
stringFormatObj
({
'0'
:
item
.
name
,
'1'
:
item
.
id
});
});
$
(
'#shangpu_tags_area'
).
append
(
_htmlTemp
);
fn
&&
fn
();
}
else
{
alert
(
_data
[
'msg'
]);
}
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
//城市 区域 筛选
getCityAreaList
:
function
(
id
,
fn
)
{
$
.
ajax
({
...
...
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