import store from "../store/index.js"
export default function() {
  if (store.state.userInfo.nickName === undefined) {
    uni.navigateTo({
      url: "/pages/authen/identity"
    })
    return false
  }
  if (store.state.phoneNumber === '' || store.state.openId === '' || store.state.unionId === '') {
    uni.navigateTo({
      url: "/pages/authen/login"
    })
    return false
  }
  return true
}
