Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
110297ec
提交
110297ec
编写于
7月 25, 2020
作者:
ping_zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增 试看事件限制
上级
c920446d
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
7 行删除
+31
-7
common-tcplayer.vue
src/components/common/common-tcplayer.vue
+14
-2
fetch.js
src/utils/fetch.js
+1
-1
merge-detail.vue
src/views/merge-detail.vue
+16
-4
未找到文件。
src/components/common/common-tcplayer.vue
浏览文件 @
110297ec
...
...
@@ -62,8 +62,20 @@ export default {
listener
:
this
.
listener
,
...
this
.
options
};
options
.
width
=
htmlWidth
this
.
tcPlayer
=
new
TcPlayer
(
this
.
id
,
options
);
options
.
width
=
htmlWidth
;
const
tcPlayer
=
new
TcPlayer
(
this
.
id
,
options
);
tcPlayer
.
video
.
on
(
'timeupdate'
,
(
event
)
=>
{
let
ct
=
tcPlayer
.
currentTime
();
console
.
log
(
'视频播放时长S => '
,
ct
);
if
(
options
.
trySeeTime
&&
ct
>=
options
.
trySeeTime
)
{
tcPlayer
.
currentTime
(
options
.
trySeeTime
);
tcPlayer
.
pause
();
this
.
$emit
(
'sk-tip'
);
}
});
this
.
tcPlayer
=
tcPlayer
;
},
reset
()
{
if
(
this
.
tcPlayer
)
{
...
...
src/utils/fetch.js
浏览文件 @
110297ec
...
...
@@ -17,7 +17,7 @@ service.interceptors.request.use(config => {
if
(
config
.
data
.
token
){
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'891F256CC48A4D57905F79C8F7628A74'
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
891F256CC48A4D57905F79C8F7628A74
'
;
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'
14587B3BBD77434EAFE8755FB1856008
'
;
}
delete
config
.
data
.
setEntry
;
delete
config
.
data
.
token
;
...
...
src/views/merge-detail.vue
浏览文件 @
110297ec
...
...
@@ -24,7 +24,7 @@
<img
v-show=
"project.status == 10"
class=
"banner-img-10"
src=
"../images/status-end-cme.png"
/>
</div>
<!-- banner视频 -->
<CommonTcPlayer
v-if=
"bannerType == 2"
style=
"flex"
:options=
"videoOptions"
></CommonTcPlayer>
<CommonTcPlayer
v-if=
"bannerType == 2"
style=
"flex"
:options=
"videoOptions"
@
sk-tip=
"isShowSkDialog = true"
></CommonTcPlayer>
<!-- 项目标题 -->
<CommonDescription
:projectName=
"project.projectName"
...
...
@@ -119,6 +119,13 @@
cancleBtnText="我知道了"
@handlerAction="handlerEJAction"
/>
<ShiKanCommonDialog
content=
"试看结束"
subContent=
"购买后可看完整课程"
confirmBtnText=
"去购买"
:isShowDialog=
"isShowSkDialog"
@
handlerAction=
"confirm"
/>
<ExjumperButton
@
btnClick=
"beforeJumpToExam"
v-if=
"project.cmeType == 2 && hasBindCard"
...
...
@@ -175,6 +182,7 @@ import ExjumperDialog from "@/components/cme/exjumper-dialog";
import
ExjumperButton
from
"@/components/cme/exjumper-button"
;
import
NoMoreContent
from
"@/components/business/no-more-content"
;
import
CommonAdertImg
from
"@/components/common/common-advert-img"
;
import
ShiKanCommonDialog
from
"@/components/cme/common-dialog"
;
import
{
getWebPageUrl
,
gotoPage
}
from
"@/utils/index"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
...
...
@@ -257,7 +265,8 @@ export default {
autoplay
:
false
,
//iOS下safari浏览器,以及大部分移动端浏览器是不开放视频自动播放这个能力的
coverpic
:
require
(
"../images/video-cover.png"
),
width
:
"415"
,
//视频的显示宽度,请尽量使用视频分辨率宽度
height
:
"210"
//视频的显示高度,请尽量使用视频分辨率高度
height
:
"210"
,
//视频的显示高度,请尽量使用视频分辨率高度
trySeeTime
:
''
},
//projectStatus: 1, //1没有获得证书 2是获得全部证书
attachmentUrl
:
require
(
"../images/banner-default.png"
),
...
...
@@ -283,7 +292,8 @@ export default {
},
advertInfoList
:
[],
showChangeCard
:
false
,
//是否展示激活弹框,
changeCardErrorMsg
:
""
changeCardErrorMsg
:
""
,
isShowSkDialog
:
false
};
},
components
:
{
...
...
@@ -306,7 +316,8 @@ export default {
CommonAdertImg
,
NoMoreContent
,
BindCardButton
,
ChangeCard
ChangeCard
,
ShiKanCommonDialog
},
computed
:
{
...
...
@@ -865,6 +876,7 @@ export default {
// 先设置视频URL再显示视频组件 ------------ BEGIN
if
(
res
.
data
.
attachmentType
==
2
)
{
_this
.
videoOptions
.
mp4
=
res
.
data
.
attachmentUrl
;
_this
.
videoOptions
.
trySeeTime
=
res
.
data
.
trySeeTime
;
}
else
{
_this
.
attachmentUrl
=
res
.
data
.
attachmentUrl
;
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录