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
8459ea99
Commit
8459ea99
authored
Jul 04, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
城市定位 权限
parent
0c121901
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
edit.html
application/index/view/houses/edit.html
+2
-2
shop_edit.js
public/resource/js/shop_edit.js
+21
-0
No files found.
application/index/view/houses/edit.html
View file @
8459ea99
...
...
@@ -669,11 +669,11 @@
<div
id=
"address_city_title"
>
上海市
</div>
<div
class=
"select-search"
>
<select
name=
""
id=
"select-city-search"
class=
"form-control"
>
<option
value=
"上海市"
>
上海市
</option>
<
!--<
option value="上海市">上海市</option>
<option value="杭州市">杭州市</option>
<option value="深圳市">深圳市</option>
<option value="广州市">广州市</option>
<option
value=
"北京市"
>
北京市
</option>
<option value="北京市">北京市</option>
-->
</select>
</div>
<div
class=
"crile"
>
...
...
public/resource/js/shop_edit.js
View file @
8459ea99
...
...
@@ -8,6 +8,27 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//初始化dot
user
.
event
();
$
(
'#pf_tel_jia'
).
hide
();
// 城市定位
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
"#select-city-search"
).
append
(
str
);
}
else
{
$
(
"#select-city-search"
).
append
(
''
);
}
}
});
},
upload_id
:
0
,
event
:
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