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

Jang

parent 48a22a18
Branches
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
</div> </div>
<div id="UserClub"> <div id="UserClub">
<h3>Club Info</h3> <h3>Club Info</h3>
<router-link to='/joinedClub'>JClub</router-link>
</div> </div>
</div> </div>
</template> </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' ...@@ -4,6 +4,7 @@ import Home from '../views/Home.vue'
import Login from '../views/Login.vue' import Login from '../views/Login.vue'
import SignUp from '../views/SignUp.vue' import SignUp from '../views/SignUp.vue'
import Club from '../views/Club.vue' import Club from '../views/Club.vue'
import joinedClub from '../views/JoinedClub.vue'
Vue.use(VueRouter) Vue.use(VueRouter)
...@@ -37,6 +38,11 @@ const routes = [ ...@@ -37,6 +38,11 @@ const routes = [
path: '/club', path: '/club',
name: 'club', name: 'club',
component: 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 @@ ...@@ -9,8 +9,6 @@
</div> </div>
<button v-on:click="btnLogin">Login</button><br> <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> <router-link to='/signup'><p>If you are not yet a member ...</p></router-link>
</div> </div>
</template> </template>
......
...@@ -47,11 +47,16 @@ export default { ...@@ -47,11 +47,16 @@ export default {
univ: '', univ: '',
department: '', department: '',
sid: '', sid: '',
ifsuper: '', ifsuper: 0,
} }
}, },
methods: { methods: {
async btnSignUp(){ 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', { const res = await this.$http.post('http://jnhonlinux.ddns.net:3000/signup', {
'uid': this.uid, 'uid': this.uid,
'password': this.password, 'password': this.password,
...@@ -68,6 +73,16 @@ export default { ...@@ -68,6 +73,16 @@ export default {
} }
} }
} }
},
computed: {
sid_valid: function() {
if(!isNaN(this.sid)){
return true
} else {
return false
}
}
}
} }
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment