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
e128838b
Commit
e128838b
authored
Nov 12, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上 bug修复
parent
662d024a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
houseList.js
public/resource/js/houseList.js
+6
-3
user.js
public/resource/js/user.js
+3
-2
No files found.
public/resource/js/houseList.js
View file @
e128838b
...
...
@@ -96,7 +96,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
...
...
@@ -104,7 +104,8 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$
(
".shop_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_str
=
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
var
_str1
=
'<option value="">选择城市</option>'
;
var
_str
=
_str1
+
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
$
(
".shop_city_choose_site_list"
).
append
(
_str
);
}
}
...
...
@@ -384,6 +385,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#shop_area_id'
).
html
(
''
);
//先清空
$
(
'#business_circle_id'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
...
...
@@ -409,9 +411,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
_city
=
'杭州市'
;
};
$
(
'#
user_area_choose
'
).
html
(
''
);
//先清空
$
(
'#
business_circle_id
'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getBusinessCircle
(
_id
,
_province
,
_city
,
function
(
_data
)
{
console
.
log
(
22
)
var
_str
=
'<option value="">商圈</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
name
+
'</option>'
;
...
...
public/resource/js/user.js
View file @
e128838b
...
...
@@ -132,16 +132,17 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".user_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_str1
=
'<option value="">选择城市</option>'
;
var
_city
=
user_info_obj
.
city
;
var
_siteID
=
user_info_obj
.
site_id
;
var
_str
=
'<option value="'
+
_siteID
+
'">'
+
_city
+
'</option>'
;
var
_str
=
_str1
+
'<option value="'
+
_siteID
+
'">'
+
_city
+
'</option>'
;
$
(
".user_city_choose_site_list"
).
append
(
_str
);
}
}
...
...
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