Commit cd16077d authored by fangshupeng's avatar fangshupeng

初始化构建页面

parent 9b20f7e3
......@@ -8,7 +8,7 @@
const MY_RESOURCES = [
{
path: '/education/myResources/index',
name: 'SchoolBasedMyResources',
name: 'myResources',
component: resolve => require(['pages/education/schoolBasedResources/myResources/Index'], resolve)
}
]
......@@ -17,7 +17,7 @@ const MY_RESOURCES = [
const MY_RESOURCES_FAVORSHARE = [
{
path: '/education/myResources/favorShare',
name: 'SchoolBasedMyResources',
name: 'FavorShare',
component: resolve => require(['pages/education/schoolBasedResources/myResources/FavorShare'], resolve)
}
]
......@@ -26,7 +26,7 @@ const MY_RESOURCES_FAVORSHARE = [
const MY_RESOURCES_MYMANAGE = [
{
path: '/education/myResources/myManage',
name: 'SchoolBasedMyResources',
name: 'MyManage',
component: resolve => require(['pages/education/schoolBasedResources/myResources/MyManage'], resolve)
}
]
......@@ -35,7 +35,7 @@ const MY_RESOURCES_MYMANAGE = [
const SCHOOL_RESOURCES = [
{
path: '/education/schoolResources/index',
name: 'SchoolBasedResources',
name: 'schoolResources',
component: resolve => require(['pages/education/schoolBasedResources/schoolResources/Index'], resolve)
}
]
......@@ -44,7 +44,7 @@ const SCHOOL_RESOURCES = [
const FOLDER_MANAGE = [
{
path: '/education/folderManage/index',
name: 'SchoolBasedFolder',
name: 'folderManage',
component: resolve => require(['pages/education/schoolBasedResources/folderManage/Index'], resolve)
}
]
......
<template>
<div class="container">
<v-header :title="title">
<span slot="action" class="header-slot pull-right"></span>
</v-header>
<div class="content" ref="contentWrapper">
<div>
<tabs :menus="menus" :position="'bottom'"></tabs>
</div>
</div>
</div>
</template>
<script>
import BScroll from 'better-scroll'
export default {
name: 'FavorShare',
components: {
VHeader: () => import('@/common/header/VHeader'),
Tabs: () => import('@/common/tab/Tabs')
},
data () {
return {
title: 'Template',
menus: [
{
label: '我上次的',
path: '/education/myResources/index',
belongTo: '/education/myResources/index'
},
{
label: '收藏分享',
path: '/education/myResources/favorShare',
belongTo: '/education/myResources/favorShare'
}
]
}
},
methods: {
},
created () {
},
mounted () {
this.$nextTick(() => {
this.scroll = new BScroll(this.$refs.contentWrapper, {
click: true
})
})
}
}
</script>
<style lang="less" scoped>
</style>
<template>
<div class="container">
<v-header :title="title">
<span slot="action" class="header-slot pull-right"></span>
</v-header>
<div class="content" ref="contentWrapper">
<div>
<tabs :menus="menus" :position="'bottom'"></tabs>
<searchs></searchs>
<group title="个人文件夹(2)">
<!-- <group-title slot="title">I'm a title<span style="float:right;">right</span></group-title> -->
<cell title="教案文件夹">
<div slot="icon">11</div>
<div slot="after-title">
常规文件夹 共1000个文档
</div>
</cell>
<cell title="cell"></cell>
</group>
</div>
</div>
</div>
</template>
<script>
import BScroll from 'better-scroll'
import { Group, Cell } from 'vux'
export default {
name: 'Index',
components: {
VHeader: () => import('@/common/header/VHeader'),
Tabs: () => import('@/common/tab/Tabs'),
Searchs: () => import('./components/Searchs'),
Group,
Cell
},
data () {
return {
title: 'Template',
menus: [
{
label: '我上次的',
path: '/education/myResources/index',
belongTo: '/education/myResources/index'
},
{
label: '收藏分享',
path: '/education/myResources/favorShare',
belongTo: '/education/myResources/favorShare'
}
]
}
},
methods: {
},
created () {
},
mounted () {
this.$nextTick(() => {
this.scroll = new BScroll(this.$refs.contentWrapper, {
click: true
})
})
}
}
</script>
<style lang="less" scoped>
.content {
background: white;
}
</style>
<template>
<div class="search-box">
<search placeholder="请输入文档标题关键字搜索..." :auto-fixed="false"></search>
</div>
</template>
<script>
import { Search } from 'vux'
export default {
name: 'Searchs',
components: {
Search
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="less" scoped>
/deep/ .vux-search-box {
padding: 15px 20px;
.weui-search-bar {
border: none;
&:before {
border:none;
}
&:after {
border: none;
}
background: #F2F2F2;
border-radius: 20px;
.weui-search-bar__form {
&:before {
border-radius: 20px;
background: #F2F2F2;
}
&:after {
border: none;
border-radius: 20px;
background: #F2F2F2;
}
.weui-search-bar__box {
border-radius: 20px;
}
.weui-search-bar__label {
background: #F2F2F2;
border-radius: 20px;
}
}
}
}
</style>
export default []
\ No newline at end of file
// 我的资源
const MY_RESOURCES = [
{
path: '/education/myResources/index',
name: 'myResources',
component: resolve => require(['pages/education/schoolBasedResources/myResources/Index'], resolve)
}
]
// 我的资源-收藏分享
const MY_RESOURCES_FAVORSHARE = [
{
path: '/education/myResources/favorShare',
name: 'FavorShare',
component: resolve => require(['pages/education/schoolBasedResources/myResources/FavorShare'], resolve)
}
]
// 学校资源
const SCHOOL_RESOURCES = [
{
path: '/education/schoolResources/index',
name: 'schoolResources',
component: resolve => require(['pages/education/schoolBasedResources/schoolResources/Index'], resolve)
}
]
export default [
...MY_RESOURCES,
...MY_RESOURCES_FAVORSHARE,
...SCHOOL_RESOURCES
]
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