|
@@ -1,84 +1,75 @@
|
|
|
<template>
|
|
|
- <div id="index">
|
|
|
+ <div class="main">
|
|
|
<el-row>
|
|
|
- <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
|
|
|
- <el-image class="video" :src="siteInfo.videoUrl" fit="fill" />
|
|
|
- <div class="content">
|
|
|
- <div class="one">
|
|
|
- <el-row>
|
|
|
- <el-col :span="14" class="left">
|
|
|
- <el-image class="image" :src="siteInfo.logoUrl" fit="fill" />
|
|
|
- <div class="left_1">
|
|
|
- <div class="title">{{ siteInfo.zhTitle }}</div>
|
|
|
- <div class="English">{{ siteInfo.zhEnglish }}</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="10" class="right">
|
|
|
- <el-row align="middle">
|
|
|
- <el-col :span="6" class="right_1" @click="toCommon(0)">帮助中心</el-col>
|
|
|
- <el-col :span="14" class="right_2">
|
|
|
- <a-input-search
|
|
|
- v-model:value="searchValue"
|
|
|
- placeholder="请输入您想要搜索的内容"
|
|
|
- style="width: 240px"
|
|
|
- enter-button
|
|
|
- @search="onSearch"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- <el-col :span="4" v-if="user && user.id" class="right_3">
|
|
|
- <el-dropdown>
|
|
|
- <el-button type="primary" size="mini">
|
|
|
- {{ user.nick_name || '游客' }}
|
|
|
- </el-button>
|
|
|
- <template #dropdown>
|
|
|
+ <el-col :span="24" class="animate__animated animate__backInRight" v-loading="loading">
|
|
|
+ <div class="one">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="14" class="left">
|
|
|
+ <el-image class="images" :src="logoUrl" fit="fill" />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="10" class="right">
|
|
|
+ <el-row align="middle">
|
|
|
+ <el-col :span="6" class="right_1" @click="toCommon(0)">帮助中心</el-col>
|
|
|
+ <el-col :span="14" class="right_2">
|
|
|
+ <a-input-search
|
|
|
+ v-model:value="searchValue"
|
|
|
+ placeholder="请输入您想要搜索的内容"
|
|
|
+ style="width: 240px"
|
|
|
+ enter-button
|
|
|
+ @search="onSearch"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" v-if="user && user.id" class="right_3">
|
|
|
+ <el-dropdown>
|
|
|
+ <el-button type="primary">
|
|
|
+ {{ user.nick_name || '游客' }}
|
|
|
+ </el-button>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
<el-dropdown-menu>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item @click="toOpen">管理中心</el-dropdown-item>
|
|
|
- <el-dropdown-item @click="toCenter">个人中心</el-dropdown-item>
|
|
|
- <el-dropdown-item @click="toLogout">注销</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
+ <el-dropdown-item @click="toOpen">管理中心</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click="toCenter">个人中心</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click="toLogout">注销</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
- </el-col>
|
|
|
- <el-col :span="4" v-else class="right_3">
|
|
|
- <el-button @click="toCommon(1)" type="primary" size="small">登录</el-button>
|
|
|
- <el-button @click="toCommon(2)" type="primary" size="small">注册</el-button>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4" v-else class="right_3">
|
|
|
+ <el-button @click="toCommon(1)" type="primary">登录</el-button>
|
|
|
+ <el-button @click="toCommon(2)" type="primary">注册</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div class="two" @click="switchMenu('one')">
|
|
|
+ <div class="two_1">
|
|
|
+ <el-image class="image" :src="homeBg" fit="fill" />
|
|
|
</div>
|
|
|
- <div class="two">
|
|
|
- <el-row justify="center" align="middle">
|
|
|
- <el-col class="list" :span="8" @click="switchMenu('one')">
|
|
|
- <div class="bg"></div>
|
|
|
- <div class="two_1">
|
|
|
- <text>{{ siteInfo.zhTitle }}</text>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <div class="two_2">
|
|
|
+ <text>{{ siteInfo.zhTitle }}</text>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ <div class="w_1200">
|
|
|
<div class="thr">
|
|
|
- <el-row justify="center" align="middle">
|
|
|
- <el-col
|
|
|
- class="list"
|
|
|
- :span="4"
|
|
|
- v-for="(item, index) in menu"
|
|
|
- :key="index"
|
|
|
- @click="switchMenu(item.href)"
|
|
|
- >
|
|
|
- <div class="thr_1">
|
|
|
- <div class="title">{{ item.title }}</div>
|
|
|
- <div class="English">{{ item.English }}</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- <div class="four">
|
|
|
- {{ footInfo.Copyright }}
|
|
|
+ <el-col
|
|
|
+ class="list"
|
|
|
+ :span="4"
|
|
|
+ v-for="(item, index) in menu"
|
|
|
+ :key="index"
|
|
|
+ @click="switchMenu(item.href)"
|
|
|
+ >
|
|
|
+ <div class="thr_1">
|
|
|
+ <div class="title">{{ item.title }}</div>
|
|
|
+ <div class="English">{{ item.English }}</div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="four">
|
|
|
+ {{ footInfo.Copyright }}
|
|
|
+ </div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -86,6 +77,9 @@
|
|
|
|
|
|
<script setup>
|
|
|
// 基础
|
|
|
+import logoUrl from '/images/logo-jilin.png'
|
|
|
+import homeBg from '/images/homebg.png'
|
|
|
+
|
|
|
import { siteInfo, footInfo, menuList } from '@/layout/site'
|
|
|
import { UserStore } from '@/store/user'
|
|
|
const userStore = UserStore()
|
|
@@ -105,7 +99,7 @@ onMounted(async () => {
|
|
|
})
|
|
|
const search = async () => {
|
|
|
const menuList = menu.value.filter((item) => {
|
|
|
- if (item.href != 'one') return item
|
|
|
+ if (item.route != 'one') return item
|
|
|
})
|
|
|
menu.value = menuList
|
|
|
}
|
|
@@ -141,159 +135,130 @@ const toLogout = () => {
|
|
|
<style scoped lang="scss">
|
|
|
.main {
|
|
|
height: 100vh;
|
|
|
- min-width: 1200px;
|
|
|
+ width: 100%;
|
|
|
+ position: relative;
|
|
|
+ background: url('./images/home.jpg');
|
|
|
+ background-size: 100% 100%;
|
|
|
+ padding: 0px;
|
|
|
+ margin: 0px;
|
|
|
+ color: #fff;
|
|
|
+ font-family: '微软雅黑';
|
|
|
+ .one {
|
|
|
+ width: 1200px;
|
|
|
+ min-width: 1200px;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding-top: 32px;
|
|
|
+ padding-bottom: 12px;
|
|
|
|
|
|
- .video {
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- object-fit: cover;
|
|
|
- z-index: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .content {
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- z-index: 0;
|
|
|
- color: #ffffff;
|
|
|
+ .left {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
|
|
|
- .one {
|
|
|
- width: 1200px;
|
|
|
- min-width: 1200px;
|
|
|
- margin: 0 auto;
|
|
|
- padding-top: 32px;
|
|
|
- padding-bottom: 12px;
|
|
|
-
|
|
|
- .left {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .image {
|
|
|
- height: 45px;
|
|
|
- width: 45px;
|
|
|
- margin: 0 10px 0 0;
|
|
|
- }
|
|
|
-
|
|
|
- .left_1 {
|
|
|
- margin: 0 0 0 5px;
|
|
|
-
|
|
|
- .title {
|
|
|
- margin: 0 0 5px 0;
|
|
|
- font-size: 23px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
+ .image {
|
|
|
+ height: 45px;
|
|
|
+ width: 45px;
|
|
|
+ margin: 0 10px 0 0;
|
|
|
+ }
|
|
|
|
|
|
- .English {
|
|
|
- font-size: 12px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- }
|
|
|
+ .images {
|
|
|
+ height: auto;
|
|
|
+ width: 335px;
|
|
|
}
|
|
|
+ .left_1 {
|
|
|
+ margin: 0 0 0 5px;
|
|
|
|
|
|
- .right {
|
|
|
- font-size: 16px;
|
|
|
- letter-spacing: 0;
|
|
|
- color: #fff;
|
|
|
- font-weight: 500;
|
|
|
+ .title {
|
|
|
+ margin: 0 0 5px 0;
|
|
|
+ font-size: 23px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
|
|
|
- .right_3 {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- .example-showcase .el-dropdown-link {
|
|
|
- cursor: pointer;
|
|
|
- color: #1c66e7;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
+ .English {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .two {
|
|
|
- width: 1200px;
|
|
|
- min-width: 1200px;
|
|
|
- margin: 0 auto;
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- top: 45%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
+ .right {
|
|
|
+ font-size: 16px;
|
|
|
+ letter-spacing: 0;
|
|
|
+ color: #fff;
|
|
|
+ font-weight: 500;
|
|
|
|
|
|
- .list {
|
|
|
- position: relative;
|
|
|
+ .right_3 {
|
|
|
display: flex;
|
|
|
- justify-content: center;
|
|
|
-
|
|
|
- .bg {
|
|
|
- margin: 10px;
|
|
|
- width: 400px;
|
|
|
- height: 400px;
|
|
|
- z-index: 1;
|
|
|
- background-image: url(/images/homebg.png);
|
|
|
- background-position: center center;
|
|
|
- background-repeat: no-repeat;
|
|
|
- background-size: contain;
|
|
|
- animation: animationName 5s linear infinite;
|
|
|
- }
|
|
|
-
|
|
|
- .two_1 {
|
|
|
- position: absolute;
|
|
|
- top: 45%;
|
|
|
- left: 35%;
|
|
|
+ justify-content: space-between;
|
|
|
+ .example-showcase .el-dropdown-link {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #1c66e7;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
align-items: center;
|
|
|
- z-index: 999;
|
|
|
- width: 200px;
|
|
|
-
|
|
|
- text {
|
|
|
- font-size: 20px;
|
|
|
- color: #ffffff;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
}
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- @keyframes animationName {
|
|
|
- 100% {
|
|
|
- transform: rotate(1turn);
|
|
|
- }
|
|
|
+ .two {
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 1200px;
|
|
|
+ min-width: 1200px;
|
|
|
+ margin: 0 auto;
|
|
|
+ height: 60vh;
|
|
|
+ .two_1 {
|
|
|
+ .image {
|
|
|
+ width: 400px;
|
|
|
+ height: 400px;
|
|
|
+ animation: animationName 5s linear infinite;
|
|
|
+ }
|
|
|
+ @keyframes animationName {
|
|
|
+ 100% {
|
|
|
+ transform: rotate(1turn);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .thr {
|
|
|
+ .two_2 {
|
|
|
position: absolute;
|
|
|
- left: 10%;
|
|
|
- bottom: 10%;
|
|
|
- .list {
|
|
|
- margin: 10px 0;
|
|
|
- .thr_1 {
|
|
|
- font-family: PingFangSC-Semibold;
|
|
|
- color: #fff;
|
|
|
- margin-left: 14px;
|
|
|
- text-align: center;
|
|
|
- .title {
|
|
|
- font-size: 19px;
|
|
|
- font-weight: 600;
|
|
|
- }
|
|
|
- .English {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- }
|
|
|
+ left: 41%;
|
|
|
+ text {
|
|
|
+ font-size: 22px;
|
|
|
+ color: #ffffff;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .thr {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .list {
|
|
|
+ margin: 10px 0;
|
|
|
+ .thr_1 {
|
|
|
+ font-family: PingFangSC-Semibold;
|
|
|
+ color: #fff;
|
|
|
+ margin-left: 14px;
|
|
|
+ text-align: center;
|
|
|
+ .title {
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 600;
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+ }
|
|
|
+ .English {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .four {
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- bottom: 20px;
|
|
|
- text-align: center;
|
|
|
- font-size: 12px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
+ .four {
|
|
|
+ margin: 100px 0 10px 0;
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
</style>
|