Commit b8a7da9b authored by Kittisak Maneewong's avatar Kittisak Maneewong

add toolbar

parent b21189d1
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-toolbar-side-icon></v-toolbar-side-icon>
<v-toolbar-title class="white--text">Title</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text">Title</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-flex sm10 offset-sm-1>
</v-flex>
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-flex sm10 offset-sm-1>
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-flex>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-flex sm10 offset-sm-1>
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="120"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-flex>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/img/banner.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="120"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="120"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>search</v-icon>
</v-btn>
<v-btn icon>
<v-icon>apps</v-icon>
</v-btn>
<v-btn icon>
<v-icon>refresh</v-icon>
</v-btn>
<v-btn icon>
<v-icon>more_vert</v-icon>
</v-btn>
</v-toolbar>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-2" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title>
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4 fill-height align-center="">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4 fill-height align-center>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="indigo darken-4" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap indigo darken-4 fill-height align-center>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap color="#0d253d" fill-height align-center>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="py-2">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="120"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" height="30"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" height="60"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" height="50"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="150"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" dark color="black" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" dark class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar dark color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="white" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="white" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="white" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav pt-2">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d" > <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="my-3" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="white" class="mx-0 px-0">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="m x-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile>
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile >
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="login()">
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" @click.stop="register()">
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<template>
<div>
<v-layout row wrap fill-height align-center class="colornav pt-1">
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="#0d253d"> <!--v-if="page == 'app'"-->
<v-toolbar-title class="">
<router-link to="/"><img src="../../../public/images/logocoop.png" class="" width="140"></router-link>
</v-toolbar-title>
<v-spacer></v-spacer>
<router-link to="/">
<v-btn v-if="!responsive" flat color="white" class="mx-2 px-2">
<v-icon>home</v-icon>
</v-btn>
</router-link>
<router-link to="/showjob">
<v-btn v-if="!responsive" flat color="white" class="mx-2 px-2 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">หางานทั้งหมด</span>
</v-btn>
</router-link>
<router-link to="/employer">
<v-btn v-if="!responsive" flat color="white" class="mx-1 px-1 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">สำหรับผู้ประกอบการ</span>
</v-btn>
</router-link>
<v-btn v-if="!currentUser" flat color="white" class="mx-1 px-1 body-2 font-weight-bold" @click.stop="login()">
<span class="body-2 font-weight-bold">เข้าสู่ระบบ</span>
</v-btn>
<v-btn v-if="!currentUser" flat color="white" class="mx-1 px-1 body-2 font-weight-bold" @click.stop="register()">
<span class="body-2 font-weight-bold">สมัครสมาชิก</span>
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<v-layout row wrap white>
<v-flex xs12 sm10 offset-sm1>
<v-toolbar flat color="white" height="40">
<v-spacer></v-spacer>
<v-btn small="" dark color="deep-orange darken-4" class="elevation-0" @click="$router.push('/employer')">สำหรับผู้ประกอบการ</v-btn>
<v-divider inset vertical></v-divider>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" >
<v-icon>person</v-icon>&nbsp;เข้าสู่ระบบ
</v-btn>
<v-btn v-if="!currentUser" small outline color="deep-orange darken-4" >
<v-icon>account_box</v-icon>&nbsp;ลงทะเบียน
</v-btn>
<v-btn v-else small outline color="deep-orange darken-4" @click="logout()">
<v-icon>account_circle</v-icon>&nbsp;{{ currentUser }}
</v-btn>
</v-toolbar>
</v-flex>
</v-layout>
<login v-if="dialog === 'login'"></login>
<register v-if="dialog === 'register'"></register>
</div>
</template>
<script>
import Login from '../views/Login.vue';
import Register from '../views/Register.vue';
export default {
props: ['page'],
components: {
'login': Login,
'register': Register
},
data () {
return {
responsive: false,
dialog: 'login'
}
},
computed: {
currentUser () {
return this.$store.getters.getUser.name
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
},
logout () {
this.$store.dispatch('logout')
},
login () {
this.dialog = 'login'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
},
register () {
this.dialog = 'register'
this.$store.commit('setDialog', !this.$store.getters.getDialog)
}
}
}
</script>
<style lang="scss" scoped>
.colornav{
background-color:#0d253d;
}
</style>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment