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
提交
09df8f5e
提交
09df8f5e
编写于
10月 10, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
免费学习的提示及跳转
上级
ff347995
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
71 行增加
和
4 行删除
+71
-4
free-tips.vue
src/components/question/free-tips.vue
+59
-0
question-detail.vue
src/views/question-detail.vue
+12
-4
未找到文件。
src/components/question/free-tips.vue
0 → 100644
浏览文件 @
09df8f5e
<
template
>
<div
class=
"free-tips-wrapper"
>
<div
class=
"left"
>
<img
src=
"../../images/question/warning-h.png"
alt
/>
<span
class=
"text"
>
免费练习
{{
total
}}
题,解锁全部题目需完成购买
</span>
</div>
<img
class=
"right"
@
click=
"buyCard"
src=
"../../images/question/arror-right.png"
alt
/>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
total
:
{
type
:
String
|
Number
,
default
:
5
}
},
methods
:
{
buyCard
()
{
this
.
$emit
(
"buyCard"
);
}
},
}
</
script
>
<
style
lang=
"less"
scoped
>
.free-tips-wrapper {
width: 100%;
position: fixed;
left: 0;
bottom: 60px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 40px;
line-clamp: 40px;
padding-left: 15px;
background: #FEFAF5;
.left {
display: flex;
flex-direction: row;
align-items: center;
& > img {
width: 13px;
height: 13px;
margin-right: 4px;
}
& > span {
font-size: 13px;
color: #E6A23C;
}
}
.right {
padding: 10px 15px;
width: 15px;
height: 15px;
}
}
</
style
>
\ No newline at end of file
src/views/question-detail.vue
浏览文件 @
09df8f5e
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<question-content
ref=
"questionContentRef"
v-show=
"questionList.length"
></question-content>
<question-content
ref=
"questionContentRef"
v-show=
"questionList.length"
></question-content>
<no-content
v-show=
"!questionList.length"
:listType=
"commitKind"
></no-content>
<no-content
v-show=
"!questionList.length"
:listType=
"commitKind"
></no-content>
</article>
</article>
<
!--
<free-tips
></free-tips>
--
>
<
free-tips
v-show=
"showFreeTips"
:total=
"titleConfig.totalCount"
@
buyCard=
"buyCard"
></free-tips
>
<question-footer
v-show=
"questionList.length"
@
statistics=
"statistics"
@
scrollTop=
"scrollTop"
@
pageQuestion=
"pageQuestion"
></question-footer>
<question-footer
v-show=
"questionList.length"
@
statistics=
"statistics"
@
scrollTop=
"scrollTop"
@
pageQuestion=
"pageQuestion"
></question-footer>
<ExperienceDialog
<ExperienceDialog
:showDialog=
"experienceDialog"
:showDialog=
"experienceDialog"
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
></CourseDialog>
></CourseDialog>
<Loading
v-show=
"showLoading"
/>
<Loading
v-show=
"showLoading"
/>
<div
class=
"pt-70"
></div>
<div
class=
"pt-70"
:class=
"
{'pt-110': showFreeTips}"
>
</div>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -46,6 +46,7 @@ import QuestionContent from "@/components/question/question-content";
...
@@ -46,6 +46,7 @@ import QuestionContent from "@/components/question/question-content";
import
QuestionFooter
from
"@/components/question/question-footer"
;
import
QuestionFooter
from
"@/components/question/question-footer"
;
import
noContent
from
"@/components/question/no-content"
;
import
noContent
from
"@/components/question/no-content"
;
import
ExperienceDialog
from
"@/components/question/experience-dialog"
;
import
ExperienceDialog
from
"@/components/question/experience-dialog"
;
import
FreeTips
from
"@/components/question/free-tips"
;
import
Loading
from
"@/components/common/common-loading"
;
import
Loading
from
"@/components/common/common-loading"
;
import
CourseDialog
from
"@/components/course/course-dialog"
;
import
CourseDialog
from
"@/components/course/course-dialog"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
...
@@ -64,7 +65,8 @@ export default {
...
@@ -64,7 +65,8 @@ export default {
ExperienceDialog
,
ExperienceDialog
,
Loading
,
Loading
,
CourseDialog
,
CourseDialog
,
ChangeCard
ChangeCard
,
FreeTips
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -118,6 +120,9 @@ export default {
...
@@ -118,6 +120,9 @@ export default {
return
(
return
(
this
.
experienceDialog
||
this
.
showChangeCard
||
this
.
showBindCardTips
this
.
experienceDialog
||
this
.
showChangeCard
||
this
.
showBindCardTips
);
);
},
showFreeTips
()
{
return
this
.
commonConfig
.
freeFlag
==
1
&&
this
.
commitKind
==
3
&&
!
this
.
titleConfig
.
bindStatus
}
}
},
},
created
()
{
created
()
{
...
@@ -189,7 +194,7 @@ export default {
...
@@ -189,7 +194,7 @@ export default {
statistics
()
{
statistics
()
{
// 如果是收费的题库(不是错题集或收载),并且没有绑定卡
// 如果是收费的题库(不是错题集或收载),并且没有绑定卡
console
.
log
(
this
.
commonConfig
.
freeFlag
,
this
.
commitKind
==
3
,
!
this
.
titleConfig
.
bindStatus
);
console
.
log
(
this
.
commonConfig
.
freeFlag
,
this
.
commitKind
==
3
,
!
this
.
titleConfig
.
bindStatus
);
if
(
!
(
this
.
commonConfig
.
freeFlag
==
1
&&
this
.
commitKind
==
3
&&
!
this
.
titleConfig
.
bindStatus
)
)
{
if
(
!
this
.
showFreeTips
)
{
Toast
(
"已是最后一题"
);
Toast
(
"已是最后一题"
);
return
;
return
;
}
}
...
@@ -512,5 +517,8 @@ export default {
...
@@ -512,5 +517,8 @@ export default {
.pt-70 {
.pt-70 {
padding-bottom: 70px;
padding-bottom: 70px;
}
}
.pt-110 {
padding-bottom: 110px;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录