Skip to content
Snippets Groups Projects
Commit 9e3571b1 authored by JangNamhyeok's avatar JangNamhyeok
Browse files

Jang

parent 48a22a18
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
</div>
<div id="UserClub">
<h3>Club Info</h3>
<router-link to='/joinedClub'>JClub</router-link>
</div>
</div>
</template>
......
<template>
<div class="NavOfClub">
<h1>Home</h1> | <h1></h1>
</div>
</template>
\ No newline at end of file
......@@ -4,6 +4,7 @@ import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import SignUp from '../views/SignUp.vue'
import Club from '../views/Club.vue'
import joinedClub from '../views/JoinedClub.vue'
Vue.use(VueRouter)
......@@ -37,6 +38,11 @@ const routes = [
path: '/club',
name: 'club',
component: Club
},
{
path: '/joinedClub',
name: 'joinedClub',
component: joinedClub
}
]
......
<template>
<div class="joinedClub">
<NavOfClub></NavOfClub>
<h1>This is joinedClub Page</h1>
</div>
</template>
<script>
import NavOfClub from '@/components/NavOfClub.vue'
export default {
name: 'joinedClub',
components: {
NavOfClub
}
}
</script>
\ No newline at end of file
......@@ -9,8 +9,6 @@
</div>
<button v-on:click="btnLogin">Login</button><br>
{{data}} <br>
{{$store.state.nowUser}}
<router-link to='/signup'><p>If you are not yet a member ...</p></router-link>
</div>
</template>
......
......@@ -47,11 +47,16 @@ export default {
univ: '',
department: '',
sid: '',
ifsuper: '',
ifsuper: 0,
}
},
methods: {
async btnSignUp(){
if(this.uid == '' || this.password == ''){
alert('input Your Id & Pwd');
}else if(!this.sid_valid){
alert('plz input Number in StudentId');
} else {
const res = await this.$http.post('http://jnhonlinux.ddns.net:3000/signup', {
'uid': this.uid,
'password': this.password,
......@@ -68,6 +73,16 @@ export default {
}
}
}
},
computed: {
sid_valid: function() {
if(!isNaN(this.sid)){
return true
} else {
return false
}
}
}
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment