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
539141ff
Commit
539141ff
authored
Apr 23, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商圈查询省区市判断修改
parent
67f8fb11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
BusinessDistrict.php
application/index/controller/BusinessDistrict.php
+3
-3
business_district.js
public/resource/js/business_district.js
+0
-1
No files found.
application/index/controller/BusinessDistrict.php
View file @
539141ff
...
...
@@ -123,9 +123,9 @@ class BusinessDistrict extends Basic
public
function
regions
()
{
$params
=
$this
->
request
->
param
();
$regions
=
new
Regions
();
$params
[
'code'
]
=
empty
(
$params
[
'code'
])
?
$params
[
'code'
]
:
''
;
$params
[
'parent_code'
]
=
empty
(
$params
[
'parent_code'
])
?
$params
[
'parent_code'
]
:
''
;
$params
[
'type'
]
=
empty
(
$params
[
'type'
])
?
$params
[
'type'
]
:
''
;
$params
[
'code'
]
=
empty
(
$params
[
'code'
])
?
''
:
$params
[
'code'
]
;
$params
[
'parent_code'
]
=
empty
(
$params
[
'parent_code'
])
?
''
:
$params
[
'parent_code'
]
;
$params
[
'type'
]
=
empty
(
$params
[
'type'
])
?
''
:
$params
[
'type'
]
;
$data
=
$regions
->
getRegions
(
$params
[
'code'
],
$params
[
'parent_code'
],
$params
[
'type'
]);
return
$this
->
response
(
200
,
''
,
$data
);
}
...
...
public/resource/js/business_district.js
View file @
539141ff
...
...
@@ -156,7 +156,6 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
$
.
ajax
({
url
:
'/index/regions.html'
,
type
:
'GET'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
...
...
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