Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-discuss
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-discuss
提交
0d46a629
提交
0d46a629
编写于
10月 26, 2018
作者:
guojing.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yqy-home-banner
上级
2f552461
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
84 行增加
和
2 行删除
+84
-2
yqy-home-banner.vue
src/components/business/yqy-home-banner.vue
+79
-0
home.vue
src/views/home/home.vue
+5
-2
未找到文件。
src/components/business/yqy-home-banner.vue
0 → 100644
浏览文件 @
0d46a629
<
template
>
<div
class=
"hello"
>
<div
class=
"banner"
>
<div
class=
"bannerItem"
:key=
"index"
v-for=
"(item,index) in bannerData"
>
<!--
<img
class=
"bannerImg"
:src=
"item.img"
/>
-->
<img
class=
"bannerImg"
src=
"../../images/Shape@2x.png"
/>
<span
class=
"bannerText"
>
{{
item
.
name
}}
</span>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'YqyHomeBanner'
,
watch
:
{
},
data
()
{
return
{
bannerData
:
[
{
img
:
'../../images/Shape@2x.png'
,
name
:
'微专业'
},
{
img
:
'../../images/Shape@2x.png'
,
name
:
'名师讲堂'
},
{
img
:
'../../images/Shape@2x.png'
,
name
:
'患者教育'
},
{
img
:
'../../images/Shape@2x.png'
,
name
:
'专项合作'
},
{
img
:
'../../images/Shape@2x.png'
,
name
:
'活动掠影'
}
]
}
},
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
:
px2rem
(
375px
);
height
:
px2rem
(
100%
);
background-color
:
#F8F8F8
;
}
.banner
{
width
:
px2rem
(
345px
);
height
:
px2rem
(
74px
);
background-color
:
#fff
;
position
:
absolute
;
top
:
px2rem
(
165px
);
left
:
px2rem
(
17px
);
padding
:
px2rem
(
15px
)
px2rem
(
10px
);
box-shadow
:
0
px2rem
(
1px
)
px2rem
(
5px
)
RGBA
(
42
,
94
,
161
,
0
.15
);
}
.bannerItem
{
width
:
px2rem
(
50px
);
display
:
inline
;
position
:
relative
;
margin-right
:
px2rem
(
18px
);
}
.bannerImg
{
min-width
:
px2rem
(
22px
);
max-height
:
px2rem
(
20px
);
margin
:
0
10px
;
}
.bannerText
{
position
:
absolute
;
top
:
px2rem
(
30px
);
width
:
px2rem
(
50px
);
left
:
0
;
font-size
:
px2rem
(
12px
);
text-align
:
center
;
}
</
style
>
src/views/home/home.vue
浏览文件 @
0d46a629
...
@@ -17,12 +17,13 @@
...
@@ -17,12 +17,13 @@
<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/>
<YqyHomeBanner/>
<YqyHomeAdv/>
<YqyHomeAdv/>
<YqyCategoryThree1/>
<YqyCategoryThree1/>
<YqyFiveMinutes/>
<YqyFiveMinutes/>
<YqyHotTeacher/>
<YqyHotTeacher/>
<YqyTeacherList/>
<YqyTeacherList/>
<
YqyTeacherInfo/
>
<
!--
<YqyTeacherInfo/>
--
>
</section>
</section>
<section
class=
"home-bottom"
>
<section
class=
"home-bottom"
>
...
@@ -42,6 +43,7 @@ import YqyHomeHeader from '../../components/business/yqy-home-header';
...
@@ -42,6 +43,7 @@ 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'
;
import
YqyCategoryThree1
from
'../../components/business/yqy-category-three-1'
;
import
YqyHomeBanner
from
'../../components/business/yqy-home-banner'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
...
@@ -58,7 +60,8 @@ export default {
...
@@ -58,7 +60,8 @@ export default {
YqyHomeHeader
,
YqyHomeHeader
,
YqyHomeAdv
,
YqyHomeAdv
,
YqyFiveMinutes
,
YqyFiveMinutes
,
YqyCategoryThree1
YqyCategoryThree1
,
YqyHomeBanner
},
},
mounted
(){
mounted
(){
this
.
init
()
this
.
init
()
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录