Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-psp-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-psp-show-h5
Commits
e7692be6
提交
e7692be6
authored
8月 28, 2024
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
ef04d268
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
9 行删除
+7
-9
Footer.vue
src/components/layout/Footer.vue
+0
-1
Player.vue
src/modules/course/views/Player.vue
+2
-2
Cert.vue
src/modules/my/components/Cert.vue
+4
-5
Index.vue
src/modules/my/views/Index.vue
+1
-1
没有找到文件。
src/components/layout/Footer.vue
浏览文件 @
e7692be6
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
<div
class=
"info"
>
<div
class=
"info"
>
紫荆小秘书:13263110169(同微信)
<br
/>
紫荆小秘书:13263110169(同微信)
<br
/>
地址:北京市海淀区中关村东路1号院清华科技园7号楼5层
<br
/>
地址:北京市海淀区中关村东路1号院清华科技园7号楼5层
<br
/>
深圳市福田区博今商务广场A座22层
<br
/>
邮箱:WMC@ezijing.com
<br
/>
邮箱:WMC@ezijing.com
</div>
</div>
</div>
</div>
...
...
src/modules/course/views/Player.vue
浏览文件 @
e7692be6
...
@@ -17,7 +17,6 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
...
@@ -17,7 +17,6 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
const
d
=
res
.
data
.
course
const
d
=
res
.
data
.
course
if
(
d
.
chapters
?.
length
)
{
if
(
d
.
chapters
?.
length
)
{
d
.
chapters
=
d
.
chapters
.
map
((
item
:
any
)
=>
{
d
.
chapters
=
d
.
chapters
.
map
((
item
:
any
)
=>
{
console
.
log
(
item
.
id
,
route
.
query
.
chapterId
,
'item.id === route.query.chapterId'
)
if
(
item
.
id
===
route
.
query
.
zId
)
{
if
(
item
.
id
===
route
.
query
.
zId
)
{
item
.
show
=
true
item
.
show
=
true
}
else
{
}
else
{
...
@@ -51,6 +50,7 @@ onMounted(() => {
...
@@ -51,6 +50,7 @@ onMounted(() => {
chapter_id
:
route
.
query
?.
chapterId
as
string
chapter_id
:
route
.
query
?.
chapterId
as
string
}).
then
((
res
:
any
)
=>
{
}).
then
((
res
:
any
)
=>
{
// videoSrc.value = res.data.info?.FD
// videoSrc.value = res.data.info?.FD
params
.
_p
=
res
.
data
?.
cache
?.
pt
player
=
new
Player
({
player
=
new
Player
({
id
:
'mse'
,
id
:
'mse'
,
url
:
res
.
data
.
info
?.
FD
,
url
:
res
.
data
.
info
?.
FD
,
...
@@ -63,7 +63,7 @@ onMounted(() => {
...
@@ -63,7 +63,7 @@ onMounted(() => {
// 最大学习时刻
// 最大学习时刻
params
.
_m
=
Math
.
max
(
ev
.
currentTime
,
params
.
_m
)
params
.
_m
=
Math
.
max
(
ev
.
currentTime
,
params
.
_m
)
params
.
_c
=
ev
.
currentTime
params
.
_c
=
ev
.
currentTime
params
.
_p
=
ev
.
currentTime
params
.
_p
+=
0.25
if
(
!
ps
.
includes
(
parseInt
(
ev
.
currentTime
)))
{
if
(
!
ps
.
includes
(
parseInt
(
ev
.
currentTime
)))
{
ps
.
push
(
parseInt
(
ev
.
currentTime
))
ps
.
push
(
parseInt
(
ev
.
currentTime
))
}
}
...
...
src/modules/my/components/Cert.vue
浏览文件 @
e7692be6
...
@@ -8,19 +8,18 @@ const handleClickItem = (item: any) => {
...
@@ -8,19 +8,18 @@ const handleClickItem = (item: any) => {
}
}
const
isEmpty
=
$computed
(()
=>
{
const
isEmpty
=
$computed
(()
=>
{
if
(
props
?.
data
||
props
.
data
?.
length
===
0
)
return
false
const
findIndex
=
props
.
data
?.
findIndex
((
item
:
any
)
=>
item
.
certificate
!==
''
)
if
(
props
.
data
?.
findIndex
((
item
:
any
)
=>
item
.
certificate
===
''
)
!==
-
1
)
{
if
(
findIndex
!==
-
1
)
{
return
false
}
else
{
return
true
return
true
}
}
return
false
})
})
console
.
log
(
isEmpty
,
'isEmpty'
)
console
.
log
(
isEmpty
,
'isEmpty'
)
</
script
>
</
script
>
<
template
>
<
template
>
<AppCard
title=
"我的电子学习证明"
id=
"team"
>
<AppCard
title=
"我的电子学习证明"
id=
"team"
>
<template
#
header-aside
>
</
template
>
<template
#
header-aside
></
template
>
<div
class=
"course_list"
v-if=
"isEmpty"
>
<div
class=
"course_list"
v-if=
"isEmpty"
>
<
template
v-for=
"item in data"
:key=
"item.id"
>
<
template
v-for=
"item in data"
:key=
"item.id"
>
<div
class=
"list_item"
v-if=
"item.certificate !== ''"
@
click=
"handleClickItem(item)"
>
<div
class=
"list_item"
v-if=
"item.certificate !== ''"
@
click=
"handleClickItem(item)"
>
...
...
src/modules/my/views/Index.vue
浏览文件 @
e7692be6
...
@@ -81,7 +81,7 @@ const editPassword = function () {
...
@@ -81,7 +81,7 @@ const editPassword = function () {
<!-- 我的课程 -->
<!-- 我的课程 -->
<Course
:data=
"studyInfo?.courses"
/>
<Course
:data=
"studyInfo?.courses"
/>
<!-- 电子证书 -->
<!-- 电子证书 -->
<Cert
:data=
"studyInfo?.courses"
/>
<Cert
:data=
"studyInfo?.courses"
v-if=
"studyInfo?.courses"
/>
<div
class=
"logout"
@
click=
"onLogout"
>
退出登录
</div>
<div
class=
"logout"
@
click=
"onLogout"
>
退出登录
</div>
</div>
</div>
</template>
</template>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论