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

bug fixes

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