Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zuzitsu
/
UR_Village
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Suyeon Jung
2020-12-02 18:01:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cc0474119bbea8413f838cb016c34a55fa663fda
cc047411
1 parent
5b5ae90b
Add shopping, excercies category
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
24 deletions
public/img/gym.jpg
public/img/shopping.jpg
routes/category.js
views/category.ejs
public/img/gym.jpg
0 → 100644
View file @
cc04741
1.33 MB
public/img/shopping.jpg
0 → 100644
View file @
cc04741
1.91 MB
routes/category.js
View file @
cc04741
...
...
@@ -9,13 +9,6 @@ let SIGUNDONG_CODE;
// 사용자가 index 페이지에서 주소를 입력하고 넘어오면
router
.
post
(
'/'
,
function
(
req
,
res
)
{
<<<<<<<
HEAD
=======
function
callback
(
cb
){
cb
();
}
console
.
log
(
req
.
body
);
>>>>>>>
ad66cdf2973a2d21cfa2b0f6a672f59fa8a88160
let
userLocation
=
req
.
body
.
userLocation
;
// let userSi = req.body.si
// let userDong = req.body.dong;
...
...
@@ -41,17 +34,6 @@ router.post('/', function(req, res) {
xyList
.
push
(
result
.
documents
[
0
].
address
.
x
);
xyList
.
push
(
result
.
documents
[
0
].
address
.
y
);
console
.
log
(
xyList
);
callback
(
function
(){
//버스api
})
callback
(
function
(){
//지하철api
})
callback
(
function
(){
//버스+지하철
})
}
})
res
.
render
(
'category'
,
{
userLocation
:
req
.
body
.
userLocation
});
...
...
views/category.ejs
View file @
cc04741
...
...
@@ -29,7 +29,7 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
음식
</h5>
<p
class=
"card-text"
>
주변 음식점의 수
</p>
<a
href=
"
#
"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"
/select/food
"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
...
...
@@ -37,7 +37,7 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
학군
</h5>
<p
class=
"card-text"
>
주변 학교, 학원 환경
</p>
<a
href=
"
#
"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"
/select/school
"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
...
...
@@ -45,7 +45,7 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
공원
</h5>
<p
class=
"card-text"
>
주변 공원
</p>
<a
href=
"
#
"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"
/select/park
"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
...
...
@@ -53,7 +53,7 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
대중교통
</h5>
<p
class=
"card-text"
>
대중교통 편리도
</p>
<a
href=
"
#
"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"
/select/transport
"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
...
...
@@ -61,7 +61,7 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
안전
</h5>
<p
class=
"card-text"
>
주변 경찰서, 범죄자 인근~
</p>
<a
href=
"
#
"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"
/select/safe
"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
...
...
@@ -69,7 +69,23 @@
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
여가
</h5>
<p
class=
"card-text"
>
주변 문화시설
</p>
<a
href=
"#"
class=
"btn btn-primary"
>
검사!
</a>
<a
href=
"/select/culture"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
<img
src=
"/img/shopping.jpg"
class=
"card-img-top"
alt=
"..."
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
쇼핑
</h5>
<p
class=
"card-text"
>
주변 백화점, 마트, 재래시장
</p>
<a
href=
"/select/culture"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
<div
class=
"card"
style=
"width: 18rem;"
>
<img
src=
"/img/gym.jpg"
class=
"card-img-top"
alt=
"..."
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
운동
</h5>
<p
class=
"card-text"
>
주변 운동시설
</p>
<a
href=
"/select/culture"
class=
"btn btn-primary"
>
검사!
</a>
</div>
</div>
</div>
...
...
Please
register
or
login
to post a comment