Files
dvcp_v2_wxcp_app/src/project/saas/AppCountryAlbum/AppCountryAlbum.vue

46 lines
742 B
Vue
Raw Normal View History

2022-03-08 10:35:29 +08:00
<template>
<div class="form">
<component ref="TabPage" :is="component" @change="onChange" :params="params"/>
</div>
</template>
<script>
import Tabbar from './components/Tabbar.vue'
import { mapActions } from "vuex"
export default {
name: 'AppCountryAlbum',
2022-05-30 14:15:15 +08:00
appName: '工作相册',
2022-03-08 10:35:29 +08:00
data() {
return {
component: 'Tabbar',
params: {}
}
},
components: {
Tabbar
},
methods: {
...mapActions(['injectJWeixin']),
onChange(e) {
this.params = e.params
this.component = e.type
}
},
onShow() {
2022-05-30 15:45:02 +08:00
this.$refs?.TabPage?.show()
2022-03-08 10:35:29 +08:00
this.$nextTick(() => {
2022-06-15 18:05:38 +08:00
this.injectJWeixin(['getLocation', 'previewImage'])
2022-03-08 10:35:29 +08:00
})
}
}
</script>
<style lang="scss" scoped>
</style>