|
@@ -3,10 +3,12 @@
|
|
|
<Header v-if="!showHeader" class="Header" />
|
|
|
<Navbar v-if="!showNavbar" class="Navbar" />
|
|
|
<Content class="Content" />
|
|
|
+ <Footer class="Footer" v-if="routePath == '/index'" />
|
|
|
<Abandon v-model="abandon.show" />
|
|
|
<isLogin v-model="is_login.show" />
|
|
|
<ConfirmPopup />
|
|
|
<ToTop />
|
|
|
+ <ToContribute />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -14,10 +16,13 @@
|
|
|
import Header from "@/components/layout/Header.vue";
|
|
|
import Navbar from "@/components/layout/Navbar.vue";
|
|
|
import Content from "@/components/layout/Content.vue";
|
|
|
-import Abandon from "@/components/module/abandon.vue";
|
|
|
-import IsLogin from "@/components/module/is-login.vue";
|
|
|
-import ConfirmPopup from "@/components/module/confirm-popup.vue";
|
|
|
-import ToTop from "@/components/module/to-top.vue";
|
|
|
+import Footer from "@/components/layout/Footer.vue";
|
|
|
+
|
|
|
+import Abandon from "@/components/module/abandon.vue"; // 放弃投稿
|
|
|
+import IsLogin from "@/components/module/is-login.vue"; // 未登录
|
|
|
+import ConfirmPopup from "@/components/module/confirm-popup.vue"; // 确认-通用
|
|
|
+import ToTop from "@/components/module/to-top.vue"; // 回到顶部
|
|
|
+import ToContribute from "./components/module/to-contribute.vue"; // 发布投稿
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
@@ -26,10 +31,12 @@ export default {
|
|
|
Header,
|
|
|
Navbar,
|
|
|
Content,
|
|
|
+ Footer,
|
|
|
Abandon,
|
|
|
IsLogin,
|
|
|
ConfirmPopup,
|
|
|
ToTop,
|
|
|
+ ToContribute,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -37,7 +44,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(["abandon", "is_login"]),
|
|
|
+ ...mapState(["abandon", "is_login", "routePath"]),
|
|
|
showHeader() {
|
|
|
return this.$route.meta.empty
|
|
|
? this.$route.meta.empty.includes("Header")
|
|
@@ -73,6 +80,9 @@ body {
|
|
|
}
|
|
|
.Header {
|
|
|
position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
z-index: 100;
|
|
|
}
|
|
|
.Navbar {
|
|
@@ -83,4 +93,7 @@ body {
|
|
|
.Content {
|
|
|
padding-top: $headerHeight;
|
|
|
}
|
|
|
+.Footer {
|
|
|
+ float: left;
|
|
|
+}
|
|
|
</style>
|