<template>
  <view id="empty">
    <view class="empty_center">
      <image class="shalou-image" src="/static/background/shalou.png" mode="scaleToFill"></image>
      <view class="load_text">{{ mesText }}</view>
    </view>
  </view>
</template>

<script>
import storage from '@/utils/storage'
import store from '@/store/index'

export default {
  data() {
    return {}
  },
  computed: {
    appStore: () => store.getters.app,
    mesText: () => store.getters.app.verifymsg
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLaunch({path, query, scene}) {
    console.log('empty - onLaunch')
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow(options) {
    // #ifdef APP-PLUS
    this.$navTo('pages/txmLogin/index')
    // #endif

    // console.log(this.appStore, 'appStore')
    // // 获取 User Agent
    // var userAgent = navigator.userAgent.toLowerCase()
    // // 判断是否在微信中打开
    // if (userAgent.indexOf('micromessenger') !== -1) {
    //   console.log('当前页面在微信中打开')
    // } else {
    //   console.log('当前页面不在微信中打开')
    // }
    // let pages = getCurrentPages()
    // let page = pages[pages.length - 1].options
    // console.log('监听页面显示', page?.versions)
    // if (storage.get('wx_userid') === 'enterprise') {
    //   this.$navTo('pages/firm/index')
    // } else {
    //   this.$navTo('pages/index/index')
    // }
  },

  methods: {}
}
</script>

<style lang="scss" scoped>
#empty {
  padding-top: 400rpx;
  .empty_center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }
  .shalou-image {
    display: block;
    width: 100rpx;
    height: 100rpx;
    animation: rotate 3s linear infinite;
  }
  .load_text {
    margin-top: 30rpx;
  }
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    10% {
      transform: rotate(180deg);
    }
    50% {
      transform: rotate(180deg);
    }
    60% {
      transform: rotate(360deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
}
</style>
