修改部署配置优化前端界面显示

This commit is contained in:
jiangzhe 2024-04-26 14:23:50 +08:00
parent 568d7c0579
commit 4c9a8de161
16 changed files with 76 additions and 10 deletions

BIN
src/assets/images/200.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
src/assets/images/bg1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import Login from '@/views/Login/index.vue'
import Exam from '@/views/Exam/index.vue'
@ -6,7 +6,7 @@ import ScaleList from '@/views/ScaleList/index.vue'
import ExamDetail from '@/views/ExamDetail/index.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/login',

View File

@ -75,18 +75,18 @@ async function login() {
.logo {
flex: 3;
background: rgba(38, 72, 176) url(../../assets/images/bg1.png) no-repeat center / cover;
background: rgba(38, 72, 176) url(../../assets/images/bg1.jpg) no-repeat center / cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
.second_bg {
width: 100%;
height: 100%;
background: url(../../assets/images/bg2.png) 50% no-repeat;
background-size: cover;
}
//.second_bg {
// width: 100%;
// height: 100%;
// background: url(../../assets/images/bg2.png) 50% no-repeat;
// background-size: cover;
//}
}
.form {

View File

@ -5,7 +5,7 @@
<span class="desc">本平台提供专业的自评量表请仔细地阅读每一条根据近期内您的实际感受点击适合您的选项请注意不要漏题答题完成后您将获得一份专业的分析报告</span>
</el-header>
<el-main class="main">
<div class="content">
<div class="content" v-if="scaleList.length > 0">
<el-card shadow="hover" style="max-width: 520px; margin-bottom: 10px; position: relative;"
v-for="item in scaleList" :key="item.scaleId" @click="gotoExam(item)">
<img :src="item.coverUrl" alt="">
@ -23,6 +23,7 @@
</template>
</el-card>
</div>
<el-empty v-else description="暂无测评量表" style=" height: 600px;" />
</el-main>
</el-container>
</template>

View File

@ -14,6 +14,11 @@ import IconsResolver from 'unplugin-icons/resolver'
// https://vitejs.dev/config/
export default defineConfig({
build: {
outDir: 'web',
chunkSizeWarningLimit: 1600
},
base: '/web',
plugins: [
vue(),
vueSetupExtend(),

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
web/assets/bg1-R2DmIR8f.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
web/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

15
web/index.html Normal file
View File

@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/web/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>云舒-心理健康平台-学生端</title>
<link rel="stylesheet" href="//at.alicdn.com/t/font_2143783_iq6z4ey5vu.css" />
<script type="module" crossorigin src="/web/assets/index-a_YmE4Kg.js"></script>
<link rel="stylesheet" crossorigin href="/web/assets/index-15jeKwZf.css">
</head>
<body>
<div id="app"></div>
</body>
</html>