Commit a8d68978 authored by 徐一鸣's avatar 徐一鸣

更新首页

parent 75f53087
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
v-for="(item, index) in menu_arr" v-for="(item, index) in menu_arr"
:key="index + 200" :key="index + 200"
class="menu_box user_hover" class="menu_box user_hover"
@click="now_menu = index" @click="navAction(index, item.path)"
:style="{ color: now_menu == index ? '#fff' : '' }" :style="{ color: now_menu == index ? '#fff' : '' }"
> >
{{ item.name }} {{ item.name }}
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
}, },
{ {
name: "技术支持", name: "技术支持",
path: "", path: "/xxx",
}, },
{ {
name: "服务超市", name: "服务超市",
...@@ -198,6 +198,10 @@ export default { ...@@ -198,6 +198,10 @@ export default {
getDetail() { getDetail() {
// if you want goto detail page, you should give me the type at first // if you want goto detail page, you should give me the type at first
}, },
navAction(index, path) {
this.$router.push(path);
this.now_menu = index;
},
gotoChildPage(v) { gotoChildPage(v) {
if (v.path) { if (v.path) {
this.$router.push(v.path); this.$router.push(v.path);
......
...@@ -36,7 +36,7 @@ export default new Router({ ...@@ -36,7 +36,7 @@ export default new Router({
component: () => import("@/pages/fwzc_fwcs"), component: () => import("@/pages/fwzc_fwcs"),
}, },
], ],
}, }, // 工作台 - 服务注册模块
{ {
path: "/fwgl/:level", // 服务管理 level:用户等级 path: "/fwgl/:level", // 服务管理 level:用户等级
name: "fwgl", name: "fwgl",
...@@ -69,7 +69,7 @@ export default new Router({ ...@@ -69,7 +69,7 @@ export default new Router({
component: () => import("@/pages/approval_service_detail"), component: () => import("@/pages/approval_service_detail"),
}, // 审批的服务 - 详情 }, // 审批的服务 - 详情
], ],
}, }, // 工作台 - 服务管理模块
{ {
path: "/shop", // 服务超市 path: "/shop", // 服务超市
name: "shop", name: "shop",
...@@ -117,37 +117,37 @@ export default new Router({ ...@@ -117,37 +117,37 @@ export default new Router({
component: () => import("@/pages/shopping_cart"), component: () => import("@/pages/shopping_cart"),
}, },
], ],
}, }, // 服务超市 - 列表页
{ {
path: "/shop/sjfwDetail/:id", path: "/shop/sjfwDetail/:id",
name: "sjfwDetail", name: "sjfwDetail",
component: () => import("@/pages/sjfwDetail"), component: () => import("@/pages/sjfwDetail"),
}, // 数据服务详情 }, // 服务超市 - 数据服务详情
{ {
path: "/shop/skfwDetail/:id", path: "/shop/skfwDetail/:id",
name: "skfwDetail", name: "skfwDetail",
component: () => import("@/pages/skfwDetail"), component: () => import("@/pages/skfwDetail"),
}, // 时空服务详情 }, // 服务超市 - 时空服务详情
{ {
path: "/shop/zhyyfwDetail/:id", path: "/shop/zhyyfwDetail/:id",
name: "zhyyfwDetail", name: "zhyyfwDetail",
component: () => import("@/pages/zhyyfwDetail"), component: () => import("@/pages/zhyyfwDetail"),
}, // 综合应用服务详情 }, // 服务超市 - 综合应用服务详情
{ {
path: "/shop/yysdDetail/:id", path: "/shop/yysdDetail/:id",
name: "yysdDetail", name: "yysdDetail",
component: () => import("@/pages/yysdDetail"), component: () => import("@/pages/yysdDetail"),
}, // 应用详情 }, // 服务超市 - 应用详情
{ {
path: "/workplace", path: "/workplace",
name: "workPlace", name: "workPlace",
component: () => import("@/pages/workPlace"), component: () => import("@/pages/workPlace"),
}, }, // 主页 - 工作台
{ {
path: "/services_shop", path: "/services_shop",
name: "services_shop", name: "services_shop",
component: () => import("@/pages/services_shop"), component: () => import("@/pages/services_shop"),
}, }, // 主页 - 服务超市
], ],
}, },
{ {
......
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