938 lines
23 KiB
TypeScript
938 lines
23 KiB
TypeScript
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
|
||
|
||
//启动页(入口同步,保证首屏立刻有壳)
|
||
import Splash from '@/views/Splash.vue';
|
||
|
||
//首页相关路由
|
||
const homeCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/activityWeb', //外网活动内嵌页(inner=1)
|
||
name: 'activityWeb',
|
||
component: () => import('@/views/activityWeb/index.vue'),
|
||
meta: {
|
||
pageKey: 'activity_web',
|
||
pageName: '活动内嵌页',
|
||
},
|
||
},
|
||
{
|
||
path: '/presale', //预售页面
|
||
name: 'presale',
|
||
component: () => import('@/views/lldpresale/index.vue'),
|
||
meta: {
|
||
pageKey: 'presale',
|
||
pageName: '预售页面',
|
||
},
|
||
},
|
||
{
|
||
path: '/searchPage', //搜索页
|
||
name: 'SearchPage',
|
||
component: () => import('@/views/lldhome/searchPage/index.vue'),
|
||
meta: {
|
||
pageKey: 'search',
|
||
pageName: '搜索页',
|
||
},
|
||
},
|
||
{
|
||
path: '/searchResults', //搜索结果页
|
||
name: 'SearchResults',
|
||
component: () => import('@/views/lldhome/searchResults/index.vue'),
|
||
meta: {
|
||
pageKey: 'search_results',
|
||
pageName: '搜索结果页',
|
||
},
|
||
},
|
||
{
|
||
path: '/moreCate', // 片库
|
||
name: 'moreCate',
|
||
component: () => import('@/views/lldhome/moreCate/index.vue'),
|
||
meta: {
|
||
pageKey: 'more_cate',
|
||
pageName: '片库',
|
||
},
|
||
},
|
||
{
|
||
path: '/movieDetails', //影视详情
|
||
name: 'MovieDetails',
|
||
component: () => import('@/views/lldhome/movie/details.vue'),
|
||
meta: {
|
||
pageKey: 'video_play',
|
||
pageName: '视频播放页',
|
||
},
|
||
},
|
||
{
|
||
path: '/tagShortVideo', //专题短视频列表
|
||
name: 'tagShortVideo',
|
||
component: () => import('@/views/lldhome/tagShortVideo/index.vue'),
|
||
meta: {
|
||
pageKey: 'topic_detail',
|
||
pageName: '专题详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/shortVideoDetails', //短视频详情
|
||
name: 'shortVideoDetails',
|
||
component: () => import('@/views/lldhome/shortVideoDetails/index.vue'),
|
||
meta: {
|
||
pageKey: 'shortvideo_play',
|
||
pageName: '短视频播放页',
|
||
},
|
||
},
|
||
{
|
||
path: '/shortDramaPlay', //短剧二次播放页
|
||
name: 'shortDramaPlay',
|
||
component: () => import('@/views/shortVideo/short-drama/DramaPlayPage.vue'),
|
||
meta: {
|
||
pageKey: 'short_drama_play',
|
||
pageName: '短剧播放页',
|
||
},
|
||
},
|
||
{
|
||
path: '/shortDramaTag', //短剧标签详情页
|
||
name: 'shortDramaTag',
|
||
component: () => import('@/views/shortVideo/short-drama/DramaTagPage.vue'),
|
||
meta: {
|
||
pageKey: 'short_drama_tag',
|
||
pageName: '短剧标签详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/jointGamingActivitie', //游戏活动
|
||
name: 'jointGamingActivitie',
|
||
component: () => import('@/views/jointGamingActivitie/index.vue'),
|
||
meta: {
|
||
pageKey: 'joint_gaming_activitie',
|
||
pageName: '游戏活动',
|
||
},
|
||
},
|
||
{
|
||
path: '/lotteryPage', //抽奖页
|
||
name: 'lotteryPage',
|
||
component: () => import('@/views/lldhome/lotteryPage/index.vue'),
|
||
meta: {
|
||
pageKey: 'lottery_page',
|
||
pageName: '抽奖页',
|
||
},
|
||
},
|
||
{
|
||
path: '/tagVideoList', // 标签视频列表页
|
||
name: 'tagVideoList',
|
||
component: () => import('@/views/lldhome/tagVideoList/index.vue'),
|
||
meta: {
|
||
pageKey: 'tag_video_list',
|
||
pageName: '标签视频列表页',
|
||
},
|
||
},
|
||
{
|
||
path: '/moreActress', // 更多女演员
|
||
name: 'moreActress',
|
||
component: () => import('@/views/lldhome/moreActress/index.vue'),
|
||
meta: {
|
||
pageKey: 'more_actress',
|
||
pageName: '更多女演员',
|
||
},
|
||
},
|
||
];
|
||
|
||
//社区相关路由
|
||
const communityCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/publishGraphics', //发布帖子--图文
|
||
name: 'publishGraphics',
|
||
component: () => import('@/views/community/publish/publishGraphics/index.vue'),
|
||
meta: {
|
||
pageKey: 'publish_graphics',
|
||
pageName: '发布帖子--图文',
|
||
},
|
||
},
|
||
{
|
||
path: '/publishVideo', //发布帖子--视频
|
||
name: 'publishVideo',
|
||
component: () => import('@/views/community/publish/publishVideo/index.vue'),
|
||
meta: {
|
||
pageKey: 'publish_video',
|
||
pageName: '发布帖子--视频',
|
||
},
|
||
},
|
||
{
|
||
path: '/pubilshImg', //发布帖子--视频
|
||
name: 'pubilshImg',
|
||
component: () => import('@/views/community/publish/pubilshImg/index.vue'),
|
||
meta: {
|
||
pageKey: 'pubilsh_img',
|
||
pageName: '发布帖子--视频',
|
||
},
|
||
},
|
||
{
|
||
path: '/topicMore', //选择帖子板块
|
||
name: 'topicMore',
|
||
component: () => import('@/views/community/publish/topicMore/index.vue'),
|
||
meta: {
|
||
pageKey: 'topic_more',
|
||
pageName: '选择帖子板块',
|
||
},
|
||
},
|
||
{
|
||
path: '/communityTagDeatil', //标签帖子详情
|
||
name: 'communityTagDeatil',
|
||
component: () => import('@/views/community/communityTagDeatil/index.vue'),
|
||
meta: {
|
||
pageKey: 'community_tag_deatil',
|
||
pageName: '标签帖子详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/postDetail', //帖子详情
|
||
name: 'postDetail',
|
||
component: () => import('@/views/community/postDetail/index.vue'),
|
||
meta: {
|
||
pageKey: 'post_detail',
|
||
pageName: '帖子详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/userInfo', //用户主页
|
||
name: 'userInfo',
|
||
component: () => import('@/views/community/userInfo/index.vue'),
|
||
meta: {
|
||
pageKey: 'user_info',
|
||
pageName: '用户主页',
|
||
},
|
||
},
|
||
{
|
||
path: '/picturePreview', //图片详情
|
||
name: 'picturePreview',
|
||
component: () => import('@/views/community/picturePreview/index.vue'),
|
||
meta: {
|
||
pageKey: 'picture_preview',
|
||
pageName: '图片详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/videoInfo', //图片详情
|
||
name: 'videoInfo',
|
||
component: () => import('@/views/community/videoInfo/index.vue'),
|
||
meta: {
|
||
pageKey: 'video_info',
|
||
pageName: '图片详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/coverPage', //套图站
|
||
name: 'coverPage',
|
||
component: () => import('@/views/community/coverPage/index.vue'),
|
||
meta: {
|
||
pageKey: 'cover_page',
|
||
pageName: '套图站',
|
||
},
|
||
},
|
||
{
|
||
path: '/coverDetail', //套图详情页
|
||
name: 'coverDetail',
|
||
component: () => import('@/views/community/coverPage/detail.vue'),
|
||
meta: {
|
||
pageKey: 'cover_detail',
|
||
pageName: '套图详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/coverPreview', //套图预览
|
||
name: 'coverPreview',
|
||
component: () => import('@/views/community/coverPage/preview.vue'),
|
||
meta: {
|
||
pageKey: 'cover_preview',
|
||
pageName: '套图预览',
|
||
},
|
||
},
|
||
{
|
||
path: '/rankingList', //热门排行
|
||
name: 'rankingList',
|
||
component: () => import('@/views/community/rankingList/index.vue'),
|
||
meta: {
|
||
pageKey: 'ranking_list',
|
||
pageName: '热门排行',
|
||
},
|
||
},
|
||
{
|
||
path: '/gameDetails',
|
||
name: 'gameDetails',
|
||
component: () => import('@/views/community/gameDetails/index.vue'),
|
||
meta: {
|
||
pageKey: 'game_details',
|
||
pageName: '游戏详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/gameTagDetails', //游戏标签详情列表
|
||
name: 'gameTagDetails',
|
||
component: () => import('@/views/community/gameTagDetails/index.vue'),
|
||
meta: {
|
||
pageKey: 'game_tag_details',
|
||
pageName: '游戏标签详情列表',
|
||
},
|
||
},
|
||
{
|
||
path: '/groupChat', //群聊
|
||
name: 'groupChat',
|
||
component: () => import('@/views/community/groupChat/index.vue'),
|
||
meta: {
|
||
pageKey: 'group_chat',
|
||
pageName: '群聊',
|
||
},
|
||
},
|
||
];
|
||
//acg相关路由
|
||
const acgCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/AcgTopicList',
|
||
name: 'AcgTopicList',
|
||
component: () => import('@/views/acgModule/topicList/index.vue'),
|
||
meta: {
|
||
pageKey: 'topic_detail',
|
||
pageName: '专题详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgTextDetail',
|
||
name: 'AcgTextDetail',
|
||
component: () => import('@/views/acgModule/detail-text/index.vue'),
|
||
meta: {
|
||
pageKey: 'novel_detail',
|
||
pageName: '小说详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgTextDetailWatch0',
|
||
name: 'AcgTextDetailWatch0',
|
||
component: () => import('@/views/acgModule/detail-text/watch0.vue'),
|
||
meta: {
|
||
pageKey: 'acg_text_detail_watch_0',
|
||
pageName: 'ACG文本详情观看0',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgTextDetailWatch1',
|
||
name: 'AcgTextDetailWatch1',
|
||
component: () => import('@/views/acgModule/detail-text/watch1.vue'),
|
||
meta: {
|
||
pageKey: 'acg_text_detail_watch_1',
|
||
pageName: 'ACG文本详情观看1',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgImageDetail',
|
||
name: 'AcgImageDetail',
|
||
component: () => import('@/views/acgModule/detail-image/index.vue'),
|
||
meta: {
|
||
pageKey: 'comic_detail',
|
||
pageName: '漫画详情页',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgImageDetailWatch',
|
||
name: 'AcgImageDetailWatch',
|
||
component: () => import('@/views/acgModule/detail-image/watch.vue'),
|
||
meta: {
|
||
pageKey: 'acg_image_detail_watch',
|
||
pageName: 'ACG图片详情观看',
|
||
},
|
||
},
|
||
{
|
||
path: '/AcgVideoDetail',
|
||
name: 'AcgVideoDetail',
|
||
component: () => import('@/views/acgModule/detail-video/index.vue'),
|
||
meta: {
|
||
pageKey: 'video_play',
|
||
pageName: '视频播放页',
|
||
},
|
||
},
|
||
];
|
||
|
||
//免费福利相关路由
|
||
const freeBenefitsCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/freeBenefits', //福利中心
|
||
name: 'freeBenefits',
|
||
component: () => import('@/views/lldfreeBenefits/index.vue'),
|
||
meta: {
|
||
pageKey: 'app_list',
|
||
pageName: '应用推荐',
|
||
},
|
||
},
|
||
{
|
||
path: '/task_sign_day', //每日签到
|
||
name: 'task_sign_day',
|
||
component: () => import('@/views/lldfreeBenefits/task_sign_day.vue'),
|
||
meta: {
|
||
pageKey: 'task_sign_day',
|
||
pageName: '每日签到',
|
||
},
|
||
},
|
||
{
|
||
path: '/freeRecord', //积分兑换记录
|
||
name: 'freeRecord',
|
||
component: () => import('@/views/lldfreeBenefits/record.vue'),
|
||
meta: {
|
||
pageKey: 'free_record',
|
||
pageName: '积分兑换记录',
|
||
},
|
||
},
|
||
{
|
||
path: '/promotionData', //推广数据
|
||
name: 'promotionData',
|
||
component: () => import('@/views/lldfreeBenefits/promotionData/index.vue'),
|
||
meta: {
|
||
pageKey: 'promotion_data',
|
||
pageName: '推广数据',
|
||
},
|
||
},
|
||
{
|
||
path: '/promotionDetails', //推广明细
|
||
name: 'promotionDetails',
|
||
component: () => import('@/views/lldfreeBenefits/promotionDetails/index.vue'),
|
||
meta: {
|
||
pageKey: 'promotion_details',
|
||
pageName: '推广明细',
|
||
},
|
||
},
|
||
{
|
||
path: '/vidDiscount', //折扣专区
|
||
name: 'vidDiscount',
|
||
component: () => import('@/views/lldfreeBenefits/vidDiscount/index.vue'),
|
||
meta: {
|
||
pageKey: 'vid_discount',
|
||
pageName: '折扣专区',
|
||
},
|
||
},
|
||
];
|
||
|
||
//我的相关路由
|
||
const mineCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/purchasedVideo', //已购视频
|
||
name: 'PurchasedVideo',
|
||
component: () => import('@/views/lldmine/purchasedVideo/index.vue'),
|
||
meta: {
|
||
pageKey: 'purchased_video',
|
||
pageName: '已购视频',
|
||
},
|
||
},
|
||
{
|
||
path: '/accountCertificate', //账号凭证
|
||
name: 'AccountCertificate',
|
||
component: () => import('@/views/lldmine/accountCertificate/index.vue'),
|
||
meta: {
|
||
pageKey: 'account_certificate',
|
||
pageName: '账号凭证',
|
||
},
|
||
},
|
||
{
|
||
path: '/wallet', //金币钱包
|
||
name: 'wallet',
|
||
component: () => import('@/views/lldmine/wallet/index.vue'),
|
||
meta: {
|
||
pageKey: 'wallet',
|
||
pageName: '金币钱包',
|
||
},
|
||
},
|
||
{
|
||
path: '/member', //会员中心
|
||
name: 'member',
|
||
component: () => import('@/views/lldmine/member/index.vue'),
|
||
meta: {
|
||
pageKey: 'member',
|
||
pageName: '会员中心',
|
||
},
|
||
},
|
||
{
|
||
path: '/withdraw', //提现
|
||
name: 'withdraw',
|
||
component: () => import('@/views/lldmine/withdraw/index.vue'),
|
||
meta: {
|
||
pageKey: 'withdraw',
|
||
pageName: '提现',
|
||
},
|
||
},
|
||
{
|
||
path: '/bindBankCard', // 绑定银行卡页面
|
||
name: 'bindBankCard',
|
||
component: () => import('@/views/lldmine/withdraw/bindBankCard/index.vue'),
|
||
meta: {
|
||
pageKey: 'bind_bank_card',
|
||
pageName: '绑定银行卡页面',
|
||
},
|
||
},
|
||
{
|
||
path: '/withdrawRecord', // 提现记录
|
||
name: 'withdrawRecord',
|
||
component: () => import('@/views/lldmine/withdrawRecord/index.vue'),
|
||
meta: {
|
||
pageKey: 'withdraw_record',
|
||
pageName: '提现记录',
|
||
},
|
||
},
|
||
{
|
||
path: '/rechargeRecord', // 充值记录
|
||
name: 'rechargeRecord',
|
||
component: () => import('@/views/lldmine/rechargeRecord/index.vue'),
|
||
meta: {
|
||
pageKey: 'recharge_record',
|
||
pageName: '充值记录',
|
||
},
|
||
},
|
||
{
|
||
path: '/qualityApplication', //精品应用
|
||
name: 'qualityApplication',
|
||
component: () => import('@/views/lldmine/qualityApplication/index.vue'),
|
||
meta: {
|
||
pageKey: 'quality_application',
|
||
pageName: '精品应用',
|
||
},
|
||
},
|
||
{
|
||
path: '/transactionRecord', //交易记录
|
||
name: 'transactionRecord',
|
||
component: () => import('@/views/lldmine/transactionRecord/index.vue'),
|
||
meta: {
|
||
pageKey: 'transaction_record',
|
||
pageName: '交易记录',
|
||
},
|
||
},
|
||
{
|
||
path: '/collectVideo', //我的收藏
|
||
name: 'collectVideo',
|
||
component: () => import('@/views/lldmine/collectVideo/index.vue'),
|
||
meta: {
|
||
pageKey: 'collect_video',
|
||
pageName: '我的收藏',
|
||
},
|
||
},
|
||
// {
|
||
// path: '/bindAccount', //绑定手机号
|
||
// name: 'bindAccount',
|
||
// component: () => import('@/views/login/bindAccount.vue'),
|
||
// },
|
||
{
|
||
path: '/historyRecord', // 观看历史
|
||
name: 'historyRecord',
|
||
component: () => import('@/views/lldmine/historyRecord/index.vue'),
|
||
meta: {
|
||
pageKey: 'history_record',
|
||
pageName: '观看历史',
|
||
},
|
||
},
|
||
{
|
||
path: '/officialCommunity', // 官方社群
|
||
name: 'officialCommunity',
|
||
component: () => import('@/views/lldmine/officialCommunity/index.vue'),
|
||
meta: {
|
||
pageKey: 'official_community',
|
||
pageName: '官方社群',
|
||
},
|
||
},
|
||
{
|
||
path: '/business', // 商务合作
|
||
name: 'business',
|
||
component: () => import('@/views/lldmine/business/index.vue'),
|
||
meta: {
|
||
pageKey: 'business',
|
||
pageName: '商务合作',
|
||
},
|
||
},
|
||
{
|
||
path: '/share', // 分享推广
|
||
name: 'share',
|
||
component: () => import('@/views/lldmine/share/index.vue'),
|
||
meta: {
|
||
pageKey: 'share',
|
||
pageName: '分享推广',
|
||
},
|
||
},
|
||
{
|
||
path: '/myShare', // 我的推广
|
||
name: 'myShare',
|
||
component: () => import('@/views/lldmine/share/myShare.vue'),
|
||
meta: {
|
||
pageKey: 'my_share',
|
||
pageName: '我的推广',
|
||
},
|
||
},
|
||
{
|
||
path: '/exchange', // 领取兑换
|
||
name: 'exchange',
|
||
component: () => import('@/views/lldmine/exchange/index.vue'),
|
||
meta: {
|
||
pageKey: 'exchange',
|
||
pageName: '领取兑换',
|
||
},
|
||
},
|
||
{
|
||
path: '/myAccount', // 我的账号
|
||
name: 'myAccount',
|
||
component: () => import('@/views/lldmine/myAccount/index.vue'),
|
||
meta: {
|
||
pageKey: 'my_account',
|
||
pageName: '我的账号',
|
||
},
|
||
},
|
||
{
|
||
path: '/bindingPhone', // 绑定手机号
|
||
name: 'bindingPhone',
|
||
component: () => import('@/views/lldmine/bindingPhone/index.vue'),
|
||
meta: {
|
||
pageKey: 'binding_phone',
|
||
pageName: '绑定手机号',
|
||
},
|
||
},
|
||
{
|
||
path: '/setting', // 设置
|
||
name: 'setting',
|
||
component: () => import('@/views/lldmine/setting/index.vue'),
|
||
meta: {
|
||
pageKey: 'setting',
|
||
pageName: '设置',
|
||
},
|
||
},
|
||
{
|
||
path: '/editNick', // 修改昵称
|
||
name: 'editNick',
|
||
component: () => import('@/views/lldmine/editNick/index.vue'),
|
||
meta: {
|
||
pageKey: 'edit_nick',
|
||
pageName: '修改昵称',
|
||
},
|
||
},
|
||
{
|
||
path: '/bindingCode', // 绑定邀请码
|
||
name: 'bindingCode',
|
||
component: () => import('@/views/lldmine/bindingCode/index.vue'),
|
||
meta: {
|
||
pageKey: 'binding_code',
|
||
pageName: '绑定邀请码',
|
||
},
|
||
},
|
||
{
|
||
path: '/editSign', // 修改个性签名
|
||
name: 'editSign',
|
||
component: () => import('@/views/lldmine/editSign/index.vue'),
|
||
meta: {
|
||
pageKey: 'edit_sign',
|
||
pageName: '修改个性签名',
|
||
},
|
||
},
|
||
{
|
||
path: '/feedback', // 帮助反馈
|
||
name: 'feedback',
|
||
component: () => import('@/views/lldmine/feedback/index.vue'),
|
||
meta: {
|
||
pageKey: 'feedback',
|
||
pageName: '帮助反馈',
|
||
},
|
||
},
|
||
{
|
||
path: '/messageCenter', //消息中心
|
||
name: 'messageCenter',
|
||
component: () => import('@/views/lldmine/messageCenter/index.vue'),
|
||
meta: {
|
||
pageKey: 'message_center',
|
||
pageName: '消息中心',
|
||
},
|
||
},
|
||
{
|
||
path: '/minelogin', //消息中心
|
||
name: 'minelogin',
|
||
component: () => import('@/views/lldmine/login/index.vue'),
|
||
meta: {
|
||
pageKey: 'minelogin',
|
||
pageName: '登录',
|
||
},
|
||
},
|
||
{
|
||
path: '/minepostpage', // 发布的帖子
|
||
name: 'minepostpage',
|
||
component: () => import('@/views/lldmine/minepostpage/index.vue'),
|
||
meta: {
|
||
pageKey: 'minepostpage',
|
||
pageName: '发布的帖子',
|
||
},
|
||
},
|
||
{
|
||
path: '/follow', // 我的关注
|
||
name: 'follow',
|
||
component: () => import('@/views/lldmine/follow/index.vue'),
|
||
meta: {
|
||
pageKey: 'follow',
|
||
pageName: '我的关注',
|
||
},
|
||
},
|
||
{
|
||
path: '/originalenter', // 原创入驻
|
||
name: 'originalenter',
|
||
component: () => import('@/views/lldmine/originalenter/index.vue'),
|
||
meta: {
|
||
pageKey: 'originalenter',
|
||
pageName: '原创入驻',
|
||
},
|
||
},
|
||
{
|
||
path: '/originalenter2', // 官方招募
|
||
name: 'originalenter2',
|
||
component: () => import('@/views/lldmine/originalenter/index2.vue'),
|
||
meta: {
|
||
pageKey: 'originalenter_2',
|
||
pageName: '官方招募',
|
||
},
|
||
},
|
||
{
|
||
path: '/revenueDetails', // 收益明细
|
||
name: 'revenueDetails',
|
||
component: () => import('@/views/lldmine/revenueDetails/index.vue'),
|
||
meta: {
|
||
pageKey: 'revenue_details',
|
||
pageName: '收益明细',
|
||
},
|
||
},
|
||
{
|
||
path: '/announDetails', //消息详情
|
||
name: 'announDetails',
|
||
component: () => import('@/views/lldmine/messageCenter/announDetails.vue'),
|
||
meta: {
|
||
pageKey: 'announ_details',
|
||
pageName: '消息详情',
|
||
},
|
||
},
|
||
// {
|
||
// path: '/aiUndress', //ai导航
|
||
// name: 'aiUndress',
|
||
// component: () => import('@/views/lldmine/aiUndress/index.vue'),
|
||
// },
|
||
// {
|
||
// path: '/aiUndress2', //ai脱衣
|
||
// name: 'aiUndress2',
|
||
// component: () => import('@/views/lldmine/aiUndress/index2.vue'),
|
||
// },
|
||
{
|
||
path: '/aiNovelDetail', // 小说详情
|
||
name: 'aiNovelDetail',
|
||
component: () => import('@/views/lldmine/aiUndress/aiText/detail.vue'),
|
||
meta: {
|
||
pageKey: 'ai_novel_detail',
|
||
pageName: '小说详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/changeDetail', //ai视频换脸详情
|
||
name: 'changeDetail',
|
||
component: () => import('@/views/lldmine/aiUndress/changeDetail.vue'),
|
||
meta: {
|
||
pageKey: 'change_detail',
|
||
pageName: 'ai视频换脸详情',
|
||
},
|
||
},
|
||
{
|
||
path: '/aiRecord', //ai记录
|
||
name: 'aiRecord',
|
||
component: () => import('@/views/lldmine/aiRecord/index.vue'),
|
||
meta: {
|
||
pageKey: 'ai_record',
|
||
pageName: 'ai记录',
|
||
},
|
||
},
|
||
{
|
||
path: '/signIn', //打卡页面
|
||
name: 'signIn',
|
||
component: () => import('@/views/lldmine/signIn/index.vue'),
|
||
meta: {
|
||
pageKey: 'sign_in',
|
||
pageName: '打卡页面',
|
||
},
|
||
},
|
||
{
|
||
path: '/AiGirlFriend', //ai女友
|
||
name: 'AiGirlFriend',
|
||
component: () => import('@/views/lldmine/aiGirlFriend/index.vue'),
|
||
meta: {
|
||
pageKey: 'ai_girl_friend',
|
||
pageName: 'ai女友',
|
||
},
|
||
},
|
||
{
|
||
path: '/aiGirlfriend/web',
|
||
name: 'aiGirlfriendWeb',
|
||
component: () => import('@/views/lldmine/aiGirlFriend/web.vue'),
|
||
meta: {
|
||
pageKey: 'ai_girlfriend_web',
|
||
pageName: 'AI女友网页',
|
||
},
|
||
},
|
||
{
|
||
path: '/problemFeedback', //问题反馈
|
||
name: 'problemFeedback',
|
||
component: () => import('@/views/lldmine/problemFeedback/index.vue'),
|
||
meta: {
|
||
pageKey: 'problem_feedback',
|
||
pageName: '问题反馈',
|
||
},
|
||
},
|
||
{
|
||
path: '/questionsAnswers', //问题解答
|
||
name: 'questionsAnswers',
|
||
component: () => import('@/views/lldmine/questionsAnswers/index.vue'),
|
||
meta: {
|
||
pageKey: 'questions_answers',
|
||
pageName: '问题解答',
|
||
},
|
||
},
|
||
{
|
||
path: '/findPhone', //账号找回
|
||
name: 'findPhone',
|
||
component: () => import('@/views/lldmine/myAccount/findPhone.vue'),
|
||
meta: {
|
||
pageKey: 'find_phone',
|
||
pageName: '账号找回',
|
||
},
|
||
},
|
||
{
|
||
path: '/myLike', //我的喜欢
|
||
name: 'myLike',
|
||
component: () => import('@/views/lldmine/myLike/index.vue'),
|
||
meta: {
|
||
pageKey: 'my_like',
|
||
pageName: '我的喜欢',
|
||
},
|
||
},
|
||
{
|
||
path: '/memberExchange', //会员兑换
|
||
name: 'memberExchange',
|
||
component: () => import('@/views/lldmine/memberExchange/index.vue'),
|
||
meta: {
|
||
pageKey: 'member_exchange',
|
||
pageName: '会员兑换',
|
||
},
|
||
},
|
||
{
|
||
path: '/changeAvatar', //会员兑换
|
||
name: 'changeAvatar',
|
||
component: () => import('@/views/lldmine/changeAvatar/index.vue'),
|
||
meta: {
|
||
pageKey: 'change_avatar',
|
||
pageName: '修改头像',
|
||
},
|
||
},
|
||
];
|
||
|
||
// 暗网相关路由
|
||
const darkNet: RouteRecordRaw[] = [];
|
||
|
||
//直播
|
||
const liveCollection: RouteRecordRaw[] = [
|
||
{
|
||
path: '/liveRoom',
|
||
name: 'liveRoom',
|
||
component: () => import('@/views/lldlive/index.vue'),
|
||
meta: {
|
||
pageKey: 'live_detail',
|
||
pageName: '直播详情页',
|
||
},
|
||
},
|
||
];
|
||
|
||
const routes: RouteRecordRaw[] = [
|
||
{
|
||
path: '/',
|
||
name: 'splash',
|
||
component: Splash,
|
||
meta: {
|
||
pageKey: 'start',
|
||
pageName: '启动页',
|
||
},
|
||
},
|
||
{
|
||
path: '/main',
|
||
name: 'main',
|
||
component: () => import('@/views/MainView.vue'),
|
||
redirect: '/shortVideo',
|
||
meta: {
|
||
pageKey: 'main',
|
||
pageName: '主页',
|
||
},
|
||
children: [
|
||
{
|
||
path: '/home', //首页
|
||
name: 'home',
|
||
component: () => import('@/views/lldhome/index.vue'),
|
||
meta: {
|
||
pageKey: 'home',
|
||
pageName: '首页',
|
||
},
|
||
},
|
||
{
|
||
path: '/community', //社区
|
||
name: 'community',
|
||
component: () => import('@/views/community/index.vue'),
|
||
meta: {
|
||
pageKey: 'comm_post',
|
||
pageName: '社区首页',
|
||
},
|
||
},
|
||
{
|
||
path: '/darkNet', //暗网
|
||
name: 'darkNet',
|
||
component: () => import('@/views/darkNet/index.vue'),
|
||
meta: {
|
||
pageKey: 'darkweb',
|
||
pageName: '暗网',
|
||
},
|
||
},
|
||
{
|
||
path: '/mine', //我的
|
||
name: 'mine',
|
||
component: () => import('@/views/lldmine/index.vue'),
|
||
meta: {
|
||
pageKey: 'mine',
|
||
pageName: '我的',
|
||
},
|
||
},
|
||
{
|
||
path: '/shortVideo', //短剧(默认 AI短剧)
|
||
name: 'shortVideo',
|
||
component: () => import('@/views/shortVideo/index.vue'),
|
||
meta: {
|
||
pageKey: 'shortvideo_play',
|
||
pageName: '短视频播放页',
|
||
},
|
||
},
|
||
{
|
||
path: '/aiUndress2', //AI科技
|
||
name: 'aiUndress2',
|
||
component: () => import('@/views/lldmine/aiUndress/index2.vue'),
|
||
meta: {
|
||
pageKey: 'ai_undress_2',
|
||
pageName: 'AI科技',
|
||
},
|
||
},
|
||
{
|
||
path: '/pictureVideoDetail', //图生视频详情
|
||
name: 'pictureVideoDetail',
|
||
component: () => import('@/views/lldmine/aiUndress/picture2Video.vue'),
|
||
meta: {
|
||
pageKey: 'picture_video_detail',
|
||
pageName: '图生视频详情',
|
||
},
|
||
},
|
||
],
|
||
},
|
||
...homeCollection,
|
||
...communityCollection,
|
||
...freeBenefitsCollection,
|
||
...mineCollection,
|
||
...darkNet,
|
||
...liveCollection,
|
||
...acgCollection,
|
||
];
|
||
const router = createRouter({
|
||
history: createWebHistory(import.meta.env.BASE_URL),
|
||
routes: routes,
|
||
});
|
||
|
||
export default router;
|