测试问题修复
This commit is contained in:
parent
aad820f18a
commit
2da650e764
|
@ -28,3 +28,4 @@ coverage
|
|||
*.sw?
|
||||
|
||||
*.tsbuildinfo
|
||||
/web/
|
||||
|
|
|
@ -50,7 +50,7 @@ img {
|
|||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
vertical-align: middle;
|
||||
background: #ebebeb url('@/assets/images/200.png') no-repeat center / contain;
|
||||
// background: #ebebeb url('@/assets/images/200.png') no-repeat center / contain;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-container class="container-exam">
|
||||
<el-header class="header">
|
||||
<img src="@/assets/images/fenxiang.png" alt="">
|
||||
<img src="@/assets/images/logo.png" alt="">
|
||||
<span class="desc">本平台提供专业的自评量表、请仔细地阅读每一条,根据近期内您的实际感受,点击适合您的选项,请注意不要漏题、答题完成后您将获得一份专业的分析报告!</span>
|
||||
</el-header>
|
||||
|
||||
|
@ -157,7 +157,8 @@ async function submit() {
|
|||
})
|
||||
|
||||
if (res.data) {
|
||||
router.push({ path: '/examDetail', query: { data: JSON.stringify(res.data) } })
|
||||
localStorage.setItem('examDetail', JSON.stringify(res.data))
|
||||
router.push({ path: '/examDetail', query: { } })
|
||||
} else {
|
||||
router.replace({ path: '/' })
|
||||
}
|
||||
|
@ -176,14 +177,14 @@ async function submit() {
|
|||
|
||||
.header {
|
||||
height: 60px;
|
||||
color: #41515C;
|
||||
background-color: #FFF;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
padding-top: 15px;
|
||||
|
||||
.desc {
|
||||
margin-left: 20px;
|
||||
color: #41515C;
|
||||
font-size: 18px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<template>
|
||||
<div class="header"></div>
|
||||
<div class="header">
|
||||
<img src="@/assets/images/logo.png" alt="">
|
||||
<span class="desc">本平台提供专业的自评量表、请仔细地阅读每一条,根据近期内您的实际感受,点击适合您的选项,请注意不要漏题、答题完成后您将获得一份专业的分析报告!</span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-card style="margin-top: 20px;height: 100%;">
|
||||
<template #header>
|
||||
|
@ -12,7 +15,7 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<el-descriptions :title="`测评项:${item.evalItemName || ''}`" direction="vertical" column="1"
|
||||
<el-descriptions :title="`测评项:${item.factorName || ''}`" direction="vertical" column="1"
|
||||
v-for="item in des.list" :key="item.factorRangeId">
|
||||
<el-descriptions-item :label="`结果分析:${item.evalDesc || ''}`">
|
||||
<div class="content-container" v-html="item.evalPropose"></div>
|
||||
|
@ -21,7 +24,7 @@
|
|||
|
||||
<template #footer>
|
||||
<div class="footer">
|
||||
<el-button type="primary" round @click="$router.push('/')">返回首页</el-button>
|
||||
<el-button type="primary" round @click="goToHome">返回首页</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-card>
|
||||
|
@ -29,19 +32,30 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
const route = useRoute()
|
||||
const data = route.query.data
|
||||
const router = useRouter()
|
||||
const data = localStorage.getItem('examDetail') || ''
|
||||
const des = JSON.parse(data)
|
||||
|
||||
function goToHome() {
|
||||
localStorage.removeItem('examDetail')
|
||||
router.push('/')
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 501px;
|
||||
background: url(../../assets/images/banner.png) no-repeat;
|
||||
background-size: cover;
|
||||
height: 60px;
|
||||
color: #41515C;
|
||||
background-color: #FFF;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
padding-top: 15px;
|
||||
|
||||
.desc {
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="second_bg"></div>
|
||||
</div>
|
||||
<div class="form">
|
||||
<img src="@/assets/images/logo.jpg" alt="">
|
||||
<img src="@/assets/images/logo.jpg" alt="" style="vertical-align: middle; background-color: transparent">
|
||||
<el-card shadow="never" class="login-card">
|
||||
<el-form ref="formRef" :model="loginForm" :rules="loginRules" v-loading="loading" element-loading-text="登录中...">
|
||||
<el-form-item prop="username">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<el-container class="container-exam">
|
||||
<el-header class="header">
|
||||
<img src="@/assets/images/fenxiang.png" alt="">
|
||||
<img src="@/assets/images/logo.png" alt="">
|
||||
<span class="desc">本平台提供专业的自评量表、请仔细地阅读每一条,根据近期内您的实际感受,点击适合您的选项,请注意不要漏题、答题完成后您将获得一份专业的分析报告!</span>
|
||||
</el-header>
|
||||
<el-main class="main">
|
||||
|
@ -61,7 +61,8 @@ async function gotoExam(item) {
|
|||
scaleId: item.scaleId,
|
||||
scaleName: item.scaleName,
|
||||
scaleTime: item.scaleTime,
|
||||
recordId: item.recordId
|
||||
recordId: item.recordId,
|
||||
scaleTime: item.scaleTime
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -78,14 +79,14 @@ onMounted(() => {
|
|||
|
||||
.header {
|
||||
height: 60px;
|
||||
color: #41515C;
|
||||
background-color: #FFF;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
padding-top: 15px;
|
||||
|
||||
.desc {
|
||||
margin-left: 20px;
|
||||
color: #41515C;
|
||||
font-size: 18px;
|
||||
padding-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
Binary file not shown.
After Width: | Height: | Size: 291 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: 8.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -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-G8qkA552.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/web/assets/index-Fpq5i7U4.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue