提交 fabe72b6 authored 作者: lihuihui's avatar lihuihui

pc h5合并

上级 1f3af45e
......@@ -16,9 +16,9 @@ export default {
{
name: '项目介绍',
children: [
{ name: '项目背景', path: '/project/bg' },
{ name: '项目特色', path: '/project/charac' },
{ name: '证书授权', path: '/project/certificate' }
{ name: '项目背景', path: '/project-intro/bg' },
{ name: '项目特色', path: '/project-intro/charac' },
{ name: '证书授权', path: '/project-intro/certificate' }
]
},
{
......
<template>
<div :class="isMobile ? 'is-h5' : 'is-pc'">
<div class="teacher-content-box">
<app-frame :data="frameParams">
<div class="content-box">
......@@ -6,6 +7,7 @@
</div>
</app-frame>
</div>
</div>
</template>
<script>
import appFrame from '@/components/appFrame'
......@@ -32,11 +34,28 @@ export default {
}
},
mounted() {
},
computed: {
isMobile() {
return this.$store.state.isMobile
}
}
}
</script>
<style lang="scss" scoped>
.teacher-content-box {
.is-h5{
.teacher-content-box{
.content-box{
padding: .3rem .37rem .3rem;
img{
width: 100%;
display: block;
}
}
}
}
.is-pc{
.teacher-content-box {
width: 1200px;
margin: 0 auto;
.content-box {
......@@ -81,5 +100,6 @@ export default {
}
}
}
}
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论