Browse Source

Merge branch 'master' of http://git.cc-lotus.info/smart-center/web-altai

xiejiacheng 5 years ago
parent
commit
4b87fad91b
6 changed files with 113 additions and 3 deletions
  1. 1 1
      public/index.html
  2. 24 2
      src/router/index.js
  3. 22 0
      src/views/info.vue
  4. 22 0
      src/views/natural.vue
  5. 22 0
      src/views/service.vue
  6. 22 0
      src/views/train.vue

+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <title>web-altai</title>
+    <title>阿拉泰</title>
   </head>
   <body>
     <noscript>

+ 24 - 2
src/router/index.js

@@ -1,8 +1,10 @@
 import Vue from 'vue';
 import Router from 'vue-router';
-
+const originalPush = Router.prototype.push;
+Router.prototype.push = function push(location) {
+  return originalPush.call(this, location).catch(err => err);
+};
 Vue.use(Router);
-
 export default new Router({
   routes: [
     {
@@ -10,5 +12,25 @@ export default new Router({
       name: 'index',
       component: () => import('../views/index.vue'),
     },
+    {
+      path: '/info',
+      name: 'info',
+      component: () => import('../views/info.vue'),
+    },
+    {
+      path: '/train',
+      name: 'train',
+      component: () => import('../views/train.vue'),
+    },
+    {
+      path: '/natural',
+      name: 'natural',
+      component: () => import('../views/natural.vue'),
+    },
+    {
+      path: '/service',
+      name: 'service',
+      component: () => import('../views/service.vue'),
+    },
   ],
 });

+ 22 - 0
src/views/info.vue

@@ -0,0 +1,22 @@
+<template>
+  <div id="info">
+    <infoDetail></infoDetail>
+  </div>
+</template>
+
+<script>
+import infoDetail from '@publics/src/views/altai/info.vue';
+export default {
+  name: 'info',
+  props: {},
+  components: {
+    infoDetail,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 22 - 0
src/views/natural.vue

@@ -0,0 +1,22 @@
+<template>
+  <div id="natural">
+    <naturalDetail></naturalDetail>
+  </div>
+</template>
+
+<script>
+import naturalDetail from '@publics/src/views/altai/natural.vue';
+export default {
+  name: 'natural',
+  props: {},
+  components: {
+    naturalDetail,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 22 - 0
src/views/service.vue

@@ -0,0 +1,22 @@
+<template>
+  <div id="service">
+    <serviceDetail></serviceDetail>
+  </div>
+</template>
+
+<script>
+import serviceDetail from '@publics/src/views/altai/service.vue';
+export default {
+  name: 'service',
+  props: {},
+  components: {
+    serviceDetail,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>

+ 22 - 0
src/views/train.vue

@@ -0,0 +1,22 @@
+<template>
+  <div id="train">
+    <trainDetail></trainDetail>
+  </div>
+</template>
+
+<script>
+import trainDetail from '@publics/src/views/altai/train.vue';
+export default {
+  name: 'train',
+  props: {},
+  components: {
+    trainDetail,
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>