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
6057fe18
Commit
6057fe18
authored
Nov 14, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
职称列表 加城市搜索
parent
172eb88c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
professionalListCon.html
application/index/view/broker/professionalListCon.html
+4
-1
professionalList.js
public/resource/js/professionalList.js
+23
-0
No files found.
application/index/view/broker/professionalListCon.html
View file @
6057fe18
...
@@ -114,7 +114,10 @@
...
@@ -114,7 +114,10 @@
<tr>
<tr>
<td
colspan=
"11"
>
<td
colspan=
"11"
>
<form
id=
"maintable_form_search"
>
<form
id=
"maintable_form_search"
>
<select
class=
"form-control btn2-city ld-Marheight-city p_city_choose_site"
>
<option
value=
"10001"
>
上海市
</option>
<option
value=
"10002"
>
杭州市
</option>
</select>
<div
class=
"left-phone"
>
<div
class=
"left-phone"
>
<input
class=
"form-control margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name_text"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name_text"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<!--<ul class="user-ul-agent"></ul>-->
<!--<ul class="user-ul-agent"></ul>-->
...
...
public/resource/js/professionalList.js
View file @
6057fe18
...
@@ -15,6 +15,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -15,6 +15,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
professional
.
event
();
professional
.
event
();
professional
.
getSiteList
();
professional
.
getList
(
1
);
professional
.
getList
(
1
);
},
},
...
@@ -186,6 +187,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -186,6 +187,7 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
'name'
:
$
(
'#user_agent_name_text'
).
val
(),
'name'
:
$
(
'#user_agent_name_text'
).
val
(),
'phone'
:
$
(
'#user_agent_phone'
).
val
(),
'phone'
:
$
(
'#user_agent_phone'
).
val
(),
'position'
:
professional
.
mainTabIndex
,
'position'
:
professional
.
mainTabIndex
,
'site_id'
:
$
(
'.p_city_choose_site'
).
val
(),
};
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
...
@@ -283,6 +285,26 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
...
@@ -283,6 +285,26 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
$
(
".user-ul-agent-add"
).
html
(
''
);
$
(
".user-ul-agent-add"
).
html
(
''
);
professional
.
agent_id_choose_add
=
$
(
obj
).
attr
(
"data-id"
);
professional
.
agent_id_choose_add
=
$
(
obj
).
attr
(
"data-id"
);
},
},
getSiteList
:
function
(){
$
(
".p_city_choose_site"
).
html
(
''
);
$
.
ajax
({
url
:
'/index/getSiteList'
,
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
.
list
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".p_city_choose_site"
).
append
(
str
);
}
}
});
}
};
};
return
professional
;
return
professional
;
});
});
\ No newline at end of file
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