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
提交
347c8657
提交
347c8657
编写于
8月 19, 2020
作者:
guofeng.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加评论
上级
07b2401d
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
125 行增加
和
3 行删除
+125
-3
course-comment.vue
src/components/course/course-comment.vue
+105
-0
course-detail.vue
src/views/course-detail.vue
+19
-2
index.vue
src/views/index.vue
+1
-1
未找到文件。
src/components/course/course-comment.vue
0 → 100644
浏览文件 @
347c8657
<
template
>
<div
class=
"course-comment"
>
<div
class=
"item"
v-for=
"item in list"
:key=
"item.qaId"
>
<img
class=
"img"
:src=
"item.imageUrl"
alt=
"头像"
/>
<div
class=
"info-box"
>
<div
class=
"info-user"
>
<div
class=
"name"
>
{{
item
.
doctorName
}}
</div>
<div
class=
"date"
>
{{
item
.
createTime
}}
</div>
</div>
<div
class=
"message"
>
{{
item
.
message
}}
</div>
<div
class=
"reply-box"
v-if=
"item.aList && item.aList.length"
>
<div
class=
"reply-item"
v-for=
"child in item.aList"
:key=
"child.qaId"
>
<div
class=
"reply-user"
>
<div
class=
"name"
>
{{
child
.
doctorName
}}
</div>
<div
class=
"date"
>
{{
child
.
createTime
}}
</div>
</div>
<div
class=
"message"
>
{{
child
.
message
}}
</div>
</div>
<div
class=
""
></div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
list
:
{
type
:
Array
,
default
()
{
return
[]
}
}
},
data
()
{
return
{};
},
methods
:
{
btnClick
()
{
if
(
this
.
type
==
"disabled"
)
return
;
this
.
$emit
(
"btnClick"
);
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.course-comment
{
padding
:
0
px2rem
(
15px
);
.item
{
position
:
relative
;
display
:
flex
;
font-size
:
px2rem
(
14px
);
padding
:
px2rem
(
20px
)
0
;
&
:
:
after
{
position
:
absolute
;
content
:
""
;
left
:
0
;
bottom
:
0
;
width
:
200%
;
height
:
0
;
transform
:
scale
(
0
.5
);
transform-origin
:
left
center
;
border-bottom
:
1px
solid
#F0F0F0
;
}
}
.img
{
display
:
block
;
width
:
px2rem
(
32px
);
height
:
px2rem
(
32px
);
margin-right
:
px2rem
(
10px
);
}
.info-box
{
flex
:
1
;
width
:
100px
;
}
.info-user
,
.reply-user
{
display
:
flex
;
padding-bottom
:
px2rem
(
10px
);
.name
{
color
:
#676869
;
flex
:
1
;
width
:
80px
;
}
.date
{
color
:
#979899
;
font-size
:
px2rem
(
12px
);
}
}
.message
{
line-height
:
px2rem
(
22px
);
text-align
:
justify
;
}
.reply-box
{
margin-top
:
px2rem
(
15px
);
padding
:
12px
;
background-color
:
#F8F9FA
;
}
.reply-item
{
padding-bottom
:
px2rem
(
20px
);
}
}
</
style
>
src/views/course-detail.vue
浏览文件 @
347c8657
...
...
@@ -20,27 +20,44 @@
<div
class=
"btn-download"
>
下载
</div>
<div
class=
"btn-open"
>
打开
</div>
</div>
<Loading
v-if=
"showLoading"
/>
</div>
</
template
>
<
script
>
import
PicaVideo
from
'@/components/course/pica-video'
;
import
Loading
from
"@/components/common/common-loading"
;
export
default
{
components
:
{
PicaVideo
PicaVideo
,
Loading
},
data
()
{
return
{
isShowDialog
:
tru
e
,
showLoading
:
fals
e
,
};
},
mounted
()
{
this
.
getCourseInfo
();
this
.
$refs
.
picaVideo
.
switchUrl
({
url
:
'https://video.yunqueyi.com/TNB/002/01_01_APP_SD.mp4'
,
});
},
methods
:
{
getCourseInfo
()
{
const
{
projectId
=
797
,
courseId
=
2
}
=
this
.
$route
.
query
;
this
.
showLoading
=
true
;
this
.
GET
(
`/contents/courses/
${
courseId
}
/pcCourseInfo`
,
{
projectId
}).
then
(
res
=>
{
this
.
showLoading
=
false
;
if
(
res
.
code
==
"000000"
)
{
}
else
{
this
.
$toast
(
res
.
message
);
}
});
},
// 视频播放结束
onVideoEnd
()
{
...
...
src/views/index.vue
浏览文件 @
347c8657
...
...
@@ -263,7 +263,7 @@ export default {
this
.
currentModelIndex
=
len
;
}
}
else
{
this
.
message
.
error
(
res
.
message
);
this
.
$toast
(
res
.
message
);
}
}
);
}
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录