46 lines
		
	
	
		
			694 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			694 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div class="AppCountryAlbum">
 | 
						|
    <component
 | 
						|
        :is="component"
 | 
						|
        @change="onChange"
 | 
						|
        :params="params">
 | 
						|
    </component>
 | 
						|
  </div>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import Detail from './detail'
 | 
						|
import List from './list'
 | 
						|
 | 
						|
export default {
 | 
						|
  name: 'AppCountryAlbum',
 | 
						|
  appName: '乡村相册',
 | 
						|
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      component: 'List',
 | 
						|
      params: {}
 | 
						|
    }
 | 
						|
  },
 | 
						|
 | 
						|
  components: { Detail, List },
 | 
						|
  onShow() {
 | 
						|
    document.title = "乡村相册"
 | 
						|
  },
 | 
						|
  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> |