Files
dvcp_v2_wxcp_app/src/apps/AppBuilding/AppBuilding.vue

52 lines
806 B
Vue
Raw Normal View History

2021-12-15 18:07:16 +08:00
<template>
<div class="AppBuilding">
<component
:is="component"
@change="onChange"
:params="params">
</component>
</div>
</template>
<script>
2021-12-23 16:42:14 +08:00
import Detail from './detail'
import Add from './add'
import List from './list'
2021-12-16 11:18:39 +08:00
import SearchMap from './components/searchMap'
2021-12-23 16:42:14 +08:00
import Map from './map'
2021-12-15 18:07:16 +08:00
export default {
name: 'AppBuilding',
appName: '以房找人',
data() {
return {
2021-12-20 09:35:52 +08:00
component: 'SearchMap',
2021-12-15 18:07:16 +08:00
params: {}
}
},
2021-12-23 17:17:41 +08:00
components: {Detail, Add, List, SearchMap, Map},
2021-12-15 18:07:16 +08:00
methods: {
onChange(e) {
this.params = e.params
this.component = e.type
}
},
2021-12-23 17:17:41 +08:00
mounted() {
document.title = "以房找人"
}
2021-12-15 18:07:16 +08:00
}
</script>
<style lang="scss" scoped>
2021-12-23 17:17:41 +08:00
uni-page-body {
2021-12-15 18:07:16 +08:00
height: 100%;
}
2021-12-23 17:17:41 +08:00
.AppBuilding {
2021-12-15 18:07:16 +08:00
height: 100%;
}
2021-12-23 16:42:14 +08:00
</style>