<template>
	<view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
		<cus-header title='填写所在团队信息'></cus-header>
		<cus-team-info-fill @handleConfirm="handleConfirm" :confirmText="confirmText"></cus-team-info-fill>
	</view>
</template>

<script>
	import CusTeamInfoFill from '@/components/CusTeamInfoFill/index.vue'
	export default {
		components:{ CusTeamInfoFill },
		data(){
			return {
				type:'',
				confirmText:'下一步'
			}
		},
		onLoad(options) {
			this.type = options.type||''
			this.confirmText = options.type?'确定':'下一步'
		},
		methods:{
			handleConfirm(){
				if(!this.type){
					uni.navigateTo({
						url:'/pagesPublish/questionnaireFill'
					})				
				}else{
					this.getOpenerEventChannel().emit('saveTeamInfo',111)
					uni.navigateBack()
				} 
			}
		}
	}
</script>

<style scoped lang="scss">
	.default_page{
		box-sizing: border-box;
	}
</style>