fillTeamInfo.vue 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='填写所在团队信息'></cus-header>
  4. <cus-team-info-fill @handleConfirm="handleConfirm" :confirmText="confirmText"></cus-team-info-fill>
  5. </view>
  6. </template>
  7. <script>
  8. import CusTeamInfoFill from '@/components/CusTeamInfoFill/index.vue'
  9. export default {
  10. components:{ CusTeamInfoFill },
  11. data(){
  12. return {
  13. type:'',
  14. confirmText:'下一步'
  15. }
  16. },
  17. onLoad(options) {
  18. this.type = options.type||''
  19. this.confirmText = options.type?'确定':'下一步'
  20. },
  21. methods:{
  22. handleConfirm(){
  23. if(!this.type){
  24. uni.navigateTo({
  25. url:'/pagesPublish/questionnaireFill'
  26. })
  27. }else{
  28. this.getOpenerEventChannel().emit('saveTeamInfo',111)
  29. uni.navigateBack()
  30. }
  31. }
  32. }
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .default_page{
  37. box-sizing: border-box;
  38. }
  39. </style>