Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
fe74b741
提交
fe74b741
编写于
10月 25, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yqy-teacher-info的数据传进来
上级
3d8d42b5
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
164 行增加
和
7 行删除
+164
-7
yqy-home-header.vue
src/components/business/yqy-home-header.vue
+139
-0
yqy-teacher-info.vue
src/components/business/yqy-teacher-info.vue
+21
-6
home.vue
src/views/home/home.vue
+4
-1
未找到文件。
src/components/business/yqy-home-header.vue
0 → 100644
浏览文件 @
fe74b741
<
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>
</div>
</
template
>
<
script
>
export
default
{
name
:
'header'
,
components
:
{
},
watch
:
{
message
(
val
){
console
.
log
(
'val'
,
val
);
}
},
data
()
{
return
{
message
:
''
}
},
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'
;
html
,
body
{
width
:
750px
;
height
:
100%
;
background-color
:
#F8F8F8
;
}
.white
{
color
:
#fff
;
}
.fs30
{
font-size
:
30px
;
}
.gxyStudy
{
margin-right
:
38px
;
}
.gxy
{
font-size
:
50px
;
margin
:
50px
0
22px
0
;
}
.header
{
width
:
100%
;
height
:
416px
;
background-image
:
url('http://pica-pro.oss-cn-shanghai.aliyuncs.com/teach/bg.png')
;
padding-top
:
40px
;
}
.search
{
width
:
580px
;
height
:
60px
;
border-radius
:
38px
;
background-color
:
#fff
;
margin
:
0
auto
;
}
.input
{
outline
:
none
;
border
:
none
;
float
:
left
;
font-size
:
26px
;
margin
:
12px
0
12px
30px
;
line-height
:
36px
;
width
:
80%
;
}
.searchImg
{
width
:
32px
;
height
:
32px
;
margin
:
16px
36px
16px
0
;
float
:
right
;
}
.hotTag
{
width
:
100%
;
height
:
300px
;
}
.hotTagTitle
{
font-size
:
36px
;
padding
:
147px
30px
;
float
:
left
;
background-color
:
#fff
;
}
.cource
{
width
:
100%
;
height
:
700px
;
}
.fontTitle
{
font-size
:
36px
;
padding
:
0
0
42px
30px
;
float
:
left
;
width
:
100%
;
text-align
:
left
;
}
.title
{
font-size
:
32px
;
}
.courceLeft
{
float
:
left
;
padding-left
:
30px
;
}
.needLeft
{
float
:
left
;
padding
:
0
0
80px
30px
;
}
.courceTime
{
float
:
left
;
}
.courceImg
{
width
:
340px
;
height
:
192px
;
margin-bottom
:
20px
;
}
.courceMore
{
font-size
:
30px
;
color
:
#999999
;
}
.need
{
width
:
100%
;
height
:
650px
;
margin-top
:
70px
;
}
</
style
>
src/components/business/yqy-teacher-info.vue
浏览文件 @
fe74b741
...
...
@@ -2,19 +2,19 @@
<div
class=
"hello"
>
<div
class=
"banner"
>
<img
class=
"bannerLogo"
src=
"../../images/Shape@2x.png"
/>
<div
class=
"fs28 center infoName"
>
蒋立新
</div>
<div
class=
"fs28 center infoName"
>
{{
resourceData
.
name
}}
</div>
<div
class=
"fs28 line center"
>
<span
class=
"gray"
>
阜外医院
</span>
<span
class=
"gray"
>
教授
</span>
<span
class=
"gray"
>
主任医师
</span>
>
<span
class=
"gray"
>
{{
resourceData
.
hospital
}}
</span>
<span
class=
"gray"
>
{{
resourceData
.
rank
}}
</span>
<span
class=
"gray"
>
{{
resourceData
.
type
}}
</span>
>
</div>
<div
class=
"studyCount"
>
<div
class=
"fs28"
>
<div
class=
"fs28"
>
8969
</div>
<div
class=
"fs28"
>
{{
resourceData
.
studyCount
}}
</div>
<div
class=
"fs24 gray"
>
学习人数
</div>
</div>
<div
class=
"fs28"
>
<div
class=
"fs28"
>
8969
</div>
<div
class=
"fs28"
>
{{
resourceData
.
follower
}}
</div>
<div
class=
"fs24 gray"
>
关注人数
</div>
</div>
</div>
...
...
@@ -27,6 +27,21 @@ export default {
name
:
'banner'
,
watch
:
{
},
props
:
{
resourceData
:
{
type
:
Object
,
default
:()
=>
{
return
{
name
:
'蒋立新'
,
hospital
:
'阜外医院'
,
rank
:
'教授'
,
type
:
'主任医师'
,
studyCount
:
8969
,
follower
:
8969
}
}
}
},
data
()
{
return
{
}
...
...
src/views/home/home.vue
浏览文件 @
fe74b741
...
...
@@ -19,6 +19,7 @@
<YqyHotTeacher/>
<YqyTeacherList/>
<YqyTeacherInfo/>
<!--
<YqyHomeHeader/>
-->
</section>
<section
class=
"home-bottom"
>
<!--
<yqyTest/>
-->
...
...
@@ -33,6 +34,7 @@ import YqyHotLabel from '../../components/business/yqy-hot-label';
import
YqyHotTeacher
from
'../../components/business/yqy-hot-teacher'
;
import
YqyTeacherList
from
'../../components/business/yqy-teacher-list'
;
import
YqyTeacherInfo
from
'../../components/business/yqy-teacher-info'
;
import
YqyHomeHeader
from
'../../components/business/yqy-home-header'
;
export
default
{
data
(){
return
{
...
...
@@ -45,7 +47,8 @@ export default {
YqyHotLabel
,
YqyHotTeacher
,
YqyTeacherList
,
YqyTeacherInfo
YqyTeacherInfo
,
YqyHomeHeader
},
mounted
(){
this
.
init
()
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录