许成详 6 years ago
parent
commit
3cc13eaa45

+ 0
- 53
src/components/Hello/Hello.vue View File

@@ -1,53 +0,0 @@
1
-<template>
2
-  <div class="hello">
3
-    <h1>{{ msg }}</h1>
4
-    <h2>Essential Links</h2>
5
-    <ul>
6
-      <li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
7
-      <li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
8
-      <li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li>
9
-      <li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
10
-      <br>
11
-      <li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li>
12
-    </ul>
13
-    <h2>Ecosystem</h2>
14
-    <ul>
15
-      <li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li>
16
-      <li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li>
17
-      <li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li>
18
-      <li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
19
-    </ul>
20
-  </div>
21
-</template>
22
-
23
-<script>
24
-export default {
25
-  name: 'hello',
26
-  data () {
27
-    return {
28
-      msg: 'Welcome to Your Vue.js App'
29
-    }
30
-  }
31
-}
32
-</script>
33
-
34
-<!-- Add "scoped" attribute to limit CSS to this component only -->
35
-<style scoped>
36
-h1, h2 {
37
-  font-weight: normal;
38
-}
39
-
40
-ul {
41
-  list-style-type: none;
42
-  padding: 0;
43
-}
44
-
45
-li {
46
-  display: inline-block;
47
-  margin: 0 10px;
48
-}
49
-
50
-a {
51
-  color: #42b983;
52
-}
53
-</style>

+ 0
- 29
src/module/detail/App.vue View File

@@ -1,29 +0,0 @@
1
-<template>
2
-  <div id="app">
3
-    <img src="./images/logo.png">
4
-    <div>详情内容</div>
5
-  </div>
6
-</template>
7
-
8
-<script>
9
-  import 'common/css/reset.css';
10
-  import Hello from 'components/Hello/Hello'
11
-
12
-  export default {
13
-    name: 'app',
14
-    components: {
15
-      Hello
16
-    }
17
-  }
18
-</script>
19
-
20
-<style>
21
-  #app {
22
-    font-family: 'Avenir', Helvetica, Arial, sans-serif;
23
-    -webkit-font-smoothing: antialiased;
24
-    -moz-osx-font-smoothing: grayscale;
25
-    text-align: center;
26
-    color: #2c3e50;
27
-    margin-top: 60px;
28
-  }
29
-</style>

+ 0
- 11
src/module/detail/detail.html View File

@@ -1,11 +0,0 @@
1
-<!DOCTYPE html>
2
-<html>
3
-<head>
4
-  <meta charset="utf-8">
5
-  <title>detail</title>
6
-</head>
7
-<body>
8
-<div id="app"></div>
9
-<!-- built files will be auto injected -->
10
-</body>
11
-</html>

+ 0
- 9
src/module/detail/detail.js View File

@@ -1,9 +0,0 @@
1
-import Vue from 'vue'
2
-import App from './App'
3
-
4
-/* eslint-disable no-new */
5
-new Vue({
6
-  el: '#app',
7
-  template: '<App/>',
8
-  components: { App }
9
-})

BIN
src/module/detail/images/logo.png View File


+ 1
- 1
src/module/index.html View File

@@ -6,7 +6,7 @@
6 6
 </head>
7 7
 <body>
8 8
     <script>
9
-        location.href = "module/index.html";
9
+        location.href = "module/sales.html";
10 10
     </script>
11 11
 </body>
12 12
 </html>

+ 6
- 15
src/module/sales/App.vue View File

@@ -1,29 +1,20 @@
1 1
 <template>
2
-  <div id="app">
3
-    <img src="./images/logo.png">
4
-    <div>销售端1</div>
5
-  </div>
2
+  <div id="app"></div>
6 3
 </template>
7 4
 
8 5
 <script>
9
-  import 'common/css/reset.css';
10
-  import Hello from 'components/Hello/Hello'
6
+  import 'common/css/reset.css'
11 7
 
12 8
   export default {
13 9
     name: 'app',
14
-    components: {
15
-      Hello
16
-    }
10
+    components: {}
17 11
   }
18 12
 </script>
19 13
 
20 14
 <style>
21 15
   #app {
22
-    font-family: 'Avenir', Helvetica, Arial, sans-serif;
23
-    -webkit-font-smoothing: antialiased;
24
-    -moz-osx-font-smoothing: grayscale;
25
-    text-align: center;
26
-    color: #2c3e50;
27
-    margin-top: 60px;
16
+    width: 100%;
17
+    height: 100%;
18
+    position: relative;
28 19
   }
29 20
 </style>

BIN
src/module/sales/images/logo.png View File


+ 6
- 15
src/module/user/App.vue View File

@@ -1,29 +1,20 @@
1 1
 <template>
2
-  <div id="app">
3
-    <img src="./images/logo.png">
4
-    <hello></hello>
5
-  </div>
2
+  <div id="app"></div>
6 3
 </template>
7 4
 
8 5
 <script>
9
-  import 'common/css/reset.css';
10
-  import Hello from 'components/Hello/Hello'
6
+  import 'common/css/reset.css'
11 7
 
12 8
   export default {
13 9
     name: 'app',
14
-    components: {
15
-      Hello
16
-    }
10
+    components: {}
17 11
   }
18 12
 </script>
19 13
 
20 14
 <style>
21 15
   #app {
22
-    font-family: 'Avenir', Helvetica, Arial, sans-serif;
23
-    -webkit-font-smoothing: antialiased;
24
-    -moz-osx-font-smoothing: grayscale;
25
-    text-align: center;
26
-    color: #2c3e50;
27
-    margin-top: 60px;
16
+    width: 100%;
17
+    height: 100%;
18
+    position: relative;
28 19
   }
29 20
 </style>

BIN
src/module/user/images/logo.png View File