<script>
  import store from './store';
  export default {
    async onLaunch() {
    store.dispatch('getAppSystemInfo')
	  if(store.getters.scope === 'CUSTOMER'){
      uni.switchTab({
        url:'/pages/client/tabBar/home/index'
      })
    }else{
      uni.navigateTo({
        url:'/pages/merchant/order/index'
      })
    }
    },
    mounted() {
      uni.hideTabBar({
		  success: () => {
		  	console.log('hide tabber success');
		  },fail: () => {
		  	console.log('hide tabber fail');
		  }
	  })
    }
  };
</script>

<style lang="scss">
  @import 'uview-ui/index.scss';
  @import 'design/index.scss';
  @import url('design/common.css');

  page {
    background-color: #f5f5f5;
    color: $uni-text-color;
    font-size: $uni-font-size-base;
  }
</style>
