提交 2e082725 authored 作者: lihuihui's avatar lihuihui

updata

上级 f2598e58
差异被折叠。
...@@ -33,6 +33,10 @@ export default { ...@@ -33,6 +33,10 @@ export default {
title: '已做试题', title: '已做试题',
url: '/my/questionsList' url: '/my/questionsList'
}, },
{
title: '收藏试题',
url: '/my/collectQuestions'
},
// { // {
// title: '已学课程', // title: '已学课程',
// url: '/my/buyCourses' // url: '/my/buyCourses'
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="question-box" id="bottom-view"> <div class="question-box" id="bottom-view">
<ul> <ul>
<template v-for="(item, index) in question.list"> <template v-for="(item, index) in question.list">
<li :key="index" @click="listClick(item.question_id)"> <li :key="index" @click="listClick(item.question_id, index)">
<img src="../../assets/images/que-type1.png" alt="" v-if="item.question_type == '6'"> <img src="../../assets/images/que-type1.png" alt="" v-if="item.question_type == '6'">
<img src="../../assets/images/que-type2.png" alt="" v-if="item.question_type == '5'"> <img src="../../assets/images/que-type2.png" alt="" v-if="item.question_type == '5'">
<img src="../../assets/images/que-type3.png" alt="" v-if="item.question_type == '2'"> <img src="../../assets/images/que-type3.png" alt="" v-if="item.question_type == '2'">
...@@ -128,15 +128,21 @@ export default { ...@@ -128,15 +128,21 @@ export default {
this.batchDel.isDelBtn = true this.batchDel.isDelBtn = true
} }
}, },
listClick(id) { listClick(id, index) {
this.batchDel.selectShow ? this.selectOpt(id) : this.onCancel() this.batchDel.selectShow ? this.selectOpt(id) : this.goDetails(id, index)
// this.$router.push({ },
// path: '/my/questionsDetails', goDetails(id, index) {
// query: { const pageCount = (index / 50).toString()
// id: id, let num = 1
// isError: this.params.is_error pageCount.indexOf('.') === -1 ? num = pageCount : num = parseInt(pageCount) + 1
// } this.$router.push({
// }) path: '/my/questionsDetails',
query: {
id: id,
page: parseInt(num) === 0 ? 1 : num,
type: this.activeClass === '0' ? 1 : 3
}
})
}, },
selectOpt(id) { selectOpt(id) {
const isArr = this.batchDel.countData.findIndex(item => { return item === id }) const isArr = this.batchDel.countData.findIndex(item => { return item === id })
...@@ -402,6 +408,7 @@ export default { ...@@ -402,6 +408,7 @@ export default {
background: rgba(0,0,0,0.8); background: rgba(0,0,0,0.8);
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 99;
.picker{ .picker{
width: 100%; width: 100%;
position: absolute; position: absolute;
......
...@@ -124,6 +124,13 @@ export default [ ...@@ -124,6 +124,13 @@ export default [
component: () => import('../pages/my/questionsDetails.vue'), component: () => import('../pages/my/questionsDetails.vue'),
meta: { requiredLogin: true } meta: { requiredLogin: true }
}, },
// 我的-收藏试题
{
path: '/my/collectQuestions',
name: 'collectQuestions',
component: () => import('../pages/my/collectQuestions.vue'),
meta: { requiredLogin: true }
},
// 我的-发票页面 // 我的-发票页面
{ {
path: '/my/invoice', path: '/my/invoice',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论