Commit 03f1c885 by yanju

Merge branch 'master' of coding.yundingshuyuan.com:yunshen/beyond-clouds-frontM

parents c1935971 e8fe0fc3
<template>
<yun-div
:height-v="76"
:width-v="750"
bg-color-v="#fff"
:border-v="[1,'solid','#EFEFEF','bottom']"
:extend-style="{overflow: 'visible',position:'relative'}"
:extend-style="{overflow: 'visible'}"
>
<yun-div
:width-v="610"
:width-v="showRight ? 610 : 750"
:height-v="96"
:ske-h="76"
:ske-w="610"
:margin-v="[0,140,0,0]"
:show-ske="false"
:extend-style="{overflowX: 'auto'}"
>
<yun-div
:show-ske="false"
:flex-v="['row','flex-start','flex-start']"
:font-style="[28,36,400,'#999','left']"
:extend-style="{overflowX: 'auto'}"
:extend-style="{overflowX: 'visible'}"
>
<yun-div
:no-flex-shrink="true"
......@@ -37,10 +40,12 @@
</yun-div>
</yun-div>
</yun-div>
</yun-div>
<yun-div
v-if="showRight"
:height-v="76"
:width-v="140"
:ske-h="76"
:show-ske="false"
:font-style="[28,76,400,'#666','center']"
bg-color-v="#fff"
:extend-style="{position: 'absolute',right:0,top:0,overflow: 'visible'}"
......@@ -94,6 +99,10 @@ export default {
sort: {
type: Boolean,
default: true
},
showRight: {
type: Boolean,
default: true
}
},
data() {
......
<template>
<yun-div>
<answer-card></answer-card>
</yun-div>
</template>
<script>
import answerCard from '../../../components/moblie/answerCard'
export default {
name: "answer",
components:{
answerCard
}
}
</script>
<style scoped>
</style>
<template>
<yun-div>
<project-card></project-card>
</yun-div>
</template>
<script>
import projectCard from '../../../components/moblie/projectCard'
export default {
name: "blog",
components:{
projectCard
}
}
</script>
<style scoped>
</style>
<template>
<yun-div>
<project-card></project-card>
</yun-div>
</template>
<script>
import projectCard from '../../../components/moblie/projectCard'
export default {
name: "project",
components:{
projectCard
}
}
</script>
<style scoped>
</style>
<template>
<yun-div>
<answer-card></answer-card>
</yun-div>
</template>
<script>
import answerCard from '../../../components/moblie/answerCard'
export default {
name: "question",
components: {
answerCard
}
}
</script>
<style scoped>
</style>
<template>
<yun-div>
<topic-card></topic-card>
</yun-div>
</template>
<script>
import topicCard from '../../../components/moblie/topicCard'
export default {
name: "topic",
components:{
topicCard
}
}
</script>
<style scoped>
</style>
......@@ -7,7 +7,7 @@
></user-card-big>
<yun-div
:margin-v="[15,0,0,0]">
<data-card title="我的消息"></data-card>
<data-card title="我的消息" right="3"></data-card>
</yun-div>
<yun-div
bg-color-v="white"
......
......@@ -51,3 +51,4 @@ export default {
<style lang="scss" scoped>
</style>
<template>
<yun-div>
<yun-div :margin-v="[0,0,20]">
<user-card-big></user-card-big>
</yun-div>
<Nav :show-right="false" :nav-list="navList" :path="path"></Nav>
<project-card></project-card>
<project-card></project-card>
<project-card></project-card>
<project-card></project-card>
</yun-div>
</template>
<script>
import UserCardBig from "../../../components/moblie/userCardBig";
import commonMixin from "../../../components/moblie/commonMixin";
import Nav from "../../../components/moblie/nav";
import ProjectCard from "../../../components/moblie/projectCard";
export default {
mixins: [commonMixin],
components: {ProjectCard, Nav, UserCardBig},
data() {
return {
// 获取用户id
id: 12,
number: 32
}
},
computed: {
navList: function () {
return [
{
label: `项目·${this.number}`,
id: 'project'
},
{
label: `博客·${this.number}`,
id: 'blog'
},
{
label: `提问·${this.number}`,
id: 'answer'
},
{
label: `回答·${this.number}`,
id: 'myAnswer'
},
{
label: `动态·${this.number}`,
id: 'dynamic'
},
{
label: `话题·${this.number}`,
id: 'topic'
},
]
},
path: function () {
return `/u/${this.id}`
}
}
}
</script>
<style>
</style>
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