Commit 0e42d600 by Tang

Merge branch 'master' of https://gitee.com/gs1-office-web-sit/gs1

 Conflicts:
	src/router/index.js
parents 4a5ad25d 34eacf9c
......@@ -487,8 +487,45 @@ export const nav = [
id: "5",
name: "资讯中心",
index: 5,
link: "/News",
children: [],
link: "",
children: [
{
id: uuid("gs_nav"),
name: "资讯中心",
index: 5,
link: "/News/index",
children: [
{
id: uuid("gs_nav"),
name: "图片资讯",
index: 5,
link: "/News/PicNews",
breadcrumb: [
{ name: "资讯中心", path: "/News/index" },
{ name: "图片资讯" },
],
}
],
},
{
id: uuid("gs_nav"),
name: "应用领域",
index: 5,
link: "",
children: [
{
id: uuid("gs_nav"),
name: "零售",
index: 5,
link: "",
breadcrumb: [
{ name: "资讯中心", path: "/News/index" },
{ name: "零售" },
],
}
],
},
],
},
{
id: "6",
......@@ -502,7 +539,7 @@ export const nav = [
nameInHeaderNav: "技术与标准",
index: 0,
link: "/Knowledge",
breadcrumb: [{name: "技术与标准", path: "/Knowledge"}, {name: "技术与标准"}],
breadcrumb: [{ name: "技术与标准", path: "/Knowledge" }, { name: "技术与标准" }],
children: [
{
id: uuid("gs_nav"),
......@@ -510,8 +547,8 @@ export const nav = [
index: 0,
link: "/Knowledge",
breadcrumb: [
{name: "技术与标准", path: "/Knowledge"},
{name: "科研"},
{ name: "技术与标准", path: "/Knowledge" },
{ name: "科研" },
],
},
{
......@@ -520,8 +557,8 @@ export const nav = [
index: 1,
link: "/Knowledge",
breadcrumb: [
{name: "技术与标准", path: "/Knowledge"},
{name: "标准"},
{ name: "技术与标准", path: "/Knowledge" },
{ name: "标准" },
],
},
],
......@@ -532,7 +569,7 @@ export const nav = [
nameInHeaderNav: "技术知识",
index: 6,
link: "/Knowledge",
breadcrumb: [{name: "技术知识", path: "/Knowledge"}, {name: "技术知识"}],
breadcrumb: [{ name: "技术知识", path: "/Knowledge" }, { name: "技术知识" }],
children: [
{
id: uuid("gs_nav"),
......@@ -540,9 +577,9 @@ export const nav = [
index: 0,
link: "/Knowledge/ANCCSystem",
breadcrumb: [
{name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "国家物品编码体系"},
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "国家物品编码体系" },
],
},
{
......@@ -552,56 +589,56 @@ export const nav = [
link: "/Knowledge/GS1System2",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "GS1系统"},
],
},
{
id: uuid("gs_nav"),
name: "概述",
index: 0,
link: "/Knowledge/GS1System/GS1System",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "GS1系统" },
],
},
{
id: uuid("gs_nav"),
name: "编码体系",
index: 1,
link: "/Knowledge/GS1System/bmtx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "编码体系" },
],
},
{
id: uuid("gs_nav"),
name: "数据载体体系",
index: 2,
link: "/Knowledge/GS1System/sjzttx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "数据载体体系" },
],
},
{
id: uuid("gs_nav"),
name: "数据交换体系",
index: 3,
link: "/Knowledge/GS1System/sjjhtx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "数据交换体系" },
],
},
// 知识导航start
{ name: "技术知识", path: "/Knowledge/" },
{ name: "GS1系统" },
],
},
{
id: uuid("gs_nav"),
name: "概述",
index: 0,
link: "/Knowledge/GS1System/GS1System",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "GS1系统" },
],
},
{
id: uuid("gs_nav"),
name: "编码体系",
index: 1,
link: "/Knowledge/GS1System/bmtx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "编码体系" },
],
},
{
id: uuid("gs_nav"),
name: "数据载体体系",
index: 2,
link: "/Knowledge/GS1System/sjzttx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "数据载体体系" },
],
},
{
id: uuid("gs_nav"),
name: "数据交换体系",
index: 3,
link: "/Knowledge/GS1System/sjjhtx",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "数据交换体系" },
],
},
// 知识导航start
{
id: uuid("gs_nav"),
name: "商品条码",
......@@ -711,7 +748,7 @@ export const nav = [
},
// 知识导航end
// 知识导航end
......@@ -724,19 +761,19 @@ export const nav = [
link: "/Knowledge/Standard",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "标准文献"},
{ name: "技术知识", path: "/Knowledge/" },
{ name: "标准文献" },
],
},
{
id: uuid("gs_nav"),
name: "专业术语",
index:3,
index: 3,
link: "/Knowledge/Glossary",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "专业术语"},
{ name: "技术知识", path: "/Knowledge/" },
{ name: "专业术语" },
],
},
{
......@@ -746,8 +783,8 @@ export const nav = [
link: "/Knowledge/xts",
breadcrumb: [
{ name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "小贴士"},
{ name: "技术知识", path: "/Knowledge/" },
{ name: "小贴士" },
],
},
{
......@@ -756,13 +793,13 @@ export const nav = [
index: 5,
link: "/Knowledge/xts",
breadcrumb: [
{name: "技术与标准", path: "/Knowledge" },
{name: "技术知识", path: "/Knowledge/"},
{name: "常见知识"},
{ name: "技术与标准", path: "/Knowledge" },
{ name: "技术知识", path: "/Knowledge/" },
{ name: "常见知识" },
],
},
......@@ -776,7 +813,7 @@ export const nav = [
nameInHeaderNav: "政策法规",
index: 1,
link: "/Knowledge/Statute",
breadcrumb: [{name: "技术知识", path: "/Knowledge"}, {name: "政策法规"}],
breadcrumb: [{ name: "技术知识", path: "/Knowledge" }, { name: "政策法规" }],
children: [{}]
},
],
......
......@@ -8,637 +8,657 @@ Vue.use(VueRouter);
// 解决首页路由跳转的时候同一个路由多次添加,未跳转完成就重复跳转
const routerPush = VueRouter.prototype.push;
VueRouter.prototype.push = function push(to) {
return routerPush.call(this, to).catch((err) => err);
return routerPush.call(this, to).catch((err) => err);
};
const routes = [
{
path: "/",
redirect: "/Home",
{
path: "/",
redirect: "/Home",
},
{
path: "/Home",
name: "Home",
component: main,
meta: {
name: "首页",
},
{
path: "/Home",
name: "Home",
component: main,
children: [
{
path: "/",
component: () => import("@/views/Home/index"),
},
{
path: "/Home/sousuo",
name: "sousuo",
component: () => import("@/views/Home/sousuo"),
},
{
path: "/Org",
name: "Org",
meta: {
name: "首页",
name: "机构概况",
},
component: () => import("@/views/Org/index"),
redirect: '/Org/Intro',
children: [
{
path: "/",
component: () => import("@/views/Home/index"),
{
path: "/Org/Intro",
name: "Intro",
meta: {
name: "中心简介",
},
{
path: "/Home/sousuo",
name: "sousuo",
component: () => import("@/views/Home/sousuo"),
component: () => import("@/views/Org/Intro.vue"),
},
{
path: "/Org/Leadership",
name: "Leadership",
meta: {
name: "中心领导",
},
{
path: "/Org",
name: "Org",
meta: {
name: "机构概况",
},
component: () => import("@/views/Org/index"),
redirect: '/Org/Intro',
children: [
{
path: "/Org/Intro",
name: "Intro",
meta: {
name: "中心简介",
},
component: () => import("@/views/Org/Intro.vue"),
},
{
path: "/Org/Leadership",
name: "Leadership",
meta: {
name: "中心领导",
},
component: () => import("@/views/Org/Leadership.vue"),
},
{
path: "/Org/Departments",
name: "Departments",
meta: {
name: "内设机构",
},
component: () => import("@/views/Org/Departments.vue"),
},
{
path: "/Org/Sites",
name: "Sites",
meta: {
name: "质检中心/协会/杂志社/标委会/其他",
},
component: () => import("@/views/Org/Sites.vue"),
},
{
path: "/Org/Branch",
name: "Branch",
meta: {
name: "地方编码分支机构",
},
component: () => import("@/views/Org/Branch.vue"),
},
{
path: "/Org/BranchMsg",
name: "Branch",
meta: {
name: "地方编码分支机构",
hidden: true,
},
component: () => import("@/views/Org/BranchMsg.vue"),
},
{
path: "https://www.gs1.org/",
name: "GS1",
meta: {
name: "国际物品编码组织(GS1)",
type: 'link'
},
},
{
path: "/Org/GS1Members",
name: "GS1Members",
meta: {
name: "国际物品编码组织(GS1)成员网站",
},
component: () => import("@/views/Org/GS1Members.vue"),
},
{
path: "/Org/ISO",
name: "ISO",
meta: {
name: "质量管理体系",
},
redirect: '/Org/ISO/Ideology',
},
{
path: "/Org/ISO/Ideology",
name: "Ideology",
meta: {
name: "指导思想",
},
component: () => import("@/views/Org/ISO/Ideology.vue"),
},
{
path: "/Org/ISO/Policy",
name: "Policy",
meta: {
name: "质量方针",
},
component: () => import("@/views/Org/ISO/Policy.vue"),
},
{
path: "/Org/ISO/Goal",
name: "Goal",
meta: {
name: "质量目标",
},
component: () => import("@/views/Org/ISO/Goal.vue"),
},
{
path: "/Org/ISO/Manual",
name: "Manual",
meta: {
name: "质量管理手册",
},
component: () => import("@/views/Org/ISO/Manual.vue"),
},
{
path: "/Org/ISO/Files",
name: "Files",
meta: {
name: "程序文件",
},
component: () => import("@/views/Org/ISO/Files.vue"),
},
],
component: () => import("@/views/Org/Leadership.vue"),
},
{
path: "/Org/Departments",
name: "Departments",
meta: {
name: "内设机构",
},
{
path: "/Business",
name: "Business",
meta: {
name: "业务大厅",
},
component: () => import("@/views/Business/index"),
redirect: '/Business/Register',
children: [
{
path: "/Business/Register",
name: "Register",
meta: {
name: "我要申请商品条码",
},
component: () => import("@/views/Business/Register.vue"),
},
{
path: "/Business/Guide",
name: "Guide",
meta: {
name: "操作指南",
},
redirect: {
path: '/Business/Guide1',
query: {
id: '1-1'
}
},
},
component: () => import("@/views/Org/Departments.vue"),
},
{
path: "/Org/Sites",
name: "Sites",
meta: {
name: "质检中心/协会/杂志社/标委会/其他",
},
component: () => import("@/views/Org/Sites.vue"),
},
{
path: "/Org/Branch",
name: "Branch",
meta: {
name: "地方编码分支机构",
},
component: () => import("@/views/Org/Branch.vue"),
},
{
path: "/Org/BranchMsg",
name: "Branch",
meta: {
name: "地方编码分支机构",
hidden: true,
},
component: () => import("@/views/Org/BranchMsg.vue"),
},
{
path: "https://www.gs1.org/",
name: "GS1",
meta: {
name: "国际物品编码组织(GS1)",
type: 'link'
},
},
{
path: "/Org/GS1Members",
name: "GS1Members",
meta: {
name: "国际物品编码组织(GS1)成员网站",
},
component: () => import("@/views/Org/GS1Members.vue"),
},
{
path: "/Org/ISO",
name: "ISO",
meta: {
name: "质量管理体系",
},
redirect: '/Org/ISO/Ideology',
},
{
path: "/Org/ISO/Ideology",
name: "Ideology",
meta: {
name: "指导思想",
},
component: () => import("@/views/Org/ISO/Ideology.vue"),
},
{
path: "/Org/ISO/Policy",
name: "Policy",
meta: {
name: "质量方针",
},
component: () => import("@/views/Org/ISO/Policy.vue"),
},
{
path: "/Org/ISO/Goal",
name: "Goal",
meta: {
name: "质量目标",
},
component: () => import("@/views/Org/ISO/Goal.vue"),
},
{
path: "/Org/ISO/Manual",
name: "Manual",
meta: {
name: "质量管理手册",
},
component: () => import("@/views/Org/ISO/Manual.vue"),
},
{
path: "/Org/ISO/Files",
name: "Files",
meta: {
name: "程序文件",
},
component: () => import("@/views/Org/ISO/Files.vue"),
},
],
},
{
path: "/Business",
name: "Business",
meta: {
name: "业务大厅",
},
component: () => import("@/views/Business/index"),
redirect: '/Business/Register',
children: [
{
path: "/Business/Register",
name: "Register",
meta: {
name: "我要申请商品条码",
},
component: () => import("@/views/Business/Register.vue"),
},
{
path: "/Business/Guide",
name: "Guide",
meta: {
name: "操作指南",
},
redirect: {
path: '/Business/Guide1',
query: {
id: '1-1'
}
},
},
{
path: "/Business/Guide1",
name: "Guide3",
meta: {
name: "我要申请商品条码",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide1.vue"),
},
{
path: "/Business/Guide2",
name: "Guide2",
meta: {
name: "我要编码",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide2.vue"),
},
{
path: "/Business/Guide3",
name: "Guide3",
meta: {
name: "我要通报编码信息",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide3.vue"),
},
{
path: "/Business/Guide4",
name: "Guide4",
meta: {
name: "微信共享",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide4.vue"),
},
{
path: "/Business/Guide5",
name: "Guide5",
meta: {
name: "我要培训",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide5.vue"),
},
{
path: "/Business/Guide6",
name: "Guide6",
meta: {
name: "我要续展",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide6.vue"),
},
{
path: "/Business/Code2",
name: "Code2",
meta: {
name: "非零售商品",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code2.vue"),
},
{
path: "/Business/Code3",
name: "Code3",
meta: {
name: "物流单元",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code3.vue"),
},
{
path: "/Business/Guide7",
name: "Guide7",
meta: {
name: "我要咨询",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide7.vue"),
},
{
path: "/Business/Code1",
name: "Code1",
meta: {
name: "零售商品",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code1.vue"),
},
{
path: "/Business/Guide8",
name: "Guide8",
meta: {
name: "常见问题",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Fap.vue"),
},
{
path: "/Business/Corppaynew",
name: "Corppaynew",
meta: {
name: "收费公示",
},
component: () => import("@/views/Business/Corppaynew.vue"),
},
{
path: "/Business/Corppay",
name: "Corppay",
meta: {
name: "收费目录清单",
},
component: () => import("@/views/Business/Corppay.vue"),
},
{
path: "/Business/serviceFee",
name: "serviceFee",
meta: {
name: "其他增值服务费",
},
component: () => import("@/views/Business/serviceFee.vue"),
},
{
path: "/Business/Notice",
name: "Notice",
meta: {
name: "条码公告",
},
component: () => import("@/views/Business/Notice.vue"),
},
{
path: "/Business/Training",
name: "",
meta: {
name: "我要培训——现场培训/线上培训",
},
redirect: '/Service/Training',
},
{
path: "/Business/Renewal",
name: "Renewal",
meta: {
name: "我要续展",
},
component: () => import("@/views/Business/Renewal.vue"),
},
{
path: "/Business/Code",
name: "Code",
meta: {
name: "我要编码",
},
redirect: {
path: '/Business/Code1',
query: {
id: '1-1'
}
},
},
{
path: "/Business/2dcode",
name: "2dcode",
meta: {
name: "我要生成商品二维码",
},
component: () => import("@/views/Business/2dcode.vue"),
},
{
path: "/Business/FoodSafety",
name: "FoodSafety",
meta: {
name: "我要追溯",
},
component: () => import("@/views/Business/FoodSafety.vue"),
},
{
path: "/Business/BarcodeV",
name: "BarcodeV",
meta: {
name: "条码微站",
},
component: () => import("@/views/Business/BarcodeV.vue"),
},
{
path: "/Business/GLN",
name: "GLN",
meta: {
name: "办理全球位置码(GLN)",
},
component: () => import("@/views/Business/GLN.vue"),
},
{
path: "/Business/cpdzdm",
name: "cpdzdm",
meta: {
name: "办理产品电子代码(EPC)",
},
component: () => import("@/views/Business/cpdzdm.vue"),
},
{
path: "/Business/GIAI",
name: "GIAI",
meta: {
name: "办理资产标识代码",
},
component: () => import("@/views/Business/GIAI.vue"),
},
{
path: "/Business/GSRN",
name: "GSRN",
meta: {
name: "办理全球服务关系代码",
},
component: () => import("@/views/Business/GSRN.vue"),
},
{
path: "/Business/Animalcode",
name: "Animalcode",
meta: {
name: "办理动物管理者代码",
},
component: () => import("@/views/Business/Animalcode.vue"),
},
],
{
path: "/Business/Guide1",
name: "Guide3",
meta: {
name: "我要申请商品条码",
fatherPath: '/Business/Guide',
},
{
path: "/Service/Training",
name: "Training",
meta: {
name: "培训计划",
},
component: () => import("@/views/Business/Training.vue"),
component: () => import("@/views/Business/Guide1.vue"),
},
{
path: "/Business/Guide2",
name: "Guide2",
meta: {
name: "我要编码",
fatherPath: '/Business/Guide',
},
{
path: "/News",
name: "News",
meta: {
name: "资讯中心",
},
component: () => import("@/views/News/index.vue"),
component: () => import("@/views/Business/Guide2.vue"),
},
{
path: "/Business/Guide3",
name: "Guide3",
meta: {
name: "我要通报编码信息",
fatherPath: '/Business/Guide',
},
{
path: "/Knowledge",
name: "Knowledge",
meta: {
name: "知识中心",
},
component: () => import("@/views/Knowledge/index"),
children: []
component: () => import("@/views/Business/Guide3.vue"),
},
{
path: "/Business/Guide4",
name: "Guide4",
meta: {
name: "微信共享",
fatherPath: '/Business/Guide',
},
{
path: "/Knowledge/TeKIndex",
name: "TeKIndex",
meta: {
name: "技术标准",
},
component: () => import("@/views/Knowledge/TeKIndex.vue"),
children: [
{
path: "/Knowledge/ANCCSystem",
name: "ANCCSystem",
meta: {
name: "国家物品编码体系",
},
component: () => import("@/views/Knowledge/ANCCSystem.vue"),
},
{
path: "/Knowledge/GS1System2",
name: "GS1System",
meta: {
name: "GS1系统",
},
component: () => import("@/views/Knowledge/GS1System2.vue"),
component: () => import("@/views/Business/Guide4.vue"),
},
{
path: "/Business/Guide5",
name: "Guide5",
meta: {
name: "我要培训",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide5.vue"),
},
{
path: "/Business/Guide6",
name: "Guide6",
meta: {
name: "我要续展",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide6.vue"),
},
{
path: "/Business/Code2",
name: "Code2",
meta: {
name: "非零售商品",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code2.vue"),
},
{
path: "/Business/Code3",
name: "Code3",
meta: {
name: "物流单元",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code3.vue"),
},
{
path: "/Business/Guide7",
name: "Guide7",
meta: {
name: "我要咨询",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Guide7.vue"),
},
{
path: "/Business/Code1",
name: "Code1",
meta: {
name: "零售商品",
fatherPath: '/Business/Code',
},
component: () => import("@/views/Business/Code1.vue"),
},
{
path: "/Business/Guide8",
name: "Guide8",
meta: {
name: "常见问题",
fatherPath: '/Business/Guide',
},
component: () => import("@/views/Business/Fap.vue"),
},
{
path: "/Business/Corppaynew",
name: "Corppaynew",
meta: {
name: "收费公示",
},
component: () => import("@/views/Business/Corppaynew.vue"),
},
{
path: "/Business/Corppay",
name: "Corppay",
meta: {
name: "收费目录清单",
},
component: () => import("@/views/Business/Corppay.vue"),
},
{
path: "/Business/serviceFee",
name: "serviceFee",
meta: {
name: "其他增值服务费",
},
component: () => import("@/views/Business/serviceFee.vue"),
},
{
path: "/Business/Notice",
name: "Notice",
meta: {
name: "条码公告",
},
component: () => import("@/views/Business/Notice.vue"),
},
{
path: "/Business/Training",
name: "",
meta: {
name: "我要培训——现场培训/线上培训",
},
redirect: '/Service/Training',
},
{
path: "/Business/Renewal",
name: "Renewal",
meta: {
name: "我要续展",
},
component: () => import("@/views/Business/Renewal.vue"),
},
{
path: "/Business/Code",
name: "Code",
meta: {
name: "我要编码",
},
redirect: {
path: '/Business/Code1',
query: {
id: '1-1'
}
},
},
{
path: "/Business/2dcode",
name: "2dcode",
meta: {
name: "我要生成商品二维码",
},
component: () => import("@/views/Business/2dcode.vue"),
},
{
path: "/Business/FoodSafety",
name: "FoodSafety",
meta: {
name: "我要追溯",
},
component: () => import("@/views/Business/FoodSafety.vue"),
},
{
path: "/Business/BarcodeV",
name: "BarcodeV",
meta: {
name: "条码微站",
},
component: () => import("@/views/Business/BarcodeV.vue"),
},
{
path: "/Business/GLN",
name: "GLN",
meta: {
name: "办理全球位置码(GLN)",
},
component: () => import("@/views/Business/GLN.vue"),
},
{
path: "/Business/cpdzdm",
name: "cpdzdm",
meta: {
name: "办理产品电子代码(EPC)",
},
component: () => import("@/views/Business/cpdzdm.vue"),
},
{
path: "/Business/GIAI",
name: "GIAI",
meta: {
name: "办理资产标识代码",
},
component: () => import("@/views/Business/GIAI.vue"),
},
{
path: "/Business/GSRN",
name: "GSRN",
meta: {
name: "办理全球服务关系代码",
},
component: () => import("@/views/Business/GSRN.vue"),
},
{
path: "/Business/Animalcode",
name: "Animalcode",
meta: {
name: "办理动物管理者代码",
},
component: () => import("@/views/Business/Animalcode.vue"),
},
],
},
{
path: "/Service/Training",
name: "Training",
meta: {
name: "培训计划",
},
component: () => import("@/views/Business/Training.vue"),
},
{
path: "/News/index",
name: "newsIndex",
meta: {
name: "资讯中心",
},
component: () => import("@/views/News/index.vue"),
},
{
path: "/News",
name: "News",
meta: {
name: "资讯中心",
},
component: () => import("@/views/News/main.vue"),
children: [
{
path: "/News/PicNews",
name: "PicNews",
meta: {
name: "图片资讯",
},
component: () => import("@/views/News/PicNews.vue"),
},
]
},
{
path: "/Knowledge",
name: "Knowledge",
meta: {
name: "知识中心",
},
component: () => import("@/views/Knowledge/index"),
children: [
},
{
path: "/Knowledge/GS1System/GS1System",
name: "GS1System",
meta: {
name: "概述",
},
component: () => import("@/views/Knowledge/GS1System/GS1System.vue"),
},
{
path: "/Knowledge/GS1System/bmtx",
name: "bmtx",
meta: {
name: "编码体系",
},
component: () => import("@/views/Knowledge/GS1System/bmtx.vue"),
},
{
path: "/Knowledge/GS1System/sjzttx",
name: "sjzttx",
meta: {
name: "数据载体体系",
},
component: () => import("@/views/Knowledge/GS1System/sjzttx.vue"),
},
{
path: "/Knowledge/GS1System/sjjhtx",
name: "sjjhtx",
meta: {
name: "数据交换体系",
},
component: () => import("@/views/Knowledge/GS1System/sjjhtx.vue"),
},
]
},
{
path: "/Knowledge/TeKIndex",
name: "TeKIndex",
meta: {
name: "技术标准",
},
component: () => import("@/views/Knowledge/TeKIndex.vue"),
children:[
{
path: "/Knowledge/ANCCSystem",
name: "ANCCSystem",
meta: {
name: "国家物品编码体系",
},
component: () => import("@/views/Knowledge/ANCCSystem.vue"),
},
{
path: "/Knowledge/GS1System2",
name: "GS1System",
meta: {
name: "GS1系统",
},
component: () => import("@/views/Knowledge/GS1System2.vue"),
{
path: "/Knowledge/Standard",
name: "Standard",
meta: {
name: "标准文献",
},
component: () => import("@/views/Knowledge/Standard.vue"),
},
{
path: "/Knowledge/Glossary",
name: "Glossary",
meta: {
name: "专业术语",
},
component: () => import("@/views/Knowledge/Glossary.vue"),
},
{
path: "/Knowledge/xts",
name: "xts",
meta: {
name: "小贴士",
},
component: () => import("@/views/Knowledge/xts.vue"),
},
{
path: "/Knowledge/xts",
name: "xts",
meta: {
name: "常见问题",
},
component: () => import("@/views/Knowledge/xts.vue"),
},
]
},
{
path: "/Knowledge/GS1System/GS1System",
name: "GS1System",
meta: {
name: "概述",
},
{
path: "/Knowledge/GSBMindex",
name: "GSBMindex",
meta: {
name: "知识导航",
},
component: () => import("@/views/Knowledge/GSBMindex.vue"),
children: [
{
path: "/Knowledge/ANCCSystem",
name: "ANCCSystem",
meta: {
name: "国家物品编码体系",
},
component: () => import("@/views/Knowledge/ANCCSystem.vue"),
},
{
path: "/Knowledge/GS1System2",
name: "GS1System",
meta: {
name: "GS1系统",
},
component: () => import("@/views/Knowledge/GS1System2.vue"),
component: () => import("@/views/Knowledge/GS1System/GS1System.vue"),
},
{
path: "/Knowledge/GS1System/bmtx",
name: "bmtx",
meta: {
name: "编码体系",
},
component: () => import("@/views/Knowledge/GS1System/bmtx.vue"),
},
{
path: "/Knowledge/GS1System/sjzttx",
name: "sjzttx",
meta: {
name: "数据载体体系",
},
component: () => import("@/views/Knowledge/GS1System/sjzttx.vue"),
},
{
path: "/Knowledge/GS1System/sjjhtx",
name: "sjjhtx",
meta: {
name: "数据交换体系",
},
component: () => import("@/views/Knowledge/GS1System/sjjhtx.vue"),
},
},
{
path: "/Knowledge/GS1System/goodsGln",
name: "goodsGln",
meta: {
name: "商品条码",
},
component: () => import("@/views/Knowledge/GS1System/goodsGln.vue"),
},
{
path: "/Knowledge/GS1System/goodsEpc",
name: "goodsEpc",
meta: {
name: "产品电子代码(EPC)",
},
component: () => import("@/views/Knowledge/GS1System/goodsEpc.vue"),
},
{
path: "/Knowledge/GS1System/goodsGDS",
name: "goodsGDS",
meta: {
name: "全球数据同步(GDS)",
},
component: () => import("@/views/Knowledge/GS1System/goodsGDS.vue"),
},
{
path: "/Knowledge/GS1System/goodsPosition",
name: "goodsPosition",
meta: {
name: "全球位置编码(GLN)",
},
component: () => import("@/views/Knowledge/GS1System/goodsPosition.vue"),
},
{
path: "/Knowledge/Standard",
name: "Standard",
meta: {
name: "标准文献",
},
component: () => import("@/views/Knowledge/Standard.vue"),
},
{
path: "/Knowledge/Glossary",
name: "Glossary",
meta: {
name: "专业术语",
},
component: () => import("@/views/Knowledge/Glossary.vue"),
},
{
path: "/Knowledge/xts",
name: "xts",
meta: {
name: "小贴士",
},
component: () => import("@/views/Knowledge/xts.vue"),
},
{
path: "/Knowledge/xts",
name: "xts",
meta: {
name: "常见问题",
},
component: () => import("@/views/Knowledge/xts.vue"),
},
]
},
{
path: "/Knowledge/GSBMindex",
name: "GSBMindex",
meta: {
name: "知识导航",
},
component: () => import("@/views/Knowledge/GSBMindex.vue"),
children:[
{
path: "/Knowledge/ANCCSystem",
name: "ANCCSystem",
meta: {
name: "国家物品编码体系",
},
component: () => import("@/views/Knowledge/ANCCSystem.vue"),
},
{
path: "/Knowledge/GS1System2",
name: "GS1System",
meta: {
name: "GS1系统",
},
component: () => import("@/views/Knowledge/GS1System2.vue"),
{
path: "/Knowledge/GS1System/zxcbm",
name: "zxcbm",
meta: {
name: "自行车编码",
},
component: () => import("@/views/Knowledge/GS1System/zxcbm.vue"),
},
{
path: "/Knowledge/GS1System/dwbm",
name: "dwbm",
meta: {
name: "动物编码",
},
component: () => import("@/views/Knowledge/GS1System/dwbm.vue"),
},
{
path: "/Knowledge/GS1System/ewbm",
name: "ewbm",
meta: {
name: "二维条码",
},
component: () => import("@/views/Knowledge/GS1System/ewbm.vue"),
},
{
path: "/Knowledge/GS1System/gxfECR",
name: "gxfECR",
meta: {
name: "高效消费者响应(ECR)",
},
component: () => import("@/views/Knowledge/GS1System/gxfECR.vue"),
},
{
path: "/Knowledge/GS1System/ebxml",
name: "ebXML",
meta: {
name: "ebXML",
},
component: () => import("@/views/Knowledge/GS1System/ebxml.vue"),
},
]
},
{
path: "/Knowledge/GS1System/goodsGln",
name: "goodsGln",
meta: {
name: "商品条码",
},
{
path: "/Knowledge/Statute",
name: "Statute",
meta: {
name: "法律法规",
},
component: () => import("@/views/Knowledge/Statute.vue"),
}
component: () => import("@/views/Knowledge/GS1System/goodsGln.vue"),
},
{
path: "/Knowledge/GS1System/goodsEpc",
name: "goodsEpc",
meta: {
name: "产品电子代码(EPC)",
},
component: () => import("@/views/Knowledge/GS1System/goodsEpc.vue"),
},
{
path: "/Knowledge/GS1System/goodsGDS",
name: "goodsGDS",
meta: {
name: "全球数据同步(GDS)",
},
component: () => import("@/views/Knowledge/GS1System/goodsGDS.vue"),
},
{
path: "/Knowledge/GS1System/goodsPosition",
name: "goodsPosition",
meta: {
name: "全球位置编码(GLN)",
},
component: () => import("@/views/Knowledge/GS1System/goodsPosition.vue"),
},
{
path: "/Knowledge/GS1System/zxcbm",
name: "zxcbm",
meta: {
name: "自行车编码",
},
component: () => import("@/views/Knowledge/GS1System/zxcbm.vue"),
},
{
path: "/Knowledge/GS1System/dwbm",
name: "dwbm",
meta: {
name: "动物编码",
},
component: () => import("@/views/Knowledge/GS1System/dwbm.vue"),
},
{
path: "/Knowledge/GS1System/ewbm",
name: "ewbm",
meta: {
name: "二维条码",
},
component: () => import("@/views/Knowledge/GS1System/ewbm.vue"),
},
{
path: "/Knowledge/GS1System/gxfECR",
name: "gxfECR",
meta: {
name: "高效消费者响应(ECR)",
},
component: () => import("@/views/Knowledge/GS1System/gxfECR.vue"),
},
{
path: "/Knowledge/GS1System/ebxml",
name: "ebXML",
meta: {
name: "ebXML",
},
component: () => import("@/views/Knowledge/GS1System/ebxml.vue"),
},
]
},
{
path: "/Knowledge/Statute",
name: "Statute",
meta: {
name: "法律法规",
},
component: () => import("@/views/Knowledge/Statute.vue"),
}
],
},
......@@ -727,9 +747,9 @@ const routes = [
];
const router = new VueRouter({
mode: "history",
base: process.env.BASE_URL,
routes,
mode: "history",
base: process.env.BASE_URL,
routes,
});
export default router;
<template>
<div class="picNews">
<div class="picNews-top">
<cate :father="tpzxCate"></cate>
<div class="container">
<ul class="picNews-ul">
<li v-for="(tmp, i) in 4" :key="i">
<div class="picNews-li-tp">
<img src="../../assets/image/news/tpzx-tp1.jpg" alt="" />
</div>
<div class="picNews-li-bt">
中国物品编码中心应邀出席食品安全智慧监管研讨会
</div>
</li>
</ul>
</div>
</div>
<div class="picNews-bottom">
<div class="container">
<ul class="picNews-ul">
<li v-for="(tmp, i) in 12" :key="i">
<div class="picNews-li-tp">
<img src="../../assets/image/news/tpzx-tp1.jpg" alt="" />
</div>
<div class="picNews-li-bt">
中国物品编码中心应邀出席食品安全智慧监管研讨会
</div>
</li>
</ul>
<pages />
</div>
</div>
</div>
</template>
<script>
import cate from "../comps/cate.vue";
import pages from "../comps/pages.vue";
export default {
components: {
cate,
pages,
},
data() {
return {
tpzxCate: {
name: "图片资讯 ",
ico: "",
},
};
},
methods: {},
};
</script>
<style lang="scss">
.picNews {
@media screen and (min-width: 992px) {
.picNews-ul {
justify-content: space-between;
}
}
@media screen and (max-width: 992px) {
.picNews-ul {
justify-content: space-around;
}
}
}
</style>
<style lang="scss" scoped>
.picNews {
ul {
padding: 0;
margin: 0;
}
.picNews-ul {
display: flex;
flex-wrap: wrap;
margin-top: 30px;
li {
width: 216px;
background: #ffffff;
box-shadow: 0px 4px 15px 2px rgba(4, 64, 141, 0.08);
border-radius: 4px;
margin-bottom: 30px;
img {
width: 100%;
}
.picNews-li-bt {
width: 90%;
margin: 0 auto;
text-align: center;
color: #414345;
font-size: 14px;
padding: 14px 0;
}
}
}
.picNews-top {
@include module-box;
}
.picNews-bottom {
@include module-box;
margin-top: 30px;
}
}
</style>
\ No newline at end of file
......@@ -239,7 +239,7 @@ export default {
],
},
{
ico: require("../../assets/image/news/icon_yidongshangwudeng.png"),
ico: require("../../assets/image/news/icon_wulianwang.png"),
name: "物联网",
list: [
{
......
<template>
<div class="business container">
<breadcrumb />
<div class="row">
<div class="col-lg-3">
<left2 :list="routes" ref="left" />
</div>
<div class="col-lg-9">
<router-view class="marginTopLg20"></router-view>
</div>
</div>
</div>
</template>
<script>
import left2 from "../comps/left2.vue";
import breadcrumb from "../comps/breadcrumb.vue";
export default {
components: {
left2,
breadcrumb,
},
data() {
return {
routeList: [
{
name: "资讯中心",
path: "",
active: "",
children: [
{
name: "图片资讯",
path: "/News/PicNews",
active: "PicNews",
},
{
name: "综合报道",
path: "",
active: "",
},
{
name: "中心活动",
path: "",
active: "",
},
{
name: "地方动态",
path: "",
active: "",
},
{
name: "国际追踪",
path: "",
active: "",
},
{
name: "标准科研动态",
path: "",
active: "",
},
{
name: "行业应用",
path: "",
active: "",
},
{
name: "深度专题",
path: "",
active: "",
},
{
name: "精彩视频",
path: "",
active: "",
},
{
name: "公告通知",
path: "",
active: "",
},
],
},
{
name: "应用领域",
path: "",
active: "",
children: [
{
name: "零售",
path: "",
active: "",
},
{
name: "物流",
path: "",
active: "",
},
{
name: "医疗卫生",
path: "",
active: "",
},
{
name: "食品安全追溯",
path: "",
active: "",
},
{
name: "电子商务",
path: "",
active: "",
},
{
name: "移动商务",
path: "",
active: "",
},
{
name: "物联网",
path: "",
active: "",
},
{
name: "其他",
path: "",
active: "",
},
],
},
],
};
},
computed: {
routes() {
let newRouteList = [];
let originPath;
if (this.$route.meta.fatherPath) {
originPath = this.$route.meta.fatherPath;
} else {
originPath = this.$route.path;
}
const currentRoute = this.deepFindCurrentRoute(
this.routeList,
originPath
);
console.log(currentRoute, "currentRoute");
if (currentRoute.children && currentRoute.children.length > 0) {
newRouteList = currentRoute.children;
} else if (currentRoute.noneChild) {
const oldRouteList = JSON.parse(localStorage.getItem("newRouteList"));
newRouteList = oldRouteList;
} else {
newRouteList = this.routeList;
}
localStorage.setItem("newRouteList", JSON.stringify(newRouteList));
// newRouteList = this.deepFindRouteList(this.routeList, currentPath);
console.log(newRouteList, "newRouteListnewRouteList2");
return newRouteList;
},
},
created() {
console.log(this.$route, "this.$route");
},
methods: {
deepFindCurrentRoute(menuList, activePath) {
let current = [];
const deep = (arr, activePath) => {
for (let i = 0; i < arr.length; i += 1) {
if (
arr[i].path !== activePath &&
arr[i].children &&
arr[i].children.length > 0
) {
deep(arr[i].children, activePath);
} else if (arr[i].path === activePath) {
current = arr[i];
break;
}
if (current.length > 0) {
break;
}
}
};
deep(menuList, activePath);
return current;
},
deepFindRouteList(menuList, activePath) {
let current = [];
const deep = (arr, activePath) => {
for (let i = 0; i < arr.length; i += 1) {
if (
arr[i].link !== activePath &&
arr[i].children &&
arr[i].children.length > 0
) {
deep(arr[i].children, activePath);
} else if (arr[i].path === activePath) {
current = arr;
break;
}
if (current.length > 0) {
break;
}
}
};
deep(menuList, activePath);
return current;
},
},
};
</script>
<style lang="scss" scoped>
.business {
padding-bottom: 20px;
}
</style>
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