Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
a5752dd7
提交
a5752dd7
编写于
1月 28, 2019
作者:
杨广俊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
样式修改
上级
d141c1b7
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
311 行增加
和
9 行删除
+311
-9
yqy-hot-lecturer.vue
src/components/business/yqy-hot-lecturer.vue
+7
-7
yqy-teacher-list.1.vue
src/components/business/yqy-teacher-list.1.vue
+299
-0
yqy-teacher-list.vue
src/components/business/yqy-teacher-list.vue
+5
-2
未找到文件。
src/components/business/yqy-hot-lecturer.vue
浏览文件 @
a5752dd7
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
&
-wrapper
{
&
-wrapper
{
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
height
:
px2rem
(
1
1
5px
);
height
:
px2rem
(
1
2
5px
);
overflow-x
:
scroll
;
overflow-x
:
scroll
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
outline
:
0
;
outline
:
0
;
...
@@ -118,11 +118,11 @@ export default {
...
@@ -118,11 +118,11 @@ export default {
flex-direction
:
columns
;
flex-direction
:
columns
;
margin-left
:
px2rem
(
12px
);
margin-left
:
px2rem
(
12px
);
width
:
px2rem
(
666px
);
width
:
px2rem
(
666px
);
height
:
px2rem
(
133
px
);
// height: px2rem(130
px);
&
-item
{
&
-item
{
display
:
inline-block
;
display
:
inline-block
;
width
:
px2rem
(
105px
);
width
:
px2rem
(
105px
);
height
:
px2rem
(
1
07
px
);
height
:
px2rem
(
1
15
px
);
margin
:
px2rem
(
3px
);
margin
:
px2rem
(
3px
);
text-align
:
center
;
text-align
:
center
;
background
:
rgba
(
255
,
255
,
255
,
1
);
background
:
rgba
(
255
,
255
,
255
,
1
);
...
@@ -142,14 +142,14 @@ export default {
...
@@ -142,14 +142,14 @@ export default {
img
{
img
{
width
:
px2rem
(
60px
);
width
:
px2rem
(
60px
);
height
:
px2rem
(
60px
);
height
:
px2rem
(
60px
);
margin-top
:
px2rem
(
5
px
);
margin-top
:
px2rem
(
7
px
);
border-radius
:
50%
;
border-radius
:
50%
;
}
}
span
{
span
{
display
:
inline-block
;
display
:
inline-block
;
position
:
absolute
;
position
:
absolute
;
left
:
px2rem
(
14px
);
left
:
px2rem
(
14px
);
top
:
px2rem
(
2
5
px
);
top
:
px2rem
(
2
7
px
);
font-size
:
px2rem
(
12px
);
font-size
:
px2rem
(
12px
);
span
{
span
{
width
:
px2rem
(
50px
);
width
:
px2rem
(
50px
);
...
@@ -178,14 +178,14 @@ export default {
...
@@ -178,14 +178,14 @@ export default {
.disp-blc.lect-ks
{
.disp-blc.lect-ks
{
position
:
relative
;
position
:
relative
;
left
:
0
;
left
:
0
;
top
:
px2rem
(
-
8
px
);
top
:
px2rem
(
-
6
px
);
font-size
:
px2rem
(
12px
);
font-size
:
px2rem
(
12px
);
color
:
#666
;
color
:
#666
;
}
}
.disp-blc.study-num
{
.disp-blc.study-num
{
position
:
relative
;
position
:
relative
;
left
:
0
;
left
:
0
;
top
:
px2rem
(
-
10
px
);
top
:
px2rem
(
-
8
px
);
font-size
:
px2rem
(
11px
);
font-size
:
px2rem
(
11px
);
color
:
#999
;
color
:
#999
;
}
}
...
...
src/components/business/yqy-teacher-list.1.vue
0 → 100644
浏览文件 @
a5752dd7
<
template
>
<section>
<div
class=
"font-style"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
:class=
"index % 2 == 1 ? 'list-item mr0' : 'list-item'"
v-for=
"(item, index) in cParamData"
:key=
"index"
@
click=
"gotoDetail(item)"
>
<div
class=
"tea-img"
:style=
"'background:'+ item.bgColor"
>
<!--
<img
:src=
"item.doctorAvatarImg"
>
-->
<img
:src=
"item.doctorImg"
>
<span
class=
"learn-p"
>
{{
item
.
joinNum
|
yLocalString
}}
人已学
</span>
<span
class=
"learn-p-cnum"
>
课程: 共
{{
item
.
resourceNum
}}
门
</span>
</div>
<div
class=
"tea-txt"
>
<div
class=
"tea-name"
>
<span>
{{
item
.
doctorName
}}
</span>
<span
class=
"tea-department"
>
{{
item
.
department
}}
</span>
</div>
<div
class=
"tea-position"
>
{{
item
.
doctorHospital
}}
</div>
</div>
</div>
<div
class=
"no-content"
v-show=
"!cParamData.length"
>
<img
class=
"no-content-img"
src=
"../../images//no-content.png"
alt=
" "
>
<span
class=
"no-content-desc"
>
暂无相关内容
</span>
</div>
</div>
</div>
</div>
</section>
</
template
>
<
script
>
import
{
getWebPageUrl
}
from
'@/utils'
import
{
teacher
}
from
"../../utils/buryingPoint"
;
import
{
mapGetters
}
from
"vuex"
;
import
YqyLecturerOrder
from
"@/components/business/yqy-lecturer-order"
;
export
default
{
data
()
{
return
{
col
:
1
,
//0综合,1人气,2资源数,3姓名首字母
dir
:
2
,
//1:正序 2:逆序,
list
:
[]
};
},
components
:
{
YqyLecturerOrder
},
props
:
{
parmData
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
mounted
()
{},
computed
:
{
cParamData
()
{
if
(
this
.
parmData
&&
this
.
parmData
.
length
)
{
return
this
.
randomBg
(
this
.
parmData
);
}
else
{
return
this
.
randomBg
(
this
.
list
);
}
}
},
methods
:
{
// 跳转到详情页面
gotoDetail
(
item
)
{
// this.$router.push({
// path: "/teachersDetail",
// query: {
// id: item.doctorId
// }
// });
let
paramList
=
[
{
id
:
699
,
key
:
"pageUrl"
,
value
:
getWebPageUrl
(
'appl/#/teachersDetail'
)
+
'?id='
+
item
.
doctorId
+
'&from='
+
'appHome'
,
// value: "https://uat-phome.yunqueyi.com/appl/#/teachersDetail",
type
:
4
,
seqNo
:
1
}
];
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
'M300'
,
jsonString
:
paramList
});
this
.
appBuryingPointEntrust
({
...
teacher
,
labelId
:
item
.
doctorId
,
labelValue
:
item
.
doctorName
});
},
// 随机生成背景颜色
randomBg
(
d
)
{
for
(
let
i
=
0
;
i
<
d
.
length
;
i
++
)
{
if
(
i
%
4
==
0
)
{
d
[
i
].
bgColor
=
"#EBF6F1"
;
}
else
if
(
i
%
4
==
1
)
{
d
[
i
].
bgColor
=
"#EDF3FA"
;
}
else
if
(
i
%
4
==
2
)
{
d
[
i
].
bgColor
=
"#F0F0FA"
;
}
else
if
(
i
%
4
==
3
)
{
d
[
i
].
bgColor
=
"#F6EFE6"
;
}
}
return
d
;
},
// 埋点
appBuryingPointEntrust
(
val
)
{
rocNative
.
appBuryingPointEntrust
(
val
);
}
}
};
</
script
>
<
style
>
body
{
background
:
#fff
;
}
</
style
>
<
style
lang=
"scss"
scoped
>
body
{
background
:
#fff
;
}
@import
"../../style/mixin"
;
.no-content
{
display
:
flex
;
flex-direction
:
column
;
margin
:
px2rem
(
40px
)
0
px2rem
(
50px
);
align-items
:
center
;
img
{
width
:
px2rem
(
125px
);
height
:
px2rem
(
125px
);
}
span
{
height
:
px2rem
(
21px
);
line-height
:
px2rem
(
21px
);
font-size
:
px2rem
(
15px
);
font-weight
:
400
;
color
:
rgba
(
153
,
153
,
153
,
1
);
}
}
.mint-header
{
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
);
}
.font-style
{
width
:
100%
;
overflow
:
hidden
;
@include
sc
(
0
.6rem
,
#666
);
}
.teach-opt
{
padding
:
0
px2rem
(
15px
)
px2rem
(
15px
)
px2rem
(
15px
);
.teach-title
{
font-size
:
px2rem
(
18px
);
// padding-bottom: px2rem(0px);
color
:
#333
;
}
.teach-list
{
margin-top
:
px2rem
(
-14px
);
overflow
:
hidden
;
}
.opt-span
{
span
{
color
:
#449284
;
font-size
:
px2rem
(
13px
);
display
:
inline-block
;
vertical-align
:
middle
;
height
:
px2rem
(
10px
);
line-height
:
px2rem
(
10px
);
img
{
display
:
inline-block
;
width
:
px2rem
(
15px
);
height
:
px2rem
(
15px
);
vertical-align
:
middle
;
}
}
}
.list-item
{
width
:
px2rem
(
170px
);
margin-right
:
px2rem
(
5px
);
margin-top
:
px2rem
(
15px
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.02
);
border-radius
:
0
0
px2rem
(
3px
)
px2rem
(
3px
);
float
:
left
;
box-shadow
:
0
px2rem
(
4px
)
px2rem
(
6px
)
RGBA
(
0
,
0
,
0
,
0
.06
);
}
.mr0
{
margin-right
:
0
;
}
.tea-txt
{
padding
:
px2rem
(
5px
)
px2rem
(
7px
);
}
.tea-img
{
width
:
px2rem
(
170px
);
height
:
px2rem
(
83px
);
position
:
relative
;
border-radius
:
px2rem
(
3px
)
px2rem
(
3px
)
0
0
;
img
{
width
:
100%
;
height
:
100%
;
display
:
block
;
border-radius
:
px2rem
(
3px
)
px2rem
(
3px
)
0
0
;
}
.learn-p
{
padding-left
:
px2rem
(
6px
);
position
:
absolute
;
width
:
100%
;
left
:
0
;
bottom
:
0
;
background
:
#333
;
background
:
linear-gradient
(
to
right
,
RGBA
(
0
,
0
,
0
,
0
.2
)
,
RGBA
(
0
,
0
,
0
,
0
)
);
// background: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.34) 100%);
color
:
#fff
;
font-size
:
px2rem
(
11px
);
height
:
px2rem
(
20px
);
line-height
:
px2rem
(
22px
);
&
-cnum
{
position
:
absolute
;
right
:
px2rem
(
8px
);
bottom
:
0
;
color
:
#fff
;
font-size
:
px2rem
(
11px
);
height
:
px2rem
(
20px
);
line-height
:
px2rem
(
22px
);
}
}
}
.tea-name
{
padding
:
0
;
color
:
#333
;
font-size
:
px2rem
(
14px
);
font-weight
:
500
;
}
.tea-department
{
padding
:
0
;
color
:
#333
;
font-size
:
px2rem
(
12px
);
font-weight
:
400
;
}
.tea-position
{
height
:
px2rem
(
30px
);
font-size
:
px2rem
(
12px
);
line-height
:
px2rem
(
15px
);
color
:
#666
;
font-weight
:
400
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
}
}
.home-header
{
height
:
px2rem
(
185px
);
@include
bis
(
"../../images//headerTop.png"
);
.logo_img
{
height
:
px2rem
(
85px
);
width
:
px2rem
(
345px
);
text-align
:
center
;
}
}
.ellipsis-1
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
}
.ellipsis-2
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
}
</
style
>
src/components/business/yqy-teacher-list.vue
浏览文件 @
a5752dd7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"teach-opt"
>
<div
class=
"teach-opt"
>
<div
class=
"teach-list"
>
<div
class=
"teach-list"
>
<div
<div
:class=
"index % 2 == 1 ? 'list-item mr0' : 'list-item'"
:class=
"index % 2 == 1 ? 'list-item mr0' : 'list-item
ml15
'"
v-for=
"(item, index) in cParamData"
v-for=
"(item, index) in cParamData"
:key=
"index"
:key=
"index"
@
click=
"gotoDetail(item)"
@
click=
"gotoDetail(item)"
...
@@ -160,7 +160,7 @@ body {
...
@@ -160,7 +160,7 @@ body {
}
}
.teach-opt
{
.teach-opt
{
padding
:
0
px2rem
(
15px
)
px2rem
(
15px
)
px2rem
(
15px
);
//
padding: 0 px2rem(15px) px2rem(15px) px2rem(15px);
.teach-title
{
.teach-title
{
font-size
:
px2rem
(
18px
);
font-size
:
px2rem
(
18px
);
...
@@ -201,6 +201,9 @@ body {
...
@@ -201,6 +201,9 @@ body {
box-shadow
:
0
px2rem
(
4px
)
px2rem
(
6px
)
RGBA
(
0
,
0
,
0
,
0
.06
);
box-shadow
:
0
px2rem
(
4px
)
px2rem
(
6px
)
RGBA
(
0
,
0
,
0
,
0
.06
);
}
}
.ml15
{
margin-left
:
px2rem
(
15px
);
}
.mr0
{
.mr0
{
margin-right
:
0
;
margin-right
:
0
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录