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
d2bed045
Commit
d2bed045
authored
Nov 05, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 默认城市
parent
cfe7bd08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
houseList.js
public/resource/js/houseList.js
+5
-0
user.js
public/resource/js/user.js
+5
-0
No files found.
public/resource/js/houseList.js
View file @
d2bed045
...
...
@@ -13,6 +13,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
};
};
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
business
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -101,6 +102,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".shop_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_str
=
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
$
(
".shop_city_choose_site_list"
).
append
(
_str
);
}
}
});
...
...
public/resource/js/user.js
View file @
d2bed045
...
...
@@ -138,6 +138,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".user_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_siteID
=
user_info_obj
.
site_id
;
var
_str
=
'<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