初始化黄果短剧 H5 客户端
对接后端 hgmjapi.mfcg.me: - 接口解密 key 更新为 resKey360 - 登录 sysType 使用原生 getDevType(后端已放开 pc/android) - 修正榜单接口路径 /vid/rangking → /vid/ranking,方法改为 GET Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,142 @@
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
import Home from '@/views/pc/home/index.vue'
|
||||
import moviePlay from '@/views/pc/moviePlay/index.vue'
|
||||
import Mine from '@/views/pc/mine/index.vue'
|
||||
import Contact from '@/views/pc/contact/index.vue'
|
||||
import Search from '@/views/pc/search/index.vue'
|
||||
import Privacy from '@/views/pc/privacy/index.vue'
|
||||
import Welfare from '@/views/pc/welfare/index.vue'
|
||||
import PageList from '@/views/pc/pageList/index.vue'
|
||||
import Classification from '@/views/pc/classification/index.vue'
|
||||
import PublishingAddress from '@/views/pc/publishingAddress/index.vue'
|
||||
import ListOfTopics from '@/views/pc/listOfTopics/index.vue'
|
||||
import TagPageList from '@/views/pc/tagPageList/index.vue'
|
||||
import Business from '@/views/pc/business/index.vue'
|
||||
|
||||
// pc端路由
|
||||
const pcRouter: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/home',
|
||||
name: 'home',
|
||||
component: Home,
|
||||
meta: {
|
||||
title: "首页"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/mine',
|
||||
name: 'mine',
|
||||
component: Mine,
|
||||
redirect: { name: 'mine-history' },
|
||||
children: [
|
||||
{
|
||||
path: 'history',
|
||||
name: 'mine-history',
|
||||
component: () => import('@/views/pc/mine/children/History.vue')
|
||||
},
|
||||
{
|
||||
path: 'setting',
|
||||
name: 'mine-setting',
|
||||
component: () => import('@/views/pc/mine/children/Setting.vue')
|
||||
},
|
||||
{
|
||||
path: 'likes',
|
||||
name: 'mine-likes',
|
||||
component: () => import('@/views/pc/mine/children/Likes.vue')
|
||||
},
|
||||
],
|
||||
meta: {
|
||||
title: "我的"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/contact',
|
||||
name: 'contact',
|
||||
component: Contact,
|
||||
meta: {
|
||||
title: "联系"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/business',
|
||||
name: 'business',
|
||||
component: Business,
|
||||
meta: {
|
||||
title: "联系"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
name: 'search',
|
||||
component: Search,
|
||||
meta: {
|
||||
title: "搜索"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/privacy',
|
||||
name: 'privacy',
|
||||
component: Privacy,
|
||||
meta: {
|
||||
title: "隐私"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/moviePlay',
|
||||
name: 'moviePlay',
|
||||
component: moviePlay,
|
||||
meta: {
|
||||
title: "视频详情"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/welfare',
|
||||
name: 'welfare',
|
||||
component: Welfare,
|
||||
meta: {
|
||||
title: "福利"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/pageList',
|
||||
name: 'pageList',
|
||||
component: PageList,
|
||||
meta: {
|
||||
title: "列表"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/classification',
|
||||
name: 'classification',
|
||||
component: Classification,
|
||||
meta: {
|
||||
title: "分类"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/publishingAddress',
|
||||
name: 'publishingAddress',
|
||||
component: PublishingAddress,
|
||||
meta: {
|
||||
title: "发布地址"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/listOfTopics',
|
||||
name: 'listOfTopics',
|
||||
component: ListOfTopics,
|
||||
meta: {
|
||||
title: "专题详情"
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/tagPageList',
|
||||
name: 'tagPageList',
|
||||
component: TagPageList,
|
||||
meta: {
|
||||
title: "标签"
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default pcRouter;
|
||||
Reference in New Issue
Block a user