|
@@ -6,13 +6,7 @@ const jwt = require('jsonwebtoken');
|
|
Vue.use(VueRouter);
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
const routes = [
|
|
const routes = [
|
|
- // 首页
|
|
|
|
- // {
|
|
|
|
- // path: '/',
|
|
|
|
- // name: 'index',
|
|
|
|
- // meta: { title: '首页', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/index.vue'),
|
|
|
|
- // },
|
|
|
|
|
|
+ // 公众号第一版开始
|
|
// 直播大厅
|
|
// 直播大厅
|
|
{
|
|
{
|
|
path: '/live/index',
|
|
path: '/live/index',
|
|
@@ -20,61 +14,34 @@ const routes = [
|
|
meta: { title: '直播大厅', isleftarrow: false },
|
|
meta: { title: '直播大厅', isleftarrow: false },
|
|
component: () => import('../views/live/index.vue'),
|
|
component: () => import('../views/live/index.vue'),
|
|
},
|
|
},
|
|
- // 展会详情
|
|
|
|
|
|
+ // 直播大厅-在线展会详情
|
|
{
|
|
{
|
|
path: '/live/liveDetail',
|
|
path: '/live/liveDetail',
|
|
name: 'liveDetail',
|
|
name: 'liveDetail',
|
|
meta: { title: '展会详情', isleftarrow: true },
|
|
meta: { title: '展会详情', isleftarrow: true },
|
|
component: () => import('../views/live/liveDetail.vue'),
|
|
component: () => import('../views/live/liveDetail.vue'),
|
|
},
|
|
},
|
|
- // 科技频道详情
|
|
|
|
|
|
+ // 直播大厅-科技频道详情
|
|
{
|
|
{
|
|
path: '/live/channelDetail',
|
|
path: '/live/channelDetail',
|
|
name: 'channelDetail',
|
|
name: 'channelDetail',
|
|
meta: { title: '科技频道', isleftarrow: true },
|
|
meta: { title: '科技频道', isleftarrow: true },
|
|
component: () => import('../views/live/channelDetail.vue'),
|
|
component: () => import('../views/live/channelDetail.vue'),
|
|
},
|
|
},
|
|
- // 嘉宾访谈
|
|
|
|
|
|
+ // 直播大厅-嘉宾访谈详情
|
|
{
|
|
{
|
|
path: '/live/interviewDeatil',
|
|
path: '/live/interviewDeatil',
|
|
name: 'interviewDeatil',
|
|
name: 'interviewDeatil',
|
|
meta: { title: '嘉宾访谈详情', isleftarrow: true },
|
|
meta: { title: '嘉宾访谈详情', isleftarrow: true },
|
|
component: () => import('../views/live/interviewDeatil.vue'),
|
|
component: () => import('../views/live/interviewDeatil.vue'),
|
|
},
|
|
},
|
|
- // 项目路演详情
|
|
|
|
|
|
+ // 直播大厅-项目路演详情
|
|
{
|
|
{
|
|
path: '/live/roadshowDetail',
|
|
path: '/live/roadshowDetail',
|
|
name: 'roadshowDetail',
|
|
name: 'roadshowDetail',
|
|
meta: { title: '项目路演详情', isleftarrow: true },
|
|
meta: { title: '项目路演详情', isleftarrow: true },
|
|
component: () => import('../views/live/roadshowDetail.vue'),
|
|
component: () => import('../views/live/roadshowDetail.vue'),
|
|
},
|
|
},
|
|
- // 个人中心
|
|
|
|
- {
|
|
|
|
- path: '/user/index',
|
|
|
|
- name: 'user',
|
|
|
|
- meta: { title: '个人中心', isleftarrow: false },
|
|
|
|
- component: () => import('../views/user/index.vue'),
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- // // 1005视频详情
|
|
|
|
- // {
|
|
|
|
- // path: '/live/detailtwo',
|
|
|
|
- // name: 'detailtwo',
|
|
|
|
- // meta: { title: '视频详情', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/live/detailtwo.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/live/personalDetail',
|
|
|
|
- // name: 'personalDetail',
|
|
|
|
- // meta: { title: '人才招聘详情', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/live/personalDetail.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/live/exportsDetail',
|
|
|
|
- // name: 'exportsDetail',
|
|
|
|
- // meta: { title: '专家培训详情', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/live/exportsDetail.vue'),
|
|
|
|
- // },
|
|
|
|
// 科技超市
|
|
// 科技超市
|
|
{
|
|
{
|
|
path: '/market/index',
|
|
path: '/market/index',
|
|
@@ -82,234 +49,22 @@ const routes = [
|
|
meta: { title: '科技超市', isleftarrow: false },
|
|
meta: { title: '科技超市', isleftarrow: false },
|
|
component: () => import('../views/market/index.vue'),
|
|
component: () => import('../views/market/index.vue'),
|
|
},
|
|
},
|
|
|
|
+ // 科技超市详情
|
|
{
|
|
{
|
|
path: '/market/detail',
|
|
path: '/market/detail',
|
|
name: 'detail',
|
|
name: 'detail',
|
|
meta: { title: '科技超市详情', isleftarrow: true },
|
|
meta: { title: '科技超市详情', isleftarrow: true },
|
|
component: () => import('../views/market/detail.vue'),
|
|
component: () => import('../views/market/detail.vue'),
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // path: '/market/exportDetail',
|
|
|
|
- // name: 'market_exportDetail',
|
|
|
|
- // meta: { title: '专家详情', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/market/exportDetail.vue'),
|
|
|
|
- // },
|
|
|
|
- // 技术交流
|
|
|
|
- // {
|
|
|
|
- // path: '/service/index',
|
|
|
|
- // name: 'service_index',
|
|
|
|
- // meta: { title: '技术交流', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/service/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/service/detail',
|
|
|
|
- // name: 'service_detail',
|
|
|
|
- // meta: { title: '技术交流', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/service/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // //新闻资讯
|
|
|
|
- // {
|
|
|
|
- // path: '/journ/index',
|
|
|
|
- // name: 'journ',
|
|
|
|
- // meta: { title: '新闻资讯', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/journ/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/journ/detail',
|
|
|
|
- // name: 'detail',
|
|
|
|
- // meta: { title: '新闻资讯', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/journ/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/service/techDetail',
|
|
|
|
- // name: 'service_techDetail',
|
|
|
|
- // meta: { title: '技术交流', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/service/techDetail.vue'),
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
// 个人中心
|
|
// 个人中心
|
|
- // {
|
|
|
|
- // path: '/user/index',
|
|
|
|
- // name: 'user_index',
|
|
|
|
- // meta: { title: '个人中心', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/user/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 用户-基本信息
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/user/index',
|
|
|
|
- // name: 'user_index',
|
|
|
|
- // meta: { title: '基本信息', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/user/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 用户-我的发布
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/myProduct/index',
|
|
|
|
- // name: 'myProduct_index',
|
|
|
|
- // meta: { title: '我的发布', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/myProduct/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // //用户-发布产品
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/myProduct/detail',
|
|
|
|
- // name: 'myProduct_index',
|
|
|
|
- // meta: { title: '信息管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/myProduct/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 用户-事项管理
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/matter/index',
|
|
|
|
- // name: 'matter_index',
|
|
|
|
- // meta: { title: '事项管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/matter/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 用户-交易完成
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/matter/detail',
|
|
|
|
- // name: 'matter_detail',
|
|
|
|
- // meta: { title: '交易完成', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/matter/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 用户-展会管理
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/dock/index',
|
|
|
|
- // name: 'dock_index',
|
|
|
|
- // meta: { title: '展会管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/dock/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/userCenter/dock/detail',
|
|
|
|
- // name: 'detail',
|
|
|
|
- // meta: { title: '申请', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/userCenter/dock/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理用户菜单
|
|
|
|
- // // 管理-用户管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/user/index',
|
|
|
|
- // name: 'adminCenter_user_index',
|
|
|
|
- // meta: { title: '用户管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/user/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-查看用户
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/user/detail',
|
|
|
|
- // name: 'adminCenter_user_detail',
|
|
|
|
- // meta: { title: '审核/查看用户', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/user/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-展会管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/duijiehui/index',
|
|
|
|
- // name: 'adminCenter_duijiehui_index',
|
|
|
|
- // meta: { title: '展会管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/duijiehui/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-展会信息管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/duijiehui/add',
|
|
|
|
- // name: 'adminCenter_duijiehui_add',
|
|
|
|
- // meta: { title: '展会信息管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/duijiehui/add.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-审核管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/enterpriseProduct/index',
|
|
|
|
- // name: 'adminCenter_enterpriseProduct',
|
|
|
|
- // meta: { title: '审核管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/enterpriseProduct/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-产品信息管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/enterpriseProduct/detail',
|
|
|
|
- // name: 'adminCenter_enterpriseProduct',
|
|
|
|
- // meta: { title: '产品信息管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/enterpriseProduct/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-交易审核管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/transaction/index',
|
|
|
|
- // name: 'adminCenter_transaction',
|
|
|
|
- // meta: { title: '交易审核管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/transaction/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 管理-交易信息管理
|
|
|
|
- // {
|
|
|
|
- // path: '/adminCenter/transaction/detail',
|
|
|
|
- // name: 'adminCenter_transaction',
|
|
|
|
- // meta: { title: '交易信息管理', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/adminCenter/transaction/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // //共用-修改密码
|
|
|
|
- // {
|
|
|
|
- // path: '/updatePwd/index',
|
|
|
|
- // name: 'updatePwd',
|
|
|
|
- // meta: { title: '修改密码', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/updatePwd/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 登录-用户+管理
|
|
|
|
- // {
|
|
|
|
- // path: '/login',
|
|
|
|
- // name: 'login',
|
|
|
|
- // meta: { title: '登录', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/login.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 绑定
|
|
|
|
- // {
|
|
|
|
- // path: '/bind',
|
|
|
|
- // name: 'bind',
|
|
|
|
- // meta: { title: '绑定', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/bind.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 展会绑定
|
|
|
|
- // {
|
|
|
|
- // path: '/dockbind',
|
|
|
|
- // name: 'dockbind',
|
|
|
|
- // meta: { title: '展会绑定', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/dockbind.vue'),
|
|
|
|
- // },
|
|
|
|
- // //关注公众号
|
|
|
|
- // {
|
|
|
|
- // path: '/followbind',
|
|
|
|
- // name: 'followbind',
|
|
|
|
- // meta: { title: '关注公众号', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/followbind.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 错误
|
|
|
|
- // {
|
|
|
|
- // path: '/error',
|
|
|
|
- // name: 'error',
|
|
|
|
- // meta: { title: '绑定授权', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/followbind.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 11-9新菜单
|
|
|
|
- // {
|
|
|
|
- // path: '/channel/index',
|
|
|
|
- // name: 'channel',
|
|
|
|
- // meta: { title: '科技频道', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/channel/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/channel/detail',
|
|
|
|
- // name: 'detail',
|
|
|
|
- // meta: { title: '科技频道', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/channel/detail.vue'),
|
|
|
|
- // },
|
|
|
|
- // // 12-23新闻类信息
|
|
|
|
-
|
|
|
|
- // {
|
|
|
|
- // path: '/scienceNews/index',
|
|
|
|
- // name: 'scienceNews',
|
|
|
|
- // meta: { title: '科技新闻', isleftarrow: false },
|
|
|
|
- // component: () => import('../views/scienceNews/index.vue'),
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // path: '/scienceNews/detail',
|
|
|
|
- // name: 'detail',
|
|
|
|
- // meta: { title: '科技新闻', isleftarrow: true },
|
|
|
|
- // component: () => import('../views/scienceNews/detail.vue'),
|
|
|
|
- // },
|
|
|
|
-
|
|
|
|
- // 2021-01-11 第二版页面 secondView
|
|
|
|
|
|
+ {
|
|
|
|
+ path: '/user/index',
|
|
|
|
+ name: 'user',
|
|
|
|
+ meta: { title: '个人中心', isleftarrow: false },
|
|
|
|
+ component: () => import('../views/user/index.vue'),
|
|
|
|
+ },
|
|
|
|
+ // 公众号第一版结束
|
|
|
|
+ // 公众号第二版开始 secondView
|
|
// 在线展会
|
|
// 在线展会
|
|
{
|
|
{
|
|
path: '/secondView/live/index',
|
|
path: '/secondView/live/index',
|
|
@@ -401,6 +156,7 @@ const routes = [
|
|
meta: { title: '账号管理', isleftarrow: false },
|
|
meta: { title: '账号管理', isleftarrow: false },
|
|
component: () => import('../views/secondView/account/index.vue'),
|
|
component: () => import('../views/secondView/account/index.vue'),
|
|
},
|
|
},
|
|
|
|
+ // 公众号第二版结束
|
|
];
|
|
];
|
|
|
|
|
|
const router = new VueRouter({
|
|
const router = new VueRouter({
|