Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
1e48a81e
提交
1e48a81e
编写于
8月 19, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
简介部分
上级
07b2401d
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
331 行增加
和
11 行删除
+331
-11
brief-intro.vue
src/components/course/brief-intro.vue
+52
-0
common-title.vue
src/components/course/common-title.vue
+25
-0
course-covers.vue
src/components/course/course-covers.vue
+5
-0
course-harvest.vue
src/components/course/course-harvest.vue
+64
-0
course-intro.vue
src/components/course/course-intro.vue
+76
-0
course-teacher.vue
src/components/course/course-teacher.vue
+100
-0
global.scss
src/style/global.scss
+0
-5
test-components.vue
src/views/test-components.vue
+9
-6
未找到文件。
src/components/course/brief-intro.vue
0 → 100644
浏览文件 @
1e48a81e
<
template
>
<div
class=
"brief-intro-wrapper"
>
<TeacherIntro
:doctorList=
"doctorList"
></TeacherIntro>
<CourseIntro></CourseIntro>
<CourseHarvest></CourseHarvest>
</div>
</
template
>
<
script
>
import
TeacherIntro
from
"@/components/course/course-teacher"
;
import
CourseIntro
from
"@/components/course/course-intro"
;
import
CourseHarvest
from
"@/components/course/course-harvest"
;
export
default
{
components
:
{
TeacherIntro
,
CourseIntro
,
CourseHarvest
,
},
data
()
{
return
{
doctorList
:
[
{
id
:
973
,
name
:
"左力"
,
appImageUrl
:
"https://file.yunqueyi.com/image/png/2020/07/24/20200724175216870-82aae111.png"
,
avatarImageUrl
:
"https://file.yunqueyi.com/image/png/2020/07/24/20200724175216870-82aae111.png"
,
hospital
:
"北京大学人民医院"
,
title
:
"主任医师"
,
info
:
""
},
{
id
:
973
,
name
:
"左力"
,
appImageUrl
:
"https://file.yunqueyi.com/image/png/2020/07/24/20200724175216870-82aae111.png"
,
avatarImageUrl
:
"https://file.yunqueyi.com/image/png/2020/07/24/20200724175216870-82aae111.png"
,
hospital
:
"北京大学人民医院"
,
title
:
"主任医师"
,
info
:
""
},
]
};
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.brief-intro-wrapper
{
}
</
style
>
\ No newline at end of file
src/components/course/common-title.vue
0 → 100644
浏览文件 @
1e48a81e
<
template
>
<span
class=
"common-title-wrapper"
>
{{
title
}}
</span>
</
template
>
<
script
>
export
default
{
props
:
{
title
:
{
type
:
String
,
default
:
"课程简介"
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.common-title-wrapper
{
display
:
inline-block
;
height
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
margin
:
px2rem
(
30px
)
px2rem
(
15px
)
px2rem
(
15px
);
font-size
:
px2rem
(
18px
);
font-weight
:
700
;
color
:
#373839
;
}
</
style
>
\ No newline at end of file
src/components/course/course-covers.vue
浏览文件 @
1e48a81e
...
...
@@ -62,5 +62,10 @@ export default {
text-align
:
center
;
font-size
:
px2rem
(
15px
);
}
.course-button-group
{
display
:
flex
;
align-items
:
center
;
justify-content
:center
;
}
}
</
style
>
\ No newline at end of file
src/components/course/course-harvest.vue
0 → 100644
浏览文件 @
1e48a81e
<
template
>
<div
class=
"course-harvest-wrapper"
>
<CommonTitle
:title=
"title"
></CommonTitle>
<ul
class=
"list-wrapper"
>
<li
class=
"item"
>
<span
class=
"name"
>
卫计委《基层全科诊断资质》证书
</span>
<span
class=
"btn"
>
查看
</span>
</li>
<li
class=
"item"
>
<span
class=
"name"
>
卫计委《基层全科诊断资质》证书
</span>
<span
class=
"btn"
>
查看
</span>
</li>
<li
class=
"item"
>
<span
class=
"name"
>
卫计委《基层全科诊断资质》证书
</span>
<span
class=
"btn"
>
查看
</span>
</li>
</ul>
</div>
</
template
>
<
script
>
import
CommonTitle
from
"@/components/course/common-title"
export
default
{
components
:
{
CommonTitle
},
data
()
{
return
{
title
:
"学习收获"
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.course-harvest-wrapper
{
.list-wrapper
{
.item
{
display
:
flex
;
justify-content
:
space-between
;
height
:
px2rem
(
65px
);
line-height
:
px2rem
(
65px
);
margin
:
0
px2rem
(
15px
);
align-items
:
center
;
border-bottom
:
1px
solid
#E7E8E9
;
.name
{
font-size
:
px2rem
(
15px
);
font-weight
:
700
;
color
:
#333333
;
}
.btn
{
display
:
inline-block
;
height
:
px2rem
(
25px
);
line-height
:
px2rem
(
25px
);
font-size
:
px2rem
(
12px
);
font-weight
:
700
;
padding
:
0
px2rem
(
18px
);
color
:
#449284
;
border-radius
:
px2rem
(
15px
);
border
:
1px
solid
rgba
(
68
,
146
,
132
,
0
.45
);
}
}
}
}
</
style
>
\ No newline at end of file
src/components/course/course-intro.vue
0 → 100644
浏览文件 @
1e48a81e
<
template
>
<div
class=
"course-intro-wrapper"
>
<CommonTitle></CommonTitle>
<div
class=
"body"
>
<span
class=
"content"
:class=
"
{'ellipsis': isUp}">
{{
content
}}
</span>
<div
class=
"toggle-btn"
@
click=
"isUp=!isUp"
>
<span
class=
"action"
>
{{
isUp
?
"详情"
:
"收起"
}}
</span>
<img
v-show=
"isUp"
src=
"../../images/down.png"
alt=
""
>
<img
v-show=
"!isUp"
src=
"../../images/up.png"
alt=
""
>
</div>
</div>
</div>
</
template
>
<
script
>
import
CommonTitle
from
"@/components/course/common-title"
export
default
{
components
:
{
CommonTitle
},
props
:
{
content
:
{
type
:
String
,
default
:
"本课程从三级本课程从三级本课程从1级本课课程从三级本课程从1级本课课程从三级本课程从1级本课程从三级本本课程本课b从三级本课程从三级本课程从1级本课程从三级本课程从三级本课程从三级"
}
},
data
()
{
return
{
isUp
:
true
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.course-intro-wrapper
{
.body
{
position
:
relative
;
color
:
#676869
;
font-size
:
px2rem
(
14px
);
padding
:
0
px2rem
(
15px
);
.content
{
display
:
block
;
text-align
:
justify
;
&
.ellipsis
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-
webkit-box
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
white-space
:
normal
;
}
}
.toggle-btn
{
// background: #fff;
position
:
absolute
;
right
:
px2rem
(
15px
);
bottom
:
0
;
display
:
flex
;
align-items
:
center
;
padding-left
:
px2rem
(
30px
);
background
:
-webkit-linear-gradient
(
left
,
transparent
,
#fff
30%
);
img
{
position
:
relative
;
top
:
px2rem
(
1px
);
margin-left
:
px2rem
(
6px
);
width
:
px2rem
(
12px
);
height
:
px2rem
(
7px
);
}
.action
{
color
:
#449284
;
}
}
}
}
</
style
>
\ No newline at end of file
src/components/course/course-teacher.vue
0 → 100644
浏览文件 @
1e48a81e
<
template
>
<div
class=
"course-teacher-wrapper"
>
<div
class=
"basic-title"
>
讲师介绍
</div>
<div
class=
"leader-info"
v-for=
"(item,index) in doctorList"
:key=
"index"
>
<img
:src=
"item.appImageUrl"
/>
<div
class=
"leader-text"
>
<div
class=
"leader-con"
>
<span>
{{
item
.
name
}}
</span>
<span
class=
"leader-title"
>
{{
item
.
title
}}
</span>
</div>
<div
class=
"hospital"
>
{{
item
.
hospital
}}
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
doctorList
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.course-teacher-wrapper
{
padding
:
px2rem
(
30px
)
px2rem
(
15px
)
0px
;
.basic-title
{
font-size
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
color
:
#373839
;
font-weight
:
700
;
}
.leader-info
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
px2rem
(
16px
);
padding-bottom
:
px2rem
(
16px
);
border-bottom
:
1px
solid
#E7E8E9
;
img
{
display
:
inline-block
;
width
:
px2rem
(
44px
);
height
:
px2rem
(
44px
);
border-radius
:
50%
;
}
.leader-text
{
margin-left
:
px2rem
(
16px
);
margin-top
:
px2rem
(
6px
);
.leader-con
{
line-height
:
px2rem
(
14px
);
display
:
flex
;
flex-direction
:
row
;
span
{
font-size
:
px2rem
(
16px
);
color
:
#676869
;
}
span
:first-child
{
font-size
:
px2rem
(
16px
);
color
:
#373839
;
font-weight
:
700
;
line-height
:
1
.1
;
}
.leader-title
{
width
:
px2rem
(
220px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:nowrap
;
line-height
:
px2rem
(
16px
);
margin-left
:
px2rem
(
6px
);
}
}
.hospital
{
margin-top
:
px2rem
(
5px
);
font-size
:
px2rem
(
13px
);
color
:
#979899
;
width
:
px2rem
(
240px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:nowrap
;
}
}
}
}
</
style
>
\ No newline at end of file
src/style/global.scss
浏览文件 @
1e48a81e
...
...
@@ -179,9 +179,4 @@
font-size
:
17px
;
color
:
#449284
;
}
}
.course-button-group
{
display
:
flex
;
align-items
:
center
;
justify-content
:center
;
}
\ No newline at end of file
src/views/test-components.vue
浏览文件 @
1e48a81e
...
...
@@ -15,8 +15,9 @@
<CourseButton
type=
"plain"
></CourseButton>
<CourseButton></CourseButton>
</div>
-->
<
CourseCovers></CourseCovers
>
<
!--
<CourseCovers></CourseCovers>
--
>
<!--
<div
@
click=
"testDialog"
>
testDialog
</div>
-->
<BriefIntro></BriefIntro>
</div>
</
template
>
<
script
>
...
...
@@ -26,6 +27,7 @@ import CommonBottomInfo from "@/components/cme/common-bottom-info";
import
CommonErrorTips
from
"@/components/course/common-error-tips"
;
import
CourseButton
from
"@/components/course/course-button"
;
import
CourseCovers
from
"@/components/course/course-covers"
;
import
BriefIntro
from
"@/components/course/brief-intro"
;
export
default
{
data
()
{
...
...
@@ -37,13 +39,14 @@ export default {
// CommonButton,
// CommonDialog,
// CommonBottomInfo,
CommonErrorTips
,
CourseButton
,
CourseCovers
// CommonErrorTips,
// CourseButton,
// CourseCovers,
BriefIntro
},
mounted
()
{
// Toast
this
.
$toast
({
message
:
'展示图片'
,
duration
:
3000
});
//
this.$toast({message: '展示图片', duration: 3000 });
},
beforeDestroyed
()
{},
...
...
@@ -68,7 +71,7 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
"../style/mixin"
;
.test-container
{
background
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.8
);
//
background: rgba($color: #000000, $alpha: 0.8);
}
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录