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
提交
89ccb928
提交
89ccb928
编写于
10月 25, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yqy-category-three-1
上级
a24f7d50
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
172 行增加
和
1 行删除
+172
-1
yqy-category-three-1.vue
src/components/business/yqy-category-three-1.vue
+161
-0
global.scss
src/style/global.scss
+7
-0
home.vue
src/views/home/home.vue
+4
-1
未找到文件。
src/components/business/yqy-category-three-1.vue
0 → 100644
浏览文件 @
89ccb928
<
template
>
<div
class=
"hotTeacher"
>
<div
:style=
"
{'text-align': resourceData.direction}" class="hotTagTitle">
{{
resourceData
.
title
}}
</div>
<div
class=
"teacherItem space-between"
>
<div
:style=
"
{'background-color':resourceData.item.pic1.bg}" class="category-left">
<div
class=
"img1-title fs14 center fw"
>
{{
resourceData
.
item
.
pic1
.
title
}}
</div>
<div
class=
"fs14 fw gray"
>
{{
resourceData
.
item
.
pic1
.
time
}}
</div>
<img
class=
"category-img-tag"
:src=
"resourceData.item.pic1.left"
/>
<img
class=
"category-img1"
:src=
"right"
/>
</div>
<div
class=
"category-right"
>
<div
class=
"relative category-img2"
>
<div
class=
"category-img2-title fs14"
>
{{
resourceData
.
item
.
pic2
.
title
}}
</div>
<img
class=
"category-img-tag"
:src=
"resourceData.item.pic2.left"
/>
<img
class=
"category-img"
:src=
"resourceData.item.pic2.bg"
/>
</div>
<div
class=
"category-img3"
>
<div
class=
"category-img2-title fs14"
>
{{
resourceData
.
item
.
pic3
.
title
}}
</div>
<img
class=
"category-img-tag"
:src=
"resourceData.item.pic3.left"
/>
<img
class=
"category-img"
:src=
"resourceData.item.pic3.bg"
/>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'YqyHotTeacher'
,
components
:
{
},
watch
:
{
},
props
:
{
resourceData
:
{
type
:
Object
,
default
:()
=>
{
return
{
title
:
'专题分类'
,
direction
:
'left'
,
item
:
{
pic1
:{
bg
:
'RGBA(230, 243, 243, 1)'
,
title
:
'用医学知识 赢百万现金'
,
time
:
'每周四20:00开赛'
,
left
:
'../../images/Shape@2x.png'
,
right
:
'../../images/Shape@2x.png'
},
pic2
:{
bg
:
'../../images/Shape@2x.png'
,
title
:
'心血管病高危人群早期筛查与综合干预'
,
left
:
'../../images/Shape@2x.png'
},
pic3
:{
bg
:
'../../images/Shape@2x.png'
,
title
:
'心血管病高危人群早期筛查与综合干预'
,
left
:
'../../images/Shape@2x.png'
}
}
}
}
}
},
data
()
{
return
{
}
},
mounted
(){
},
methods
:
{
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
@import
'../../style/global.scss'
;
.hotTagTitle
{
font-size
:
px2rem
(
18px
);
font-weight
:
bold
;
margin-bottom
:
px2rem
(
15px
);
}
.hotTeacher
{
width
:
100%
;
background-color
:
#fff
;
padding
:
0
px2rem
(
15px
)
px2rem
(
26px
);
.teacherItem
{
width
:
100%
;
height
:
px2rem
(
190px
);
.category-left
{
width
:
px2rem
(
168px
);
height
:
px2rem
(
190px
);
position
:
relative
;
padding
:
px2rem
(
10px
);
.category-img
{
width
:
100%
;
height
:
100%
;
}
.category-img1
{
width
:
px2rem
(
101px
);
height
:
px2rem
(
120px
);
position
:absolute
;
bottom
:
0
;
right
:
0
;
}
.category-img-tag
{
width
:
px2rem
(
55px
);
height
:
px2rem
(
17px
);
position
:absolute
;
bottom
:
px2rem
(
10px
);
left
:
px2rem
(
10px
);
}
.img1-title
{
color
:
RGBA
(
49
,
125
,
121
,
1
);
margin
:
px2rem
(
5px
)
0
px2rem
(
3px
)
0
;
}
}
.category-right
{
width
:
px2rem
(
168px
);
height
:
px2rem
(
190px
);
position
:
relative
;
.category-img2-title
{
color
:
RGBA
(
74
,
85
,
102
,
1
);
}
.category-img
{
width
:
100%
;
height
:
100%
;
}
.category-img-tag
{
width
:
px2rem
(
55px
);
height
:
px2rem
(
17px
);
position
:absolute
;
bottom
:
px2rem
(
10px
);
left
:
px2rem
(
10px
);
}
.category-img3
{
width
:
px2rem
(
168px
);
height
:
px2rem
(
90px
);
margin-top
:
px2rem
(
10px
);
}
.category-img2
{
width
:
px2rem
(
168px
);
height
:
px2rem
(
90px
);
}
.category-img2-title
{
position
:absolute
;
color
:
RGBA
(
74
,
85
,
102
,
1
);
margin
:
px2rem
(
10px
);
}
}
.teacherItemImg
{
width
:
px2rem
(
23px
);
height
:
px2rem
(
23px
);
border-radius
:
50%
;
position
:
absolute
;
top
:
10px
;
}
}
}
</
style
>
src/style/global.scss
浏览文件 @
89ccb928
@import
'./common.scss'
;
@import
'./common.scss'
;
//定位
.relative
{
position
:
relative
;
}
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
...
@@ -43,6 +47,9 @@
...
@@ -43,6 +47,9 @@
.fs26
{
.fs26
{
font-size
:
px2rem
(
13px
);
font-size
:
px2rem
(
13px
);
}
}
.fw
{
font-weight
:
600
;
}
.gray
{
.gray
{
color
:
RGBA
(
177
,
181
,
184
,
1
);
color
:
RGBA
(
177
,
181
,
184
,
1
);
}
}
...
...
src/views/home/home.vue
浏览文件 @
89ccb928
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<YqyHotLabel/>
<YqyHotLabel/>
<YqyHomeAdv/>
<YqyHomeAdv/>
<YqyCategoryThree1/>
<YqyFiveMinutes/>
<YqyFiveMinutes/>
<YqyHotTeacher/>
<YqyHotTeacher/>
<YqyTeacherList/>
<YqyTeacherList/>
...
@@ -40,6 +41,7 @@ import YqyTeacherInfo from '../../components/business/yqy-teacher-info';
...
@@ -40,6 +41,7 @@ import YqyTeacherInfo from '../../components/business/yqy-teacher-info';
import
YqyHomeHeader
from
'../../components/business/yqy-home-header'
;
import
YqyHomeHeader
from
'../../components/business/yqy-home-header'
;
import
YqyHomeAdv
from
'../../components/business/yqy-home-adv'
;
import
YqyHomeAdv
from
'../../components/business/yqy-home-adv'
;
import
YqyFiveMinutes
from
'../../components/business/yqy-five-minutes'
;
import
YqyFiveMinutes
from
'../../components/business/yqy-five-minutes'
;
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -55,7 +57,8 @@ export default {
...
@@ -55,7 +57,8 @@ export default {
YqyTeacherInfo
,
YqyTeacherInfo
,
YqyHomeHeader
,
YqyHomeHeader
,
YqyHomeAdv
,
YqyHomeAdv
,
YqyFiveMinutes
YqyFiveMinutes
,
YqyCategoryThree1
},
},
mounted
(){
mounted
(){
this
.
init
()
this
.
init
()
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录