Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
3a26bb05
提交
3a26bb05
编写于
9月 28, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图片样式问题
默认值从query里获取
上级
9c84bbb7
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
28 行增加
和
14 行删除
+28
-14
question-content.vue
src/components/question/question-content.vue
+3
-3
question-detail.vue
src/views/question-detail.vue
+25
-11
未找到文件。
src/components/question/question-content.vue
浏览文件 @
3a26bb05
...
...
@@ -181,9 +181,9 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
.qeustion-content-wrapper {
img {
width: 98% !important;
}
//
img {
//
width: 98% !important;
//
}
font-size: 14px;
.public-title {
.text {
...
...
src/views/question-detail.vue
浏览文件 @
3a26bb05
...
...
@@ -53,7 +53,7 @@ import { mapGetters, mapActions } from "vuex";
import
{
Toast
}
from
"vant"
;
import
{
findQuestionIndexNo
,
contactArray
}
from
"@/utils"
;
let
titleArray
=
[
""
,
"错题集"
,
"收藏夹"
,
"
收藏夹
"
];
let
titleArray
=
[
""
,
"错题集"
,
"收藏夹"
,
"
题库
"
];
export
default
{
components
:
{
QuestionHeader
,
...
...
@@ -89,12 +89,12 @@ export default {
id
:
0
},
queryParams
:
{
commitKind
:
3
,
// 答题来源 1:错题集 2:收藏 3:题库
directoryId
:
1748
,
// 题库ID,获取错题集或收藏时传0
pageFlag
:
0
,
// 翻页标记:0往前翻页 1往后翻页
pageSize
:
5
,
// 每页大小
commitKind
:
3
,
// 答题来源 1:错题集 2:收藏 3:题库
directoryId
:
1748
,
// 题库ID,获取错题集或收藏时传0
secondSubjectId
:
106
,
// 二级学科分类ID:用于判断学科下目录免费题数
titleNo
:
0
// 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
titleNo
:
0
,
// 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
pageFlag
:
0
,
// 翻页标记:0往前翻页 1往后翻页
pageSize
:
5
,
// 每页大小
}
};
},
...
...
@@ -113,14 +113,28 @@ export default {
},
created
()
{
let
_this
=
this
;
this
.
directoryId
=
this
.
$route
.
query
.
directoryId
||
1
;
// 题库ID,获取错题集或收藏时传0
this
.
secondSubjectId
=
this
.
$route
.
query
.
secondSubjectId
||
1
;
// 学科id
this
.
directoryId
=
this
.
$route
.
query
.
directoryId
||
1
748
;
// 题库ID,获取错题集或收藏时传0
this
.
secondSubjectId
=
this
.
$route
.
query
.
secondSubjectId
||
1
06
;
// 学科id
this
.
cardType
=
this
.
$route
.
query
.
cardType
||
3
;
// 卡类型
this
.
goodsType
=
this
.
$route
.
query
.
goodsType
||
3
;
// 商品类型
this
.
commitKind
=
this
.
$route
.
query
.
commitKind
||
3
;
// 答题来源 1:错题集 2:收藏 3:题库
this
.
freeFlag
=
this
.
$route
.
query
.
freeFlag
||
0
;
// 0: 免费; 1: 收费;
this
.
currentTitle
=
this
.
$route
.
query
.
currentTitle
||
this
.
currentTitle
;
// 顶部导航文案
if
(
this
.
commitKind
==
3
)
{
titleArray
[
3
]
=
this
.
currentTitle
;
}
this
.
queryParams
.
commitKind
=
this
.
commitKind
;
this
.
queryParams
.
directoryId
=
this
.
directoryId
;
this
.
queryParams
.
secondSubjectId
=
this
.
secondSubjectId
;
// queryParams: {
// commitKind: 3, // 答题来源 1:错题集 2:收藏 3:题库
// directoryId: 1748, // 题库ID,获取错题集或收藏时传0
// pageFlag: 0, // 翻页标记:0往前翻页 1往后翻页
// pageSize: 5, // 每页大小
// secondSubjectId: 106, // 二级学科分类ID:用于判断学科下目录免费题数
// titleNo: 0 // 起始或结束题目ID,首次进入页面时传0,系统自动定位到上次做的题
// }
this
.
init
();
window
.
__getUserInfoForQD
=
function
(
param
)
{
...
...
@@ -151,9 +165,9 @@ export default {
methods
:
{
...
mapActions
([
"setUserInfo"
,
"handlerQuestionList"
]),
init
()
{
if
(
this
.
commitKind
>=
2
&&
this
.
commitKind
<=
4
)
{
this
.
currentTitle
=
titleArray
[
this
.
commitKind
];
}
//
if (this.commitKind >= 2 && this.commitKind
<=
4
)
{
this
.
currentTitle
=
titleArray
[
this
.
commitKind
]
||
"习题集"
;
//
}
this
.
$store
.
commit
(
"SET_COMMON_CONIFG"
,
{
// 0: 免费; 1: 收费; 没有绑卡且是收费题库(bindStatus == 0 && freeFlag == 1)可以走免费体验流程
freeFlag
:
this
.
freeFlag
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录