2017-12-01 14:47:28 +00:00
|
|
|
<template>
|
|
|
|
|
|
|
|
<div id='MENU'>
|
|
|
|
|
|
|
|
<div v-for='(item, index) in gstore.menu_item' class='menu-item-wrapper'>
|
|
|
|
|
2017-12-05 13:00:27 +00:00
|
|
|
<div :class="(index == gstore.menu_item_active) ? 'menu-item active' : 'menu-item'" @click='navigate(index)' :style='"background-image: url(/image/menu/" + item.icon + ".svg@333333"'>
|
2017-12-04 16:44:43 +00:00
|
|
|
<span>{{ item.label }}</span>
|
2017-12-04 10:48:32 +00:00
|
|
|
</div>
|
2017-12-01 14:47:28 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'MENU',
|
2017-12-05 17:41:39 +00:00
|
|
|
data(){ return { gstore: gstore.data }; },
|
2017-12-01 14:47:28 +00:00
|
|
|
methods: {
|
2017-12-05 13:00:27 +00:00
|
|
|
navigate(uri){
|
2017-12-05 17:41:39 +00:00
|
|
|
this.gstore.func.nav(this.$router, uri);
|
2017-12-01 14:47:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|