index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="box">
  3. <image class="img" src="https://minio.menduner.com/dev/fe9890be9b1176f84f2aa282b0f6adce300b133f65eb3d7b45ae057aa5698324.png"></image>
  4. <view class="color-primary font-size-20 font-weight-bold">我是大女主</view>
  5. <view class="icons">
  6. <uni-icons type="spinner-cycle" size="24" />
  7. </view>
  8. </view>
  9. </template>
  10. <script setup>
  11. import { onShow } from '@dcloudio/uni-app'
  12. // import { getAccessToken } from '@/utils/request'
  13. // import { showAuthModal } from '@/hooks/useModal'
  14. // import { userStore } from '@/store/user'
  15. // const useUserStore = userStore()
  16. // const tabBarControl = (show = false) => { // 显示/隐藏 TabBar
  17. // const currentPage = getCurrentPages()
  18. // if (!currentPage) return
  19. // const currentTabBar = currentPage[0]?.getTabBar?.()
  20. // currentTabBar?.setData({ show })
  21. // }
  22. onShow(async() => {
  23. // tabBarControl(false) // 隐藏页面底部导航
  24. // if (!getAccessToken()) showAuthModal()
  25. uni.reLaunch({ url: 'pages/drawLots/index' })
  26. })
  27. </script>
  28. <style lang="scss" scoped>
  29. .box {
  30. text-align: center;
  31. .img {
  32. width: 105px;
  33. height: 45px;
  34. margin-top: 30vh;
  35. margin-bottom: 16px;
  36. }
  37. .icons {
  38. position: fixed;
  39. bottom: 20vh;
  40. width: 100%;
  41. margin: 0 auto;
  42. }
  43. }
  44. </style>