<template>
  <div class="AppCountryAlbum">
    <component
        :is="component"
        @change="onChange"
        :params="params">
    </component>
  </div>
</template>

<script>
import Detail from './components/detail'
import List from './components/list'

export default {
  name: 'AppCountryAlbum',
  appName: '乡村相册',

  data() {
    return {
      component: 'List',
      params: {}
    }
  },

  components: { Detail, List },

  methods: {
    onChange(e) {
      this.params = e.params
      this.component = e.type
    }
  },
}
</script>

<style lang="scss" scoped>
uni-page-body{
  height: 100%;
}
.AppCountryAlbum{
  height: 100%;
}
</style>