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
提交
b4931cfd
提交
b4931cfd
编写于
10月 25, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
搜索框
上级
fe74b741
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
65 行增加
和
46 行删除
+65
-46
yqy-home-header.vue
src/components/business/yqy-home-header.vue
+63
-45
home.vue
src/views/home/home.vue
+2
-1
未找到文件。
src/components/business/yqy-home-header.vue
浏览文件 @
b4931cfd
<
template
>
<div
class=
"hello"
>
<div
class=
"header"
>
<div
class=
"search"
>
<input
type=
"search"
class=
"input"
v-model=
"message"
placeholder=
"请输入课程名称"
/>
<img
class=
"searchImg"
src=
"../../images/Shape@2x.png"
>
</div>
<div
class=
"white gxy"
>
高血压
</div>
<div>
<span
class=
"white fs30 gxyStudy"
>
287,387人学习
</span>
<span
class=
"white fs30"
>
327,387人关注
</span>
</div>
<Banner/>
<div
class=
"space-between header"
>
<div
class=
"search"
>
<input
type=
"search"
class=
"input"
v-model=
"message"
:placeholder=
"resourceData.placeholder"
/>
<img
class=
"searchImg"
:src=
"resourceData.img"
>
</div>
<div
class=
"headerRight"
>
<img
class=
"info"
:src=
"resourceData.img"
>
<img
class=
"info-count"
:src=
"resourceData.img"
>
</div>
</div>
</
template
>
...
...
@@ -20,6 +16,17 @@ export default {
name
:
'header'
,
components
:
{
},
props
:
{
resourceData
:
{
type
:
Object
,
default
:()
=>
{
return
{
placeholder
:
'请输入课程名称'
,
img
:
'../../images/Shape@2x.png'
}
}
}
},
watch
:
{
message
(
val
){
console
.
log
(
'val'
,
val
);
...
...
@@ -42,98 +49,109 @@ export default {
@import
'../../style/mixin.scss'
;
@import
'../../style/global.scss'
;
html
,
body
{
width
:
750px
;
width
:
px2rem
(
375px
)
;
height
:
100%
;
background-color
:
#F8F8F8
;
}
.white
{
color
:
#fff
;
}
.headerRight
{
width
:
px2rem
(
30px
);
height
:
px2rem
(
30px
);
}
.fs30
{
font-size
:
30px
;
font-size
:
px2rem
(
15px
)
;
}
.gxyStudy
{
margin-right
:
38px
;
margin-right
:
px2rem
(
19px
)
;
}
.gxy
{
font-size
:
50px
;
margin
:
50px
0
22px
0
;
font-size
:
px2rem
(
25px
)
;
margin
:
px2rem
(
25px
)
0
px2rem
(
11px
)
0
;
}
.header
{
width
:
100%
;
height
:
416px
;
background-image
:
url('http://pica-pro.oss-cn-shanghai.aliyuncs.com/teach/bg.png')
;
padding-top
:
40px
;
padding
:
0
px2rem
(
25px
)
0
px2rem
(
15px
);
position
:
relative
;
}
.search
{
width
:
580px
;
height
:
60px
;
border-radius
:
38px
;
width
:
px2rem
(
290px
)
;
height
:
px2rem
(
30px
)
;
border-radius
:
px2rem
(
19px
)
;
background-color
:
#fff
;
margin
:
0
auto
;
}
.input
{
outline
:
none
;
border
:
none
;
float
:
left
;
font-size
:
26px
;
margin
:
12px
0
12px
30px
;
line-height
:
36px
;
font-size
:
px2rem
(
13px
)
;
margin
:
px2rem
(
6px
)
0
px2rem
(
6px
)
px2rem
(
15px
)
;
line-height
:
px2rem
(
18px
)
;
width
:
80%
;
}
.searchImg
{
width
:
32px
;
height
:
32px
;
margin
:
16px
36px
16px
0
;
width
:
px2rem
(
16px
)
;
height
:
px2rem
(
16px
)
;
margin
:
px2rem
(
8px
)
px2rem
(
18px
)
px2rem
(
8px
)
0
;
float
:
right
;
}
.info
{
width
:
px2rem
(
20px
);
height
:
px2rem
(
20px
);
}
.info-count
{
position
:absolute
;
top
:
px2rem
(
-10px
);
right
:
px2rem
(
21px
);
}
.hotTag
{
width
:
100%
;
height
:
300px
;
height
:
px2rem
(
150px
)
;
}
.hotTagTitle
{
font-size
:
36px
;
padding
:
147px
30px
;
font-size
:
px2rem
(
18px
)
;
padding
:
px2rem
(
73px
)
px2rem
(
15px
)
;
float
:
left
;
background-color
:
#fff
;
}
.cource
{
width
:
100%
;
height
:
700px
;
height
:
px2rem
(
350px
)
;
}
.fontTitle
{
font-size
:
36px
;
padding
:
0
0
42px
30px
;
font-size
:
px2rem
(
18px
)
;
padding
:
0
0
px2rem
(
21px
)
px2rem
(
15px
)
;
float
:
left
;
width
:
100%
;
text-align
:
left
;
}
.title
{
font-size
:
32px
;
font-size
:
px2rem
(
16px
)
;
}
.courceLeft
{
float
:
left
;
padding-left
:
30px
;
padding-left
:
px2rem
(
15px
)
;
}
.needLeft
{
float
:
left
;
padding
:
0
0
80px
30px
;
padding
:
0
0
px2rem
(
40px
)
px2rem
(
15px
)
;
}
.courceTime
{
float
:
left
;
}
.courceImg
{
width
:
340px
;
height
:
192px
;
margin-bottom
:
20px
;
width
:
px2rem
(
170px
)
;
height
:
px2rem
(
96px
)
;
margin-bottom
:
px2rem
(
10px
)
;
}
.courceMore
{
font-size
:
30px
;
font-size
:
px2rem
(
15px
)
;
color
:
#999999
;
}
.need
{
width
:
100%
;
height
:
650px
;
margin-top
:
70px
;
height
:
px2rem
(
325px
)
;
margin-top
:
px2rem
(
35px
)
;
}
</
style
>
src/views/home/home.vue
浏览文件 @
b4931cfd
...
...
@@ -8,6 +8,7 @@
<mt-button
icon=
"more"
slot=
"right"
></mt-button>
</mt-header>
<article
style=
"width: 100%;text-align:center;"
>
<YqyHomeHeader/>
<img
class=
"logo_img"
src=
'../../images/header-bg-2.png'
/>
</article>
</section>
...
...
@@ -19,7 +20,7 @@
<YqyHotTeacher/>
<YqyTeacherList/>
<YqyTeacherInfo/>
<!--
<YqyHomeHeader/>
-->
</section>
<section
class=
"home-bottom"
>
<!--
<yqyTest/>
-->
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录