feat:新增联系我们

This commit is contained in:
Xwen
2023-12-24 20:05:34 +08:00
parent 3b73121c29
commit 038e0bea86
5 changed files with 64 additions and 11 deletions

View File

@@ -1,18 +1,15 @@
<template class="back-color">
<template>
<div class="content-main">
<RouterView />
</div>
</template>
<style scoped>
.body-main {
min-height: 10rem;
min-width: 10rem;
background-color: #f0f2f5;
}
.content-main {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
min-height: 1150px;
/* min-height: 1150px; */
}
</style>

View File

@@ -8,7 +8,7 @@
>
<AppHeader />
</el-header>
<el-main>
<el-main class="common-main">
<AppBody />
</el-main>
</el-container>
@@ -42,12 +42,21 @@ const handleScroll = () => {
<style scoped lang="scss">
.common {
&-header {
background-color: #fff;
&-layout {
width: 100%;
height: 100%;
}
&-header {
width: 100%;
background-color: #fff;
box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
height: 50px;
display: flex;
justify-content: center;
}
&-main {
height: calc(100% - 50px);
}
}
.el-main {

View File

@@ -80,6 +80,14 @@ const router = createRouter({
title: "主题封面",
},
},
{
name: "contact",
path: "/contact",
component: () => import("../views/contact/index.vue"),
meta: {
title: "联系我们",
},
},
],
},
{ path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound },

View File

@@ -0,0 +1,34 @@
<template>
<div class="contact-box">
<div class="content">
<h2>联系我们</h2>
<p>作者QQ454313500</p>
<p>2029年之前作者24小时在线时刻保持活跃更新</p>
<p>
QQ交流群官方一群已满官方二群已满官方三群786308927基本已满官方四群:498310311新群
联系作者这里人人都是顾问
</p>
<p>官方网址留言区ccnetcore.com</p>
</div>
</div>
</template>
<script setup></script>
<style scoped lang="scss">
.contact-box {
width: 100%;
padding: 20px;
// height: 100%;
display: flex;
justify-content: center;
background-color: #fff;
.content {
width: 1300px;
> p {
margin: 50px 0;
font-size: 16px;
}
}
}
</style>

View File

@@ -154,7 +154,7 @@
</div>
<div class="login-footer">
<div class="info">站长{{ configStore.author }}</div>
<div class="info btn">联系我们</div>
<div class="info btn" @click="handleContact">联系我们</div>
<div class="info btn">关于本站</div>
<div class="info btn">建议反馈</div>
</div>
@@ -300,6 +300,11 @@ const handleGetCodeImage = () => {
onMounted(async () => {
await useUserStore().updateCodeImage();
});
// 联系我们跳转对应页面
const handleContact = () => {
router.push("/contact");
};
</script>
<style scoped lang="scss">
.login {