<script setup lang="ts">
import { useMemberStore } from "@/stores";
const userInfo = useMemberStore();
const emit = defineEmits(["jumpInvite"]);
const inviteUserFun = () => {
  //判断是否是授权了
  //如果没有授权，点击按钮择跳转授权页面
  if (userInfo.userInfo.isAuth == "0") {
    emit("jumpInvite");
  } else {
    //跳转到生成海报页面
    uni.navigateTo({ url: "/pages/index/inviteUser" });
  }
};
</script>
<template>
  <!-- <view class="home_top"> 税务风险检测 </view> -->
  <view class="home_tabs">
    <view class="user_use" @click="inviteUserFun">邀请用户使用</view>
    <view class="risk_detection">税务风险检测</view>
  </view>
</template>
<style lang="scss">
.home_top {
  text-align: center;
  font-size: 40rpx;
  margin-bottom: 60rpx;
}
.home_tabs {
  display: flex;
  justify-content: space-around;
  flex-direction: row;

  .user_use {
    color: #fff;
    background: linear-gradient(blue, rgb(193, 192, 255));
    flex: 1;
    margin-right: 10rpx;
    padding-left: 20rpx;
    padding-top: 20rpx;
    height: 200rpx;
    border-radius: 30rpx;
  }
  .risk_detection {
    color: #fff;
    padding-left: 20rpx;
    flex: 1;
    background: linear-gradient(rgb(0, 255, 21), rgb(212, 255, 192));
    padding-top: 20rpx;
    height: 200rpx;
    margin-left: 10rpx;
    border-radius: 30rpx;
  }
}
</style>
