<template>
  <cs-page title="邀请企业" @goback="goback">
    <button open-type="share">邀请企业</button>
  </cs-page>
</template>

<script>
import { getQrcode } from '@/api/common/wxApi.js'
export default {
  data() {
    return {}
  },
  onLoad(res) {
    console.log('invite', res)
    // getQrcode({
    //   data: {
    //     page: 'pages/login',
    //     scene: `invateId=${this.$store.getters.userId}`
    //   }
    // }).then(res => {
    //   console.log(res)
    // })
  },
  onShareAppMessage() {
    return {
      title: '邀请企业入驻',
      path: `/pages/login?inviteId=${this.$store.getters.userId}`,
      imageUrl:
        'https://hb.jzce.com/fx_qyrz.png'
    }
  },
  onShareTimeline() {
    return {
      title: '邀请企业入驻', // 标题
      path: `/pages/login?inviteId=${this.$store.getters.userId}`,
      imageUrl:
        'https://hb.jzce.com/fx_qyrz.png'
    }
  },

  methods: {
    goback() {
      uni.switchTab({
        url: '/pages/owner'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.invate {
  height: 100%;
  // background: linear-gradient(180deg, #17c653 0%, #17c653 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
