Commit 3b7b8d81 by xuebiao

完成错误页面,首页

parent aedc1ab9
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
:margin-v="[16,0,0]" :margin-v="[16,0,0]"
:skeW="500" :skeW="500"
:skeH="40" :skeH="40"
v-if="cardType===2"
> >
1、引言 如今我们所处的时代,是移动互联网时代,也可以说是视频时代。啊啊啊啊啊从快播到抖生。 1、引言 如今我们所处的时代,是移动互联网时代,也可以说是视频时代。啊啊啊啊啊从快播到抖生。
</yun-div> </yun-div>
...@@ -128,7 +129,7 @@ ...@@ -128,7 +129,7 @@
data(){ data(){
return{ return{
src:'https://beyondclouds.oss-cn-beijing.aliyuncs.com/blog/cover/018440fd-961d-4af9-80d9-cf05f25823ab.jpg', src:'https://beyondclouds.oss-cn-beijing.aliyuncs.com/blog/cover/018440fd-961d-4af9-80d9-cf05f25823ab.jpg',
cardType:1, //(props)1、项目 2、博客 3、资讯 cardType:3, //(props)1、项目 2、博客 3、资讯
cardName:'老虎老虎', cardName:'老虎老虎',
cardIntro:'老虎老虎', cardIntro:'老虎老虎',
cardId:'老虎老虎', cardId:'老虎老虎',
...@@ -148,7 +149,8 @@ ...@@ -148,7 +149,8 @@
isMy:{ isMy:{
type:Boolean, type:Boolean,
default:false, default:false,
} },
}, },
methods: { methods: {
onSwipeLeft(){ onSwipeLeft(){
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
+ 空卡片(1)✅ + 空卡片(1)✅
+ 错误页面 layouts/error.vue (2) + 错误页面 layouts/error.vue (2)
+ 首页 pages/index(2) + 首页 pages/index(2)
...@@ -8,31 +8,29 @@ ...@@ -8,31 +8,29 @@
<container-card <container-card
title="项目推荐" title="项目推荐"
> >
<project-card v-for="val in 1" key="val.projectId"></project-card> <project-card v-for="val in 1" key="val.projectId"></project-card>
</container-card> </container-card>
<container-card <container-card
title="最新资讯" title="最新资讯"
> >
<project-card v-for="val in 1" key="val.projectId"></project-card> <project-card v-for="val in 1" key="val.projectId"></project-card>
</container-card> </container-card>
<container-card <container-card
title="社区精英" title="社区精英"
> >
<project-card v-for="val in 1" key="val.projectId"></project-card> <user-card-x v-for="val in 1" key="val.userId"></user-card-x>
</container-card> </container-card>
<container-card <container-card
title="精选博文" title="精选博文"
> >
<project-card v-for="val in 1" key="val.projectId"></project-card> <project-card v-for="val in 1" key="val.projectId"></project-card>
</container-card> </container-card>
<container-card <container-card
title="推荐问答" title="推荐问答"
> >
<project-card v-for="val in 1" key="val.projectId"></project-card> <answer-card v-for="val in 1" key="val.answerId"></answer-card>
</container-card> </container-card>
</yun-div> </yun-div>
</yun-slider> </yun-slider>
</template> </template>
...@@ -42,10 +40,13 @@ import YunButton from '../components/common/button/src/main'; ...@@ -42,10 +40,13 @@ import YunButton from '../components/common/button/src/main';
import projectCard from '../components/moblie/projectCard'; import projectCard from '../components/moblie/projectCard';
import {getLineHeight} from "../action/utils/get-lineheight"; import {getLineHeight} from "../action/utils/get-lineheight";
import banner from '../components/moblie/banner'; import banner from '../components/moblie/banner';
import containerCard from '../components/moblie/containerCard' import containerCard from '../components/moblie/containerCard';
import answerCard from '../components/moblie/answerCard';
import userCardX from '../components/moblie/userCardX'
export default { export default {
components: { components: {
projectCard,YunButton,banner,containerCard projectCard,YunButton,banner,containerCard,answerCard,userCardX
}, },
mounted() { mounted() {
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment