diff --git a/src/api/index.js b/src/api/index.js index c1511fe..65b90f8 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -71,4 +71,11 @@ export function message(params) { method: 'post', data: params }) +} +//工程详情 +export function projectdetail(params){ + return request({ + url:'/engineering/details', + params + }) } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 9462fa3..80cfd96 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,6 +7,7 @@ import project from '@/views/project.vue' import recruit from '@/views/recruit.vue' import contactus from '@/views/contactus.vue' import detail from '@/views/detail.vue' +import projectdetail from '@/views/projectdetail.vue' Vue.use(VueRouter) const routes = [ @@ -39,6 +40,10 @@ const routes = [ { path:'/detail', component:detail + }, + { + path:'/projectdetail', + component:projectdetail } ] diff --git a/src/views/project.vue b/src/views/project.vue index 1ca851c..9b73c70 100644 --- a/src/views/project.vue +++ b/src/views/project.vue @@ -24,7 +24,7 @@
{{item.name}}
MORE...
+{{item.name}}
MORE...