<template>
  <view></view>
</template>

<script>
export default {
  data() {
    return {
      scene:''
    };
  },
  methods: {
     async onLoadInit(){
          await this.$store.dispatch("checkHandle",'noGO')
          if (!this.$store.state.isAuth && !this.$store.state.isBind) {
            //已授权已绑定
            uni.switchTab({
                url:'/pages/index/index'
            })
          } else {
            //已授权未绑定
            uni.reLaunch({
              url: "/pageMy/login/login?scene="+this.scene,
            });
          }
      }
  },
  onLoad(options) {
    wx.hideHomeButton();
    this.onLoadInit()
    this.scene = options.scene || ''
  },
};
</script>

<style></style>
