Commit 30218862 by Lyan

专题添加

parent 8baa4f22
......@@ -13,7 +13,7 @@
<script src="/bootstrap/jquery.slim.min.js" ></script>
<script src="/bootstrap/popper.min.js" ></script>
<script src="/bootstrap/bootstrap.min.js" ></script>
<script src="libs/grayscale.js"></script>
<script src="/libs/grayscale.js"></script>
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
<title>中国物品编码中心</title>
</head>
......
......@@ -84,12 +84,13 @@ import moment from 'moment';
Vue.prototype.$moment = moment;
Vue.config.productionTip = false;
const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
const Prefix2 = process.env.NODE_ENV === 'development' ? '/gs1' : process.env.VUE_APP_API_URL;
router.beforeEach((to, from, next) => {
axios.post(Prefix+"/office/websitehitcountdetail/api/save", {
axios.post(Prefix2+"/office/websitehitcountdetail/api/save", {
route: to.fullPath
}).then(res => {
})
})
NProgress.start();
const whiteList = ["/404"];
if (
......
......@@ -1570,6 +1570,7 @@ const routes = [
redirect: "/404",
},
//英文版本
{
path: "/EnglishHome",
......@@ -1710,7 +1711,97 @@ const routes = [
},
}
]
}
},
// 专题start
{
path: "/News/topic/topicFive",
name: "315topic",
meta: {
name: "2016年'3·15'物品编码活动专题",
},
component: () => import("@/views/topic/topicFive"),
},
{
path: "/News/topic/xiangma",
name: "xiangma",
meta: {
name: "箱码专题",
},
component: () => import("@/views/topic/xiangma"),
},
{
path: "/News/topic/zlyTopic",
name: 'zlyTopic',
meta: {
name: "2016年全国“质量月”活动专题",
},
component: () => import("@/views/topic/zlyTopic"),
},
{
path: "/News/topic/syssTopic",
name: 'syssTopic',
meta: {
name: "开展“两学一做”专题教育",
},
component: () => import("@/views/topic/syssTopic"),
},
{
path: "/News/topic/abouttsd",
name: 'abouttsd',
meta: {
name: "可信数据源",
},
component: () => import("@/views/topic/abouttsd"),
},
{
path: "/News/topic/zly2013",
name: 'zly2013',
meta: {
name: "2013年全国“质量月”活动",
},
component: () => import("@/views/topic/zly2013"),
},
{
path: "/News/topic/zly2014315",
name: 'zly2014315',
meta: {
name: "2014年3·15活动专题",
},
component: () => import("@/views/topic/zly2014315"),
},
{
path: "/News/topic/2014zly",
name: '2014zly',
meta: {
name: "2014年“质量月”专题",
},
component: () => import("@/views/topic/2014zly"),
},
{
path: "/News/topic/2015315Topic",
name: '2015315Topic',
meta: {
name: "2015年“315”专题",
},
component: () => import("@/views/topic/2015315Topic"),
},
{
path: "/News/topic/zly2015",
name: 'zly2015',
meta: {
name: "2015年“质量月”专题",
},
component: () => import("@/views/topic/zly2015"),
},
{
path: "/News/topic/2017zly",
name: '2017zly',
meta: {
name: "2017年“质量月”专题",
},
component: () => import("@/views/topic/2017zly"),
},
// 专题end
];
const router = new VueRouter({
strict:false,
......
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