Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
e1e862e9
Commit
e1e862e9
authored
Jan 19, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
home page
parent
6ec9bbfd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
2 deletions
+114
-2
components/pc/pageHeader.vue
+1
-1
components/pc/projectCard.vue
+1
-1
pages/home.vue
+112
-0
No files found.
components/pc/pageHeader.vue
View file @
e1e862e9
...
...
@@ -163,7 +163,7 @@
}
}
>
.bc-layout-
container-header-pad
{
.
container-header-pad
{
height
:
66
*$
length
;
background-color
:
transparent
;
}
...
...
components/pc/projectCard.vue
View file @
e1e862e9
...
...
@@ -86,7 +86,7 @@
.project-card{
@extend
%cursorPointer;
box-sizing
:
border-box
;
padding
:
0
20
*$
length
24
*$
length
;
padding
:
21
*$
length
20
*$
length
24
*$
length
;
width
:
938
*$
length
;
border-bottom
:
1px
dashed
#EFEFEF
;
@extend
%flex-row-spb;
...
...
pages/home.vue
0 → 100644
View file @
e1e862e9
<
template
>
<div
class=
"home-container"
>
<div
class=
"home-container__l"
>
<banner
:imgArr=
"imgArr"
style=
"margin-top: 40px"
></banner>
<card-container
style=
"margin-top: 40px"
title=
"项目推荐"
label=
"换一换"
more=
"加载更多"
>
<project-card></project-card>
<project-card></project-card>
<project-card></project-card>
</card-container>
<card-container
style=
"margin-top: 16px"
title=
"精选博文"
label=
"换一换"
more=
"加载更多"
>
<project-card></project-card>
<project-card></project-card>
<project-card></project-card>
</card-container>
</div>
<div
class=
"home-container__r"
>
<card-container
style=
"margin-top: 40px"
title=
"最新资讯"
label=
"换一换"
more=
"更多"
>
</card-container>
<card-container
style=
"margin-top: 16px"
title=
"话题热搜榜"
label=
"实时更新"
more=
"更多"
>
</card-container>
<card-container
style=
"margin-top: 16px"
title=
"社区精英"
label=
"换一换"
more=
"更多"
>
</card-container>
<card-container
style=
"margin-top: 16px"
title=
"推荐问答"
label=
"换一换"
more=
"更多"
>
</card-container>
</div>
</div>
</
template
>
<
script
>
import
Banner
from
'../components/pc/banner'
;
import
CardContainer
from
'../components/pc/cardContainer'
;
import
ProjectCard
from
'../components/pc/projectCard'
;
export
default
{
data
(){
return
{
imgArr
:[
'http://i1.sinaimg.cn/ent/d/2008-06-04/U105P28T3D2048907F326DT20080604225106.jpg'
,
'https://yundingweb.oss-cn-beijing.aliyuncs.com/yunding/20190828/22e2d91201a2478683044f116d1d8186-file'
,
'https://yundingweb.oss-cn-beijing.aliyuncs.com/yunding/20190828/161fecb3d8b441c5b340319c62508513-file'
,
'https://s2.ax1x.com/2020/01/13/lHpvY4.png'
,
'http://i1.sinaimg.cn/ent/d/2008-06-04/U105P28T3D2048907F326DT20080604225106.jpg'
,
'https://yundingweb.oss-cn-beijing.aliyuncs.com/yunding/20190828/22e2d91201a2478683044f116d1d8186-file'
,
'https://yundingweb.oss-cn-beijing.aliyuncs.com/yunding/20190828/161fecb3d8b441c5b340319c62508513-file'
,
'https://s2.ax1x.com/2020/01/13/lHpvY4.png'
,
],
}
},
components
:{
CardContainer
,
Banner
,
ProjectCard
},
methods
:{
showAlert
(){
// $alert 使用方法
this
.
$alert
(
'确认清空消息列表?'
,
''
,
{
confirmButtonText
:
'确定'
,
// callback: action => {
// this.$message({
// type: 'info',
// message: `action: ${ action }`,
// confirmButtonPosition: 'left',
// });
// }
});
}
},
mounted
(){
// this.$popupbox();
// message 使用方法
// this.$message({
// message:'hellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohellohello',
// type:'info'
// })
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.home-container
{
width
:
$
pageWidth
;
margin
:
0
auto
;
padding-bottom
:
32
*$
length
;
@extend
%flex-row-spb;
align-items
:
flex-start
;
.home-container__l{
overflow
:
hidden
;
width
:
938
*$
length
;
}
.home-container__r
{
overflow
:
hidden
;
width
:
302
*$
length
;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment