Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebProject-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JangNamhyeok
WebProject-frontend
Commits
73f56e03
Commit
73f56e03
authored
5 years ago
by
KimDoHyun
Browse files
Options
Downloads
Patches
Plain Diff
d
parent
4d0e058a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Nav.vue
+5
-6
5 additions, 6 deletions
src/components/Nav.vue
src/components/NavClub.vue
+7
-4
7 additions, 4 deletions
src/components/NavClub.vue
src/views/club_top_bar/club_Page.vue
+11
-2
11 additions, 2 deletions
src/views/club_top_bar/club_Page.vue
with
23 additions
and
12 deletions
src/components/Nav.vue
+
5
−
6
View file @
73f56e03
...
@@ -17,12 +17,11 @@
...
@@ -17,12 +17,11 @@
<router-link
to=
'/login'
v-if=
"isLogin === false"
>
로그인
</router-link><br>
<router-link
to=
'/login'
v-if=
"isLogin === false"
>
로그인
</router-link><br>
<router-link
to=
'/mypage'
v-if=
"isLogin == true"
>
마이 페이지
</router-link><br><br>
<router-link
to=
'/mypage'
v-if=
"isLogin == true"
>
마이 페이지
</router-link><br><br>
<router-link
to=
'/club'
v-if=
"isLogin == true"
>
동아리 구경
</router-link><br><br>
<router-link
to=
'/club'
v-if=
"isLogin == true"
>
동아리 구경
</router-link><br><br>
<div
style=
"list-style:none;"
v-if=
"isLogin == true"
>
내 동아리
<div
style=
"list-style:none;"
v-if=
"isLogin == true"
>
내 동아리
<div
v-for=
"club in
clublist
"
>
{{
clublist
}}
<router-link
:to=
"
{path:`/club_page/${club.club}`,params:{clubId:club.club}}">
</router-link
>
<li
v-for=
"club in clublist"
>
{{
club
.
clubname
}}
<router-link
:to=
"
{name: 'club_page',params:{clubId:club.club}}">
{{
club
.
clubname
}}
</router-link>
</
div
>
</
li
>
</div><br>
</div><br>
<div
@
click=
"$store.dispatch('logout')"
>
<div
@
click=
"$store.dispatch('logout')"
>
<router-link
to=
'/'
v-if=
"isLogin == true"
>
로그아웃
</router-link><br><br>
<router-link
to=
'/'
v-if=
"isLogin == true"
>
로그아웃
</router-link><br><br>
...
@@ -50,7 +49,7 @@ export default {
...
@@ -50,7 +49,7 @@ export default {
let
uid
=
this
.
userInfo
.
uid
let
uid
=
this
.
userInfo
.
uid
const
res
=
await
axios
.
get
(
`http://jnhonlinux.ddns.net:3000/joinedClub/user/
${
uid
}
`
)
const
res
=
await
axios
.
get
(
`http://jnhonlinux.ddns.net:3000/joinedClub/user/
${
uid
}
`
)
this
.
clublist
=
res
.
data
.
result
this
.
clublist
=
res
.
data
.
result
console
.
log
(
this
.
clublist
)
const
res2
=
await
axios
.
get
(
'
http://jnhonlinux.ddns.net:3000/club
'
)
const
res2
=
await
axios
.
get
(
'
http://jnhonlinux.ddns.net:3000/club
'
)
this
.
club
=
res2
.
data
.
result
this
.
club
=
res2
.
data
.
result
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/NavClub.vue
+
7
−
4
View file @
73f56e03
...
@@ -33,13 +33,16 @@ export default {
...
@@ -33,13 +33,16 @@ export default {
},
},
methods
:{
methods
:{
post
(){
post
(){
axios
.
post
(
`http://jnhonlinux.ddns.net:3000/freeBoard`
,{
let
id
=
this
.
$route
.
params
.
clubId
;
axios
.
post
(
`http://jnhonlinux.ddns.net:3000/freeBoard/
${
id
}
`
,{
uid
:
this
.
userInfo
.
uid
uid
:
this
.
userInfo
.
uid
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
.
data
)
let
id
=
this
.
$route
.
params
.
clubId
;
if
(
res
.
data
.
success
==
true
){
router
.
push
(
`/club_free/
${
id
}
`
)
router
.
push
(
`/club_free/
${
id
}
`
)
}
else
{
alert
(
'
Not User
'
);
}
})
})
}
}
...
...
This diff is collapsed.
Click to expand it.
src/views/club_top_bar/club_Page.vue
+
11
−
2
View file @
73f56e03
...
@@ -12,13 +12,16 @@
...
@@ -12,13 +12,16 @@
<hr/>
<hr/>
<div>
<div>
<h1>
공지사항
</h1>
<h1>
공지사항
</h1>
<div
v-for=
"notice in noticeBoard"
>
작성자:
{{
notice
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
NavClub
from
'
@/components/NavClub.vue
'
import
NavClub
from
'
@/components/NavClub.vue
'
import
axios
from
"
axios
"
export
default
{
export
default
{
name
:
'
club_page
'
,
name
:
'
club_page
'
,
...
@@ -33,13 +36,19 @@ export default {
...
@@ -33,13 +36,19 @@ export default {
univ
:
''
,
univ
:
''
,
logo
:
''
,
logo
:
''
,
produce
:
''
produce
:
''
}]
}],
noticeBoard
:[]
}
}
},
},
async
created
()
{
async
created
()
{
let
id
=
this
.
$route
.
params
.
clubId
;
let
id
=
this
.
$route
.
params
.
clubId
;
const
res
=
await
this
.
$http
.
get
(
`http://jnhonlinux.ddns.net:3000/club/
${
id
}
`
)
const
res
=
await
this
.
$http
.
get
(
`http://jnhonlinux.ddns.net:3000/club/
${
id
}
`
)
this
.
club
=
res
.
data
.
result
this
.
club
=
res
.
data
.
result
const
noticeboard
=
await
axios
.
get
(
`http://jnhonlinux.ddns.net:3000/noticeBoard/all/
${
id
}
`
)
console
.
log
(
noticeboard
)
this
.
noticeBoard
=
noticeboard
.
data
.
result
},
},
}
}
</
script
>
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment