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
提交
0485ceb8
提交
0485ceb8
编写于
8月 25, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
尚未完成所有课程学
上级
f39f8070
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
29 行增加
和
7 行删除
+29
-7
cell-list-detail-share.vue
src/components/business/cell-list-detail-share.vue
+14
-2
index.js
src/utils/index.js
+10
-0
share-merge-detail.vue
src/views/share-merge-detail.vue
+5
-5
未找到文件。
src/components/business/cell-list-detail-share.vue
浏览文件 @
0485ceb8
...
...
@@ -81,7 +81,7 @@ import NoMoreContent from "@/components/business/no-more-content";
import
CertShow
from
"@/components/business/cert-show"
;
import
{
Collapse
,
CollapseItem
,
Dialog
,
Toast
}
from
'vant'
;
import
{
mapGetters
}
from
"vuex"
;
import
{
getAppVersion
,
getWebPageUrl
}
from
"@/utils"
;
import
{
getAppVersion
,
getWebPageUrl
,
isWeiXin
}
from
"@/utils"
;
import
vueFilters
from
'@/utils/filter'
;
const
actionMap
=
{
11
:
"去考试"
,
...
...
@@ -194,7 +194,15 @@ export default {
// component_tag: `882#${actionCode}#${this.projectId}`
// });
// }
if
(
item
.
useFlag
==
2
)
return
;
if
(
item
.
useFlag
==
2
)
{
if
(
item
.
type
==
1
)
{
// Toast('尚未完成所有课程学习');
Toast
(
'请前往云鹊医APP参加考试'
);
}
else
if
(
item
.
type
==
2
){
Toast
(
'尚未完成相关考试'
);
}
return
;
};
if
(
item
.
type
==
1
)
{
this
.
gotoExam
(
item
.
id
);
...
...
@@ -205,6 +213,10 @@ export default {
// 跳转到课程
gotoCourse
:
function
(
courseId
)
{
if
(
!
isWeiXin
())
{
Toast
(
'请前往云鹊医APP学习课程'
);
return
;
}
let
token
=
localStorage
.
getItem
(
'token'
);
let
jumpUrl
=
getWebPageUrl
(
`profexam/#/course-detail?courseId=
${
courseId
}
&projectId=
${
this
.
projectId
}
&token=
${
token
}
`
);
window
.
location
.
href
=
jumpUrl
;
...
...
src/utils/index.js
浏览文件 @
0485ceb8
...
...
@@ -148,4 +148,14 @@ export function gotoPage(context, pageUrl) {
jsonString
:
paramList
});
}
}
// 判断是否是微信浏览器
export
function
isWeiXin
()
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
)
{
return
true
;
}
else
{
return
false
;
}
}
\ No newline at end of file
src/views/share-merge-detail.vue
浏览文件 @
0485ceb8
...
...
@@ -387,11 +387,7 @@ export default {
this
.
getAdvertInfoList
();
},
mounted
()
{
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
setTimeout
(()
=>
{
this
.
downloadTips
=
''
;
this
.
needShort
=
true
;
},
5000
);
window
.
addEventListener
(
"scroll"
,
this
.
scrollFun
);
},
beforeDestroyed
()
{
window
.
removeEventListener
(
"scroll"
,
this
.
scrollFun
);
...
...
@@ -738,6 +734,10 @@ export default {
this
.
NEW_GET
(
`cme/project/
${
_this
.
projectId
}
/info`
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
// 首先使用配置中的参数中的获取视频地址及视频时间
setTimeout
(()
=>
{
this
.
downloadTips
=
''
;
this
.
needShort
=
true
;
},
5000
);
if
(
videoUrl
)
{
_this
.
limitTimes
=
this
.
$route
.
query
.
trySeeTime
||
300000
;
_this
.
videoOptions
.
mp4
=
videoUrl
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录