<template>
  <view>
    <scroll-view direction="vertical"></scroll-view>
    <cs-bottom-wrapper>
      <view class="operation">
        <button class="btn green" @tap="addEnterprise">新增企业</button>
      </view>
    </cs-bottom-wrapper>
  </view>
</template>

<script>
export default {
  data() {
    return {
      inviteId: ''
    }
  },
  onLoad(res) {
    console.log(res)
    if (res.inviteId) {
      this.inviteId = res.inviteId
    }
  },
  methods: {
    addEnterprise() {
      uni.navigateTo({
        url: `/sub/invite/addEnterprise?inviteId=${this.inviteId}`
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.operation {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  .btn {
    flex: 1;
    border-radius: 8px;
    display: flex;
    padding: 12px 0;
    align-items: center;
    justify-content: center;
  }
  .green {
    background-color: $cs-color-main;
    color: #fff;
  }
}
</style>
