Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
2e082725
提交
2e082725
authored
7月 29, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
f2598e58
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
28 行增加
和
10 行删除
+28
-10
collectQuestions.vue
src/pages/my/collectQuestions.vue
+0
-0
index.vue
src/pages/my/index.vue
+4
-0
questionsDetails.vue
src/pages/my/questionsDetails.vue
+0
-0
questionsList.vue
src/pages/my/questionsList.vue
+17
-10
routes.js
src/router/routes.js
+7
-0
没有找到文件。
src/pages/my/collectQuestions.vue
0 → 100644
浏览文件 @
2e082725
差异被折叠。
点击展开。
src/pages/my/index.vue
浏览文件 @
2e082725
...
@@ -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'
...
...
src/pages/my/questionsDetails.vue
浏览文件 @
2e082725
差异被折叠。
点击展开。
src/pages/my/questionsList.vue
浏览文件 @
2e082725
...
@@ -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
;
...
...
src/router/routes.js
浏览文件 @
2e082725
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论