Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 27b1b4e

Browse filesBrowse files
committed
设置 layout 总体页面布局
1 parent 85dc5ca commit 27b1b4e
Copy full SHA for 27b1b4e

File tree

1 file changed

+67
-0
lines changed
Filter options

1 file changed

+67
-0
lines changed

‎src/components/layout.vue

Copy file name to clipboard
+67Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<template>
2+
<div id="__wrapper">
3+
4+
<navgation-bar>
5+
</navgation-bar>
6+
7+
<div class="app-content">
8+
<keep-alive>
9+
<transition name="drop">
10+
<router-view></router-view>
11+
</transition>
12+
</keep-alive>
13+
</div>
14+
15+
<footerView>
16+
</footerView>
17+
18+
</div>
19+
</template>
20+
21+
<script>
22+
import navgationBar from './navigationBar'
23+
import bookCard from './bookCard'
24+
import footerView from './footerView'
25+
26+
export default {
27+
components: {
28+
navgationBar,
29+
bookCard,
30+
footerView
31+
},
32+
created() {
33+
this.$store.dispatch('loadUser')
34+
},
35+
data() {
36+
return {
37+
isShowAboutDialog: false,
38+
isShowLogDialog: false,
39+
isShowRegDialog: false,
40+
username: '',
41+
activeClass: 'navbar-item-select'
42+
}
43+
},
44+
methods: {
45+
aboutClick() {
46+
this.isShowAboutDialog = true
47+
},
48+
logClick() {
49+
this.isShowLogDialog = true
50+
},
51+
regClick() {
52+
this.isShowRegDialog = true
53+
},
54+
closeDialog(attr) {
55+
this[attr] = false
56+
},
57+
onSuccessLog(data) {
58+
59+
}
60+
}
61+
}
62+
</script>
63+
64+
<style>
65+
@import '../style/style.css';
66+
@import '../style/bootstrap-flat.min.css';
67+
</style>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.