Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-professional-exam
提交
e512496f
提交
e512496f
编写于
10月 14, 2020
作者:
张平
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev-question-bank-0916' into 'release'
UI优化调整 code reviewer:张平 See merge request
!5
上级
18e2b042
56397ee9
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
33 行增加
和
16 行删除
+33
-16
directory-info.vue
src/components/question/directory-info.vue
+15
-10
question-content.vue
src/components/question/question-content.vue
+17
-5
question-bank.vue
src/views/question-bank.vue
+1
-1
未找到文件。
src/components/question/directory-info.vue
浏览文件 @
e512496f
...
...
@@ -10,8 +10,8 @@
</div>
</div>
<div
class=
"info-second"
>
<div
class=
"item"
@
click=
"wrongBook(1)"
><img
src=
"../../images/question/text.png"
>
错题集
<span
v-if=
"directoryInfo.wrongTitleBook"
>
(
{{
directoryInfo
.
wrongTitleBook
}}
)
</span></div>
<div
class=
"item"
@
click=
"wrongBook(2)"
><img
src=
"../../images/question/heart-h.png"
>
收藏
<span
v-if=
"directoryInfo.collectTitleBook"
>
(
{{
directoryInfo
.
collectTitleBook
}}
)
</span></div>
<div
class=
"item"
@
click=
"wrongBook(1)"
><img
src=
"../../images/question/text.png"
>
<span>
错题集
</span>
<span
v-if=
"directoryInfo.wrongTitleBook"
>
(
{{
directoryInfo
.
wrongTitleBook
}}
)
</span></div>
<div
class=
"item"
@
click=
"wrongBook(2)"
><img
src=
"../../images/question/heart-h.png"
>
<span>
收藏
</span>
<span
v-if=
"directoryInfo.collectTitleBook"
>
(
{{
directoryInfo
.
collectTitleBook
}}
)
</span></div>
</div>
</div>
</div>
...
...
@@ -91,26 +91,31 @@ export default {
.item{
width: 165.5px;
height: 40px;
/*line-height: 40px;*/
text-align: center;
border-radius: 6px;
background-color: #F8F9FA;
font-size: 14px;
font-weight: 700;
color: #373839;
display: flex;
align-items: center;
justify-content: center;
padding: 10px 0;
vertical-align: middle;
img{
width: 20px;
height: 20px;
margin-right: 8px;
}
span{
span:first-of-type{
font-size: 14px;
font-weight: 700;
color: #373839;
height: 20px;
line-height: 20px;
}
span:last-of-type{
font-size: 12px;
margin-left: 2px;
height: 40px;
line-height: 40px;
height: 20px;
line-height: 20px;
margin-top: -1px;
}
}
}
...
...
src/components/question/question-content.vue
浏览文件 @
e512496f
...
...
@@ -120,7 +120,7 @@ export default {
myAnswer
+=
this
.
getOrderVac
(
index
);
}
});
myAnswer
=
myAnswer
.
split
(
""
).
join
(
"
,
"
);
myAnswer
=
myAnswer
.
split
(
""
).
join
(
"
、
"
);
this
.
currentQuestion
.
myAnswer
=
myAnswer
;
}
else
{
this
.
currentQuestion
.
options
[
index
].
isSelected
=
true
;
...
...
@@ -184,6 +184,16 @@ export default {
}
};
</
script
>
<
style
lang=
"less"
>
.title-wrapper, .analysis-wrapper{
.content{
img{
margin-top: 15px;
max-width: 100% !important;
}
}
}
</
style
>
<
style
lang=
"less"
scoped
>
.qeustion-content-wrapper {
// img {
...
...
@@ -199,6 +209,7 @@ export default {
}
.title-wrapper {
padding: 20px 15px 15px;
box-sizing: border-box;
.type {
position: relative;
top: 2.8px;
...
...
@@ -254,8 +265,9 @@ export default {
display: block;
width: 20px;
height: 20px;
line-height:
20
px;
line-height:
19
px;
text-align: center;
vertical-align: middle;
margin-right: 10px;
color: #373839;
&.border {
...
...
@@ -312,11 +324,11 @@ export default {
&::before {
display: inline-block;
content: "";
height: 1
6
px;
height: 1
5
px;
width: 3px;
margin-right: 9px;
background: #f68367;
border-radius:
3
px;
border-radius:
2
px;
}
}
.content {
...
...
@@ -345,4 +357,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
src/views/question-bank.vue
浏览文件 @
e512496f
...
...
@@ -22,7 +22,7 @@
<div
class=
"course-item"
v-for=
"(item, index) in subDirectoryModelList"
:key=
"index"
>
<div
class=
"left-c"
>
<p
class=
"title-c"
>
{{
item
.
directoryName
}}
</p>
<p
class=
"join-c"
v-if=
"!bindStatus
&& (item.freeFlag == 1)
"
>
{{
item
.
joinUserNum
}}
人已参与
</p>
<p
class=
"join-c"
v-if=
"!bindStatus"
>
{{
item
.
joinUserNum
}}
人已参与
</p>
<div
class=
"progress-course"
v-else
>
<div
class=
"progress-w"
><van-progress
:percentage=
"item.finishedRatio"
:stroke-width=
"6"
color=
"#449284"
:show-pivot=
"false"
/></div>
<span
class=
"mg-set"
>
{{
item
.
finishedRatio
}}
%
</span><span>
共
{{
item
.
sumTitle
}}
道
</span>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录