提交 1210b4ce authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 4a2d99d1
import httpRequest from '@/utils/axios' import httpRequest from '@/utils/axios'
/** /**
* 获取考前摸底试题 * 获取模拟测试试题
*/ */
export function getExamQuestion(params) { export function getExamQuestion(params) {
return httpRequest.get('/api/zy/v2/examination/examination-papers', { params }, { headers: { 'Content-Type': 'multipart/form-data' } }) return httpRequest.get(
'/api/zy/v2/examination/examination-papers',
{ params },
{ headers: { 'Content-Type': 'multipart/form-data' } }
)
} }
/** /**
* 缓存考前摸底试题 * 缓存模拟测试试题
*/ */
export function setCache(params) { export function setCache(params) {
return httpRequest.post('/api/zy/v2/examination/examination-papers', params) return httpRequest.post('/api/zy/v2/examination/examination-papers', params)
...@@ -31,9 +35,13 @@ export function setRoles(params) { ...@@ -31,9 +35,13 @@ export function setRoles(params) {
* 获取我的已做试题 * 获取我的已做试题
*/ */
export function getMyQuestion(params) { export function getMyQuestion(params) {
return httpRequest.get('/api/zy/v2/examination/my-question', { params }, { return httpRequest.get(
headers: { 'Content-Type': 'multipart/form-data' } '/api/zy/v2/examination/my-question',
}) { params },
{
headers: { 'Content-Type': 'multipart/form-data' }
}
)
} }
/** /**
...@@ -44,8 +52,8 @@ export function getAllQuestion(params) { ...@@ -44,8 +52,8 @@ export function getAllQuestion(params) {
} }
/** /**
* 缓存错题集 * 缓存错题集
*/ */
export function setMyCache(params) { export function setMyCache(params) {
return httpRequest.post('/api/zy/v2/examination/cache-question', params) return httpRequest.post('/api/zy/v2/examination/cache-question', params)
} }
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
<template v-for="item in datalist"> <template v-for="item in datalist">
<el-submenu :index="item.title" :key="item.title" v-if="item.children"> <el-submenu :index="item.title" :key="item.title" v-if="item.children">
<template slot="title"> <template slot="title">
<i class="iconfont" :class="item.icon"></i> <i class="iconfont" :class="item.icon"></i><span>{{ item.title }}</span>
<span>{{ item.title }}</span>
</template> </template>
<el-menu-item :index="item.path" :key="item.title" v-for="item in item.children"> <el-menu-item :index="item.path" :key="item.title" v-for="item in item.children">
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.title }}</span>
...@@ -52,7 +51,7 @@ export default { ...@@ -52,7 +51,7 @@ export default {
title: '我的考试', title: '我的考试',
icon: 'icon-bianzuhong', icon: 'icon-bianzuhong',
children: [ children: [
{ title: '考前摸底', path: '/testExam' }, { title: '模拟测试', path: '/testExam' },
{ title: '错题集合', path: '/my/questions/wrong' }, { title: '错题集合', path: '/my/questions/wrong' },
{ title: '收藏试题', path: '/my/questions/collection' } { title: '收藏试题', path: '/my/questions/collection' }
] ]
...@@ -60,7 +59,7 @@ export default { ...@@ -60,7 +59,7 @@ export default {
{ {
title: '实训练习', title: '实训练习',
icon: 'icon-kaoshihong', icon: 'icon-kaoshihong',
children: [{ title: '实训案例练习', path: '/xxxx' }] children: [{ title: '实训案例练习', path: 'https://xtraining.ezijing.com/' }]
}, },
{ {
title: '个人中心', title: '个人中心',
...@@ -162,6 +161,8 @@ export default { ...@@ -162,6 +161,8 @@ export default {
padding: 30px 0; padding: 30px 0;
color: #ccc; color: #ccc;
.iconfont { .iconfont {
display: inline-block;
width: 30px;
font-size: 16px; font-size: 16px;
color: currentColor; color: currentColor;
} }
...@@ -173,13 +174,24 @@ export default { ...@@ -173,13 +174,24 @@ export default {
} }
.is-active .el-submenu__title { .is-active .el-submenu__title {
background: #fff4f7; background: #fff4f7;
font-weight: bold;
color: #c01540; color: #c01540;
} }
.el-submenu__title {
height: 50px;
line-height: 50px;
padding-left: 25px !important;
}
.el-menu-item:hover, .el-menu-item:hover,
.el-menu-item:focus { .el-menu-item:focus {
color: #c01540; color: #c01540;
background: transparent; background: transparent;
} }
.el-submenu .el-menu-item {
height: 36px;
line-height: 36px;
padding-left: 55px !important;
}
} }
} }
</style> </style>
...@@ -10,6 +10,6 @@ export default {} ...@@ -10,6 +10,6 @@ export default {}
<style lang="scss"> <style lang="scss">
.app-main { .app-main {
padding: 30px; padding: 20px;
} }
</style> </style>
...@@ -2,34 +2,34 @@ ...@@ -2,34 +2,34 @@
<app-container title="个人信息"> <app-container title="个人信息">
<el-form :model="ruleForm" :rules="rules" label-width="120px" ref="ruleForm" class="form"> <el-form :model="ruleForm" :rules="rules" label-width="120px" ref="ruleForm" class="form">
<el-form-item label="所在院校" prop="phone"> <el-form-item label="所在院校" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="学院名称" prop="phone"> <el-form-item label="学院名称" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="专业名称" prop="phone"> <el-form-item label="专业名称" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="考证等级" prop="phone"> <el-form-item label="考证等级" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="用户真实姓名" prop="phone"> <el-form-item label="用户真实姓名" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证号码" prop="phone"> <el-form-item label="身份证号码" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份" prop="phone"> <el-form-item label="身份" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="登录帐号" prop="phone"> <el-form-item label="登录帐号" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone" readonly></el-input>
</el-form-item> </el-form-item>
<el-form-item label="账号名" prop="phone"> <el-form-item label="账号名" prop="phone">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.phone"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="常用邮箱" prop="phone"> <el-form-item label="常用邮箱" prop="email">
<el-input type="password" v-model="ruleForm.phone"></el-input> <el-input v-model="ruleForm.email"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
...@@ -48,10 +48,10 @@ export default { ...@@ -48,10 +48,10 @@ export default {
data() { data() {
return { return {
ruleForm: { ruleForm: {
phone: '' email: ''
}, },
rules: { rules: {
phone: [{ required: true, message: '请输入手机号码', trigger: 'blur' }] email: [{ required: true, message: '请输入手机号码', trigger: 'blur' }]
}, },
submitLoading: false submitLoading: false
} }
......
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
font-weight: bold; font-weight: bold;
} }
.t2 { .t2 {
font-size: 13px;
margin-top: 5px; margin-top: 5px;
color: #707070; color: #707070;
} }
......
<template> <template>
<app-container title="考前摸底介绍"> <app-container title="模拟测试介绍">
<div class="desc-exam"> <div class="desc-exam">
<p>考试时间20分钟。</p> <p>考试时间20分钟。</p>
<p>演示考试题目共10题,全部为单选题。</p> <p>演示考试题目共10题,全部为单选题。</p>
...@@ -45,9 +45,7 @@ export default { ...@@ -45,9 +45,7 @@ export default {
const h = this.$createElement const h = this.$createElement
this.$msgbox({ this.$msgbox({
title: '消息', title: '消息',
message: h('p', null, [ message: h('p', null, [h('span', null, '您上次未做完试题 ')]),
h('span', null, '您上次未做完试题 ')
]),
showCancelButton: true, showCancelButton: true,
confirmButtonText: '继续答题', confirmButtonText: '继续答题',
cancelButtonText: '重新答题', cancelButtonText: '重新答题',
......
...@@ -27,12 +27,12 @@ const courseRoutes = [ ...@@ -27,12 +27,12 @@ const courseRoutes = [
} }
] ]
const examAnswer = [ const examAnswer = [
/* 考前摸底 */ /* 模拟测试 */
{ {
path: '/testExam', path: '/testExam',
component: () => import(/* webpackChunkName: "exam" */ '@/pages/exam/testExam/index') component: () => import(/* webpackChunkName: "exam" */ '@/pages/exam/testExam/index')
}, },
/* 考前摸底结果页 */ /* 模拟测试结果页 */
{ {
path: '/testExam/result', path: '/testExam/result',
component: () => import(/* webpackChunkName: "exam" */ '@/pages/exam/testExam/exam/result') component: () => import(/* webpackChunkName: "exam" */ '@/pages/exam/testExam/exam/result')
...@@ -128,7 +128,7 @@ export default [ ...@@ -128,7 +128,7 @@ export default [
{ path: 'questions', component: () => import(/* webpackChunkName: "my" */ '@/pages/my/questions/questionAll') } { path: 'questions', component: () => import(/* webpackChunkName: "my" */ '@/pages/my/questions/questionAll') }
] ]
}, },
/* 考前摸底考试 */ /* 模拟测试考试 */
{ {
path: '/testExam/exam', path: '/testExam/exam',
component: () => import(/* webpackChunkName: "course-learn" */ '@/pages/exam/testExam/exam/index') component: () => import(/* webpackChunkName: "course-learn" */ '@/pages/exam/testExam/exam/index')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论