diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..c2bae49 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..b8387eb --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 08fce59..9273e5c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,52 @@ + + diff --git a/src/main.js b/src/main.js index 507a449..702e4ca 100644 --- a/src/main.js +++ b/src/main.js @@ -1,10 +1,10 @@ import Vue from 'vue'; import App from './App'; -import { router } from './router'; +import {router} from './router'; import './style/index.less'; new Vue({ - router, - el: '#app', - render: h => h(App) + router, + el: '#app', + render: h => h(App) }); diff --git a/src/router.js b/src/router.js index 331f0d2..c7257ba 100644 --- a/src/router.js +++ b/src/router.js @@ -6,36 +6,22 @@ Vue.use(Router); const routes = [ { path: '*', - redirect: '/nav' + redirect: '/' }, { - name: 'nav', + name: '/', component: () => import('./view/nav'), meta: { - title: '会员中心' + title: '主页' } }, { - name: 'user', - component: () => import('./view/user'), + name: 'set', + component: () => import('./view/set'), meta: { - title: '会员中心' + title: '设置中心' } }, - { - name: 'cart', - component: () => import('./view/cart'), - meta: { - title: '购物车' - } - }, - { - name: 'goods', - component: () => import('./view/goods'), - meta: { - title: '商品详情' - } - } ]; // add route path diff --git a/src/view/cart/index.vue b/src/view/cart/index.vue deleted file mode 100644 index 5bbf6fe..0000000 --- a/src/view/cart/index.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - diff --git a/src/view/goods/index.vue b/src/view/goods/index.vue deleted file mode 100644 index 1d46764..0000000 --- a/src/view/goods/index.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - - - diff --git a/src/view/nav/index.vue b/src/view/nav/index.vue index a671fcc..f412c69 100644 --- a/src/view/nav/index.vue +++ b/src/view/nav/index.vue @@ -1,12 +1,12 @@