2021-12-21 15:41:51 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="AppMailList">
|
|
|
|
|
<component
|
|
|
|
|
:is="component"
|
|
|
|
|
@change="onChange"
|
|
|
|
|
:params="params">
|
|
|
|
|
</component>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2021-12-22 19:11:23 +08:00
|
|
|
import Add from './add'
|
|
|
|
|
import List from './list'
|
|
|
|
|
import MyAddList from './myAddList'
|
2021-12-21 15:41:51 +08:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'AppMailList',
|
|
|
|
|
appName: '便民通讯录',
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
component: 'List',
|
|
|
|
|
params: {}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: { Add, List , MyAddList},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
onChange(e) {
|
|
|
|
|
this.params = e.params
|
|
|
|
|
this.component = e.type
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
uni-page-body{
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
.AppMailList{
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|