diff --git a/src/App.vue b/src/App.vue index 23ba612..1e3edc2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@
- + 首页 走进飞阳 新闻资讯 @@ -22,7 +22,7 @@
-

地址:福建省莆田市荔城区荔园中路西侧50米飞阳建设工程有限公司(香槟国际)

+

地址:福建省莆田市荔城区荔园中路西侧50米飞阳建设工程有限公司(香槟国际)

飞阳建筑集团 版权所有

@@ -49,7 +49,15 @@ export default{ data(){ return{ isScrolled:false, - activeIndex:'1' + activeIndex:'1', + routerlist:{ + '1':'/', + '2':'/aboutus', + '3':'/news', + '4':'/project', + '5':'/recruit', + '6':'/contactus' + } } }, mounted() { @@ -61,6 +69,14 @@ export default{ window.removeEventListener('scroll', this.handleScroll); }, methods: { + switchto(index){ + if(location.pathname==this.routerlist[index]){ + return + } +this.$router.push({ + path:this.routerlist[index] +}) + }, handleScroll() { // 获取滚动条位置 const scrollPosition = window.scrollY; diff --git a/src/assets/global.css b/src/assets/global.css index 09fe1d1..eadf5f3 100644 --- a/src/assets/global.css +++ b/src/assets/global.css @@ -2,6 +2,3 @@ body,html{ margin: 0; padding: 0; } -body{ - padding-top: 581px; -} \ No newline at end of file diff --git a/src/assets/images/banner.png b/src/assets/images/banner.png new file mode 100644 index 0000000..23e16fb Binary files /dev/null and b/src/assets/images/banner.png differ diff --git a/src/assets/images/bg.png b/src/assets/images/bg.png new file mode 100644 index 0000000..b09698e Binary files /dev/null and b/src/assets/images/bg.png differ diff --git a/src/assets/images/cantactus.png b/src/assets/images/cantactus.png new file mode 100644 index 0000000..5d151f1 Binary files /dev/null and b/src/assets/images/cantactus.png differ diff --git a/src/assets/images/com-logo.png b/src/assets/images/com-logo.png new file mode 100644 index 0000000..a4ee8ca Binary files /dev/null and b/src/assets/images/com-logo.png differ diff --git a/src/assets/images/map.png b/src/assets/images/map.png new file mode 100644 index 0000000..ed5cacf Binary files /dev/null and b/src/assets/images/map.png differ diff --git a/src/assets/images/news1.png b/src/assets/images/news1.png new file mode 100644 index 0000000..7295eae Binary files /dev/null and b/src/assets/images/news1.png differ diff --git a/src/assets/images/news2.png b/src/assets/images/news2.png new file mode 100644 index 0000000..5bc3993 Binary files /dev/null and b/src/assets/images/news2.png differ diff --git a/src/assets/images/news3.png b/src/assets/images/news3.png new file mode 100644 index 0000000..e5e5702 Binary files /dev/null and b/src/assets/images/news3.png differ diff --git a/src/assets/images/project1.png b/src/assets/images/project1.png new file mode 100644 index 0000000..d684ca2 Binary files /dev/null and b/src/assets/images/project1.png differ diff --git a/src/assets/images/project2.png b/src/assets/images/project2.png new file mode 100644 index 0000000..4758c67 Binary files /dev/null and b/src/assets/images/project2.png differ diff --git a/src/assets/images/project3.png b/src/assets/images/project3.png new file mode 100644 index 0000000..cc7de29 Binary files /dev/null and b/src/assets/images/project3.png differ diff --git a/src/assets/images/project4.png b/src/assets/images/project4.png new file mode 100644 index 0000000..b2be7c8 Binary files /dev/null and b/src/assets/images/project4.png differ diff --git a/src/assets/images/project5.png b/src/assets/images/project5.png new file mode 100644 index 0000000..5199e92 Binary files /dev/null and b/src/assets/images/project5.png differ diff --git a/src/assets/images/project6.png b/src/assets/images/project6.png new file mode 100644 index 0000000..7e28ce1 Binary files /dev/null and b/src/assets/images/project6.png differ diff --git a/src/assets/images/project7.png b/src/assets/images/project7.png new file mode 100644 index 0000000..4a05ee8 Binary files /dev/null and b/src/assets/images/project7.png differ diff --git a/src/assets/images/project8.png b/src/assets/images/project8.png new file mode 100644 index 0000000..d2033f7 Binary files /dev/null and b/src/assets/images/project8.png differ diff --git a/src/assets/images/project9.png b/src/assets/images/project9.png new file mode 100644 index 0000000..7e0198a Binary files /dev/null and b/src/assets/images/project9.png differ diff --git a/src/assets/images/weixin.png b/src/assets/images/weixin.png new file mode 100644 index 0000000..296e375 Binary files /dev/null and b/src/assets/images/weixin.png differ diff --git a/src/assets/images/人才招聘.png b/src/assets/images/人才招聘.png new file mode 100644 index 0000000..0fdd23f Binary files /dev/null and b/src/assets/images/人才招聘.png differ diff --git a/src/assets/images/公司简介背景.png b/src/assets/images/公司简介背景.png new file mode 100644 index 0000000..1c6c7c4 Binary files /dev/null and b/src/assets/images/公司简介背景.png differ diff --git a/src/assets/images/留言图标.png b/src/assets/images/留言图标.png new file mode 100644 index 0000000..1179b65 Binary files /dev/null and b/src/assets/images/留言图标.png differ diff --git a/src/router/index.js b/src/router/index.js index 9c85329..68bead2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,7 +1,11 @@ import Vue from 'vue' import VueRouter from 'vue-router' import HomeView from '../views/HomeView.vue' - +import aboutus from '../views/aboutus.vue' +import news from '@/views/news.vue' +import project from '@/views/project.vue' +import recruit from '@/views/recruit.vue' +import contactus from '@/views/contactus.vue' Vue.use(VueRouter) const routes = [ @@ -11,14 +15,25 @@ const routes = [ component: HomeView }, { - path: '/about', - name: 'about', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: function () { - return import(/* webpackChunkName: "about" */ '../views/AboutView.vue') - } + path:'/aboutus', + name:'aboutus', + component:aboutus + }, + { + path:'/news', + component:news + }, + { + path:'/project', + component:project + }, + { + path:'/recruit', + component:recruit + }, + { + path:'/contactus', + component:contactus } ] diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index b70de28..7b9928c 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,5 +1,5 @@