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
d9f3ac5
commit 26fc02d
Showing
19 changed files
with
183 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"value": "", | ||
"label": "全部", | ||
"client": ["std", "origin"] | ||
}, | ||
{ | ||
"value": 1, | ||
"label": "成男", | ||
"client": ["std", "origin"] | ||
}, | ||
{ | ||
"value": 2, | ||
"label": "成女", | ||
"client": ["std", "origin"] | ||
}, | ||
{ | ||
"value": 5, | ||
"label": "正太", | ||
"client": ["std"] | ||
}, | ||
{ | ||
"value": 6, | ||
"label": "萝莉", | ||
"client": ["std", "origin"] | ||
} | ||
] |
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
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
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
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,27 @@ | ||
Vue.config.productionTip = false; | ||
|
||
// 第三方UI组件 | ||
import Vue from "vue"; | ||
import ElementUI from "element-ui"; | ||
Vue.use(ElementUI); | ||
|
||
// 通用UI模块 | ||
import JX3BOX_UI from '@jx3box/jx3box-common-ui' | ||
import "@jx3box/jx3box-common/css/element.css"; | ||
import "@jx3box/jx3box-common/css/normalize.css"; | ||
Vue.use(JX3BOX_UI); | ||
|
||
import reporter from "@jx3box/jx3box-common/js/reporter"; | ||
reporter.install(Vue); | ||
|
||
// 数据与路由 | ||
import router from "../router/body"; | ||
import store from "../store"; | ||
|
||
import App from "@/views/body/Body.vue"; | ||
new Vue({ | ||
router, | ||
store, | ||
render: h => h(App), | ||
}).$mount("#app"); | ||
|
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,48 @@ | ||
<template> | ||
<div></div> | ||
<div class="m-body-list"> | ||
<faceTabs | ||
@change="handleTabChange" | ||
:body_types="body_types" | ||
:link="link" | ||
:active="active" | ||
@setActive="setActive" | ||
/> | ||
</div> | ||
</template> | ||
<script> | ||
import faceTabs from "@/components/face/tabs"; | ||
import body_types from "@/assets/data/body_types.json"; | ||
export default { | ||
name: "BodyList", | ||
data: function () { | ||
return {}; | ||
return { | ||
body_types, | ||
active: "", | ||
list: [], | ||
tabsData: {}, | ||
page: 1, | ||
pageTotal: 1, | ||
total: 0, | ||
showAllList: false, | ||
link: { | ||
data: "/body/bodydata", | ||
key: "body", | ||
}, | ||
}; | ||
}, | ||
components: { | ||
faceTabs, | ||
}, | ||
computed: {}, | ||
methods: {}, | ||
methods: { | ||
handleTabChange: function (data) { | ||
this.page = 1; | ||
this.tabsData = data; | ||
}, | ||
setActive(val) { | ||
this.active = val; | ||
document.documentElement.scrollTop = 0; | ||
}, | ||
}, | ||
}; | ||
</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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<template> | ||
<div></div> | ||
<div class="">22222222222</div> | ||
</template> | ||
<script> | ||
export default { | ||
|
Oops, something went wrong.