Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9aaf9e3d
提交
9aaf9e3d
编写于
10月 26, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yqy-home-porter
上级
028600cc
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
122 行增加
和
1 行删除
+122
-1
yqy-home-porter.vue
src/components/business/yqy-home-porter.vue
+115
-0
global.scss
src/style/global.scss
+3
-0
home.vue
src/views/home/home.vue
+4
-1
未找到文件。
src/components/business/yqy-home-porter.vue
0 → 100644
浏览文件 @
9aaf9e3d
<
template
>
<div
class=
"hotTeacher"
>
<div
class=
"space-between"
>
<img
class=
"img"
src=
"../../images/Shape@2x.png"
/>
</div>
<div
class=
"teacherItem space-between"
>
<div
class=
"teacherItemImg"
>
<img
:src=
"resourceData.img"
/>
</div>
<div
class=
"fiveText"
>
<div
class=
"teacherItemName fw fs30"
>
{{
resourceData
.
name
}}
</div>
<div
class=
"five-tag fs28 gray"
>
{{
resourceData
.
motto
}}
</div>
<div
@
click=
"btn"
class=
"porterBtn white fs22"
>
查看
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'YqyFiveMinutes'
,
components
:
{
},
watch
:
{
},
props
:
{
resourceData
:
{
type
:
Object
,
default
:()
=>
{
return
{
img
:
'../../images/Shape@2x.png'
,
name
:
'原来高血压'
,
motto
:
'北京大学人民医院'
}
}
}
},
data
()
{
return
{
}
},
mounted
(){
},
methods
:
{
fiveMinutesMore
(){
console
.
log
(
'fiveMinutesMore'
);
this
.
$emit
(
'fiveMinutesMore'
)
},
btn
(){
console
.
log
(
'btn'
);
this
.
$emit
(
'btn'
)
}
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin.scss'
;
@import
'../../style/global.scss'
;
.hotTeacher
{
width
:
100%
;
background-color
:
#fff
;
padding
:
0
px2rem
(
15px
)
px2rem
(
26px
);
.img
{
width
:
px2rem
(
109px
);
height
:
px2rem
(
22px
);
}
.five-more
{
border
:
1px
solid
RGBA
(
169
,
174
,
183
,
1
);
border-radius
:
px2rem
(
9px
);
width
:
px2rem
(
40px
);
height
:
px2rem
(
16px
);
text-align
:
center
;
line-height
:
px2rem
(
15px
);
}
.teacherItem
{
width
:
100%
;
height
:
px2rem
(
85px
);
position
:
relative
;
margin-top
:
px2rem
(
20px
);
&
:not
(
:last-child
)
{
border-bottom
:
1px
solid
RGBA
(
240
,
240
,
240
,
1
);
}
.teacherItemImg
{
width
:
px2rem
(
56px
);
height
:
px2rem
(
63px
);
border-radius
:
px2rem
(
3px
);
}
.fiveText
{
width
:
px2rem
(
280px
);
height
:
px2rem
(
38px
);
}
.teacherItemName
{
color
:
RGBA
(
102
,
102
,
102
,
1
);
margin
:
px2rem
(
10px
)
0
px2rem
(
6px
);
}
.five-tag
{
width
:
px2rem
(
235px
);
height
:
px2rem
(
14px
);
}
.porterBtn
{
width
:
px2rem
(
42px
);
height
:
px2rem
(
20px
);
background
:
linear-gradient
(
to
bottom
,
RGBA
(
143
,
193
,
230
,
1
)
,
RGBA
(
88
,
144
,
221
,
1
));
border-radius
:
px2rem
(
14px
);
text-align
:
center
;
line-height
:
px2rem
(
20px
);
position
:absolute
;
right
:
0
;
top
:
px2rem
(
18px
);
}
}
}
</
style
>
src/style/global.scss
浏览文件 @
9aaf9e3d
...
@@ -57,6 +57,9 @@
...
@@ -57,6 +57,9 @@
.fs28
{
.fs28
{
font-size
:
px2rem
(
14px
);
font-size
:
px2rem
(
14px
);
}
}
.fs30
{
font-size
:
px2rem
(
15px
);
}
.fw
{
.fw
{
font-weight
:
600
;
font-weight
:
600
;
}
}
...
...
src/views/home/home.vue
浏览文件 @
9aaf9e3d
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<span
@
click=
"goBack"
>
goBack 2
</span>
<span
@
click=
"goBack"
>
goBack 2
</span>
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<span
@
click=
"toast('Hi, 你好,宾宾!')"
>
toast 3
</span>
<YqyHotLabel/>
<YqyHotLabel/>
<YqyHomePorter/>
<YqyHomeBanner/>
<YqyHomeBanner/>
<YqyHomeKeepon/>
<YqyHomeKeepon/>
<YqyHomeAdv/>
<YqyHomeAdv/>
...
@@ -46,6 +47,7 @@ import YqyFiveMinutes from '../../components/business/yqy-five-minutes';
...
@@ -46,6 +47,7 @@ import YqyFiveMinutes from '../../components/business/yqy-five-minutes';
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
import
YqyHomeBanner
from
'../../components/business/yqy-home-banner'
;
import
YqyHomeBanner
from
'../../components/business/yqy-home-banner'
;
import
YqyHomeKeepon
from
'../../components/business/yqy-home-keepon'
;
import
YqyHomeKeepon
from
'../../components/business/yqy-home-keepon'
;
import
YqyHomePorter
from
'../../components/business/yqy-home-porter'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -64,7 +66,8 @@ export default {
...
@@ -64,7 +66,8 @@ export default {
YqyFiveMinutes
,
YqyFiveMinutes
,
YqyCategoryThree1
,
YqyCategoryThree1
,
YqyHomeBanner
,
YqyHomeBanner
,
YqyHomeKeepon
YqyHomeKeepon
,
YqyHomePorter
},
},
mounted
(){
mounted
(){
this
.
init
()
this
.
init
()
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录