generated from JX3BOX/jx3box-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9ac02e
commit d9f3ac5
Showing
7 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Vue from "vue"; | ||
import VueRouter from "vue-router"; | ||
Vue.use(VueRouter); | ||
|
||
const bodyList = () => import("../views/body/List.vue"); | ||
const bodySingle = () => import("../views/body/Single.vue"); | ||
const bodyData = () => import("../views/body/Parse.vue"); | ||
|
||
const routes = [ | ||
{ name: "bodyList", path: "/", component: bodyList }, | ||
{ name: "bodySingle", path: "/:id(\\d+)", component: bodySingle }, | ||
{ name: "bodyData", path: "/bodydata", component: bodyData }, | ||
]; | ||
|
||
const router = new VueRouter({ | ||
mode: "history", | ||
base: "/body", | ||
routes, | ||
}); | ||
|
||
export default router; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div id="app" class="p-body"> | ||
<Header></Header> | ||
<Nav @statusChange="statusChange"></Nav> | ||
<Main :class="navStatusClass" :withoutRight="true"> | ||
<div class="m-main"><router-view></router-view></div> | ||
</Main> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Nav from "@/components/Nav_v3.vue"; | ||
export default { | ||
name: "Body", | ||
components: { Nav }, | ||
data: function () { | ||
return {}; | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
<script> | ||
export default { | ||
name: "BodyList", | ||
data: function () { | ||
return {}; | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<div class="m-body-parse" :class="{ on: done }"> | ||
<h1 class="m-body-parse-title">体型数据解析器</h1> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "BodyDataParse", | ||
data: function () { | ||
return {}; | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
<script> | ||
export default { | ||
name: "BodySingle", | ||
data: function () { | ||
return {}; | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
}; | ||
</script> |