|
@@ -2,6 +2,8 @@ import VueRouter from 'vue-router'
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
// 懒加载引入页面组件,es6语法
|
|
// 懒加载引入页面组件,es6语法
|
|
|
|
|
+// ********************************************************************************************************************
|
|
|
|
|
+// 应用主页
|
|
|
const Home = () => import('views/home/Index')
|
|
const Home = () => import('views/home/Index')
|
|
|
const TimelineIndex = () => import('views/home/Timeline')
|
|
const TimelineIndex = () => import('views/home/Timeline')
|
|
|
const StatusPage = () => import('views/home/Status')
|
|
const StatusPage = () => import('views/home/Status')
|
|
@@ -18,37 +20,51 @@ const ArticleIndex = () => import('views/home/Article')
|
|
|
const ArticlePage = () => import('views/home/ArticlePage')
|
|
const ArticlePage = () => import('views/home/ArticlePage')
|
|
|
const MessageStream = () => import('views/home/MessageStream1')
|
|
const MessageStream = () => import('views/home/MessageStream1')
|
|
|
const Search = () => import('views/home/Search')
|
|
const Search = () => import('views/home/Search')
|
|
|
|
|
+const DiscoverIndex = () => import('views/home/Discover')
|
|
|
|
|
+const BdMap = () => import('views/home/BdMap')
|
|
|
|
|
+const AMap = () => import('views/home/AMap')
|
|
|
|
|
+const Vip = () => import('views/vip/Vip')
|
|
|
|
|
|
|
|
// ********************************************************************************************************************
|
|
// ********************************************************************************************************************
|
|
|
-const My = () => import('views/user/My')
|
|
|
|
|
|
|
+// 用户前台主页
|
|
|
const UserHome = () => import('views/user/Home')
|
|
const UserHome = () => import('views/user/Home')
|
|
|
const UserVideo = () => import('views/user/Home')
|
|
const UserVideo = () => import('views/user/Home')
|
|
|
const UserImage = () => import('views/user/Home')
|
|
const UserImage = () => import('views/user/Home')
|
|
|
const UserAudio = () => import('views/user/Home')
|
|
const UserAudio = () => import('views/user/Home')
|
|
|
const UserArticle = () => import('views/user/Home')
|
|
const UserArticle = () => import('views/user/Home')
|
|
|
const UserRelation = () => import('views/user/UserRelation')
|
|
const UserRelation = () => import('views/user/UserRelation')
|
|
|
-const CollectionIndex = () => import('views/user/Collection')
|
|
|
|
|
-const HistoryIndex = () => import('views/user/History')
|
|
|
|
|
-const PostPublish = () => import('views/post/PostPublish')
|
|
|
|
|
-const PostPublishVideo = () => import('views/post/PostPublish')
|
|
|
|
|
|
|
+
|
|
|
|
|
+// ********************************************************************************************************************
|
|
|
|
|
+// 用户后台主页
|
|
|
|
|
+const My = () => import('views/my/My')
|
|
|
|
|
+const MyProfile = () => import('views/my/MyProfile')
|
|
|
|
|
+const MyVip = () => import('views/my/MyVip')
|
|
|
|
|
+// 收藏夹
|
|
|
|
|
+const CollectionIndex = () => import('views/my/Collection')
|
|
|
|
|
+// 浏览记录
|
|
|
|
|
+const HistoryIndex = () => import('views/my/History')
|
|
|
|
|
+
|
|
|
|
|
+// 发布稿件
|
|
|
|
|
+const PostPublishVideo = () => import('components/upload/PublishVideo')
|
|
|
|
|
+const PostPublishAudio = () => import('components/upload/PublishAudio')
|
|
|
|
|
+const PostPublishAlbum = () => import('components/upload/PublishImage')
|
|
|
|
|
+const PostPublishArticle = () => import('components/upload/PublishArticle')
|
|
|
|
|
+const PostPublishFile = () => import('components/upload/PublishFile')
|
|
|
|
|
+
|
|
|
|
|
+// 稿件列表
|
|
|
|
|
+const UserPostVideo = () => import('views/post/VideoPost')
|
|
|
const PostEditVideo = () => import('components/upload/EditVideo')
|
|
const PostEditVideo = () => import('components/upload/EditVideo')
|
|
|
-const PostPublishAudio = () => import('views/post/PostPublish')
|
|
|
|
|
|
|
+const UserPostAudio = () => import('views/post/AudioPost')
|
|
|
const PostEditAudio = () => import('components/upload/EditAudio')
|
|
const PostEditAudio = () => import('components/upload/EditAudio')
|
|
|
-const PostPublishAlbum = () => import('views/post/PostPublish')
|
|
|
|
|
|
|
+const UserPostImage = () => import('views/post/ImagePost')
|
|
|
const PostEditAlbum = () => import('components/upload/EditImage')
|
|
const PostEditAlbum = () => import('components/upload/EditImage')
|
|
|
-const PostPublishArticle = () => import('views/post/PostPublish')
|
|
|
|
|
|
|
+const UserPostArticle = () => import('views/post/ArticlePost')
|
|
|
const PostEditArticle = () => import('components/upload/EditArticle')
|
|
const PostEditArticle = () => import('components/upload/EditArticle')
|
|
|
|
|
+
|
|
|
|
|
+const PostPublish = () => import('views/post/PostPublish')
|
|
|
const PostList = () => import('views/post/PostList')
|
|
const PostList = () => import('views/post/PostList')
|
|
|
-const UserPostVideo = () => import('views/post/PostList')
|
|
|
|
|
-const UserPostAudio = () => import('views/post/PostList')
|
|
|
|
|
-const UserPostImage = () => import('views/post/PostList')
|
|
|
|
|
-const UserPostArticle = () => import('views/post/PostList')
|
|
|
|
|
const PostAnalysis = () => import('views/post/PostAnalysis')
|
|
const PostAnalysis = () => import('views/post/PostAnalysis')
|
|
|
const MessageIndex = () => import('views/message/Message')
|
|
const MessageIndex = () => import('views/message/Message')
|
|
|
-const DiscoverIndex = () => import('views/home/Discover')
|
|
|
|
|
-const BdMap = () => import('views/home/BdMap')
|
|
|
|
|
-const AMap = () => import('views/home/AMap')
|
|
|
|
|
-const Vip = () => import('views/vip/Vip')
|
|
|
|
|
|
|
|
|
|
const Admin = () => import('views/admin/AdminUser')
|
|
const Admin = () => import('views/admin/AdminUser')
|
|
|
const AdminUser = () => import('views/admin/AdminUser')
|
|
const AdminUser = () => import('views/admin/AdminUser')
|
|
@@ -102,6 +118,116 @@ const routes = [
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my',
|
|
|
|
|
+ name: 'My',
|
|
|
|
|
+ component: My
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/account',
|
|
|
|
|
+ name: 'MyAccount',
|
|
|
|
|
+ component: My,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/account/profile',
|
|
|
|
|
+ name: '个人资料',
|
|
|
|
|
+ component: MyProfile
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/account/vip',
|
|
|
|
|
+ name: '小会员',
|
|
|
|
|
+ component: MyVip
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish',
|
|
|
|
|
+ name: 'MyPostPublish',
|
|
|
|
|
+ component: My,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish/video',
|
|
|
|
|
+ name: '发布视频',
|
|
|
|
|
+ component: PostPublishVideo
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish/audio',
|
|
|
|
|
+ name: '发布音频',
|
|
|
|
|
+ component: PostPublishAudio
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish/image',
|
|
|
|
|
+ name: '发布相册',
|
|
|
|
|
+ component: PostPublishAlbum
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish/article',
|
|
|
|
|
+ name: '发布文章',
|
|
|
|
|
+ component: PostPublishArticle
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/publish/file',
|
|
|
|
|
+ name: '发布文件',
|
|
|
|
|
+ component: PostPublishFile
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/list',
|
|
|
|
|
+ name: 'MyPostList',
|
|
|
|
|
+ component: My,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/list/video',
|
|
|
|
|
+ name: '视频稿件',
|
|
|
|
|
+ component: UserPostVideo
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/list/audio',
|
|
|
|
|
+ name: '音频稿件',
|
|
|
|
|
+ component: UserPostAudio
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/list/image',
|
|
|
|
|
+ name: '相册稿件',
|
|
|
|
|
+ component: UserPostImage
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/post/list/article',
|
|
|
|
|
+ name: '文章稿件',
|
|
|
|
|
+ component: UserPostArticle
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/favlist',
|
|
|
|
|
+ name: 'MyFavlist',
|
|
|
|
|
+ component: My,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/favlist/video',
|
|
|
|
|
+ name: '视频收藏',
|
|
|
|
|
+ component: CollectionIndex
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/favlist/image',
|
|
|
|
|
+ name: '相册收藏',
|
|
|
|
|
+ component: CollectionIndex
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/visit',
|
|
|
|
|
+ name: 'MyVisit',
|
|
|
|
|
+ component: My,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/my/visit',
|
|
|
|
|
+ name: '浏览记录',
|
|
|
|
|
+ component: HistoryIndex
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
path: '/',
|
|
path: '/',
|
|
|
name: 'index',
|
|
name: 'index',
|
|
@@ -192,11 +318,6 @@ const routes = [
|
|
|
name: 'search',
|
|
name: 'search',
|
|
|
component: Search
|
|
component: Search
|
|
|
},
|
|
},
|
|
|
- {
|
|
|
|
|
- path: '/my',
|
|
|
|
|
- name: 'My',
|
|
|
|
|
- component: My
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
path: '/user/:id',
|
|
path: '/user/:id',
|
|
|
name: 'UserHome',
|
|
name: 'UserHome',
|