index.vue 954 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <template>
  2. <view class="content">
  3. <view class="text-area">
  4. <text class="title">跳转中。。</text>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import { getToken, setToken, removeToken } from '@/utils/auth'
  10. export default {
  11. onLoad: function(opt) {
  12. let token = opt.token;
  13. if(token){
  14. let deptNum = opt.deptId;
  15. setToken(token)
  16. uni.reLaunch({
  17. url: '/pages/device/index?deptId='+deptNum
  18. });
  19. }
  20. }
  21. }
  22. </script>
  23. <style>
  24. .content {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. }
  30. .logo {
  31. height: 200rpx;
  32. width: 200rpx;
  33. margin-top: 200rpx;
  34. margin-left: auto;
  35. margin-right: auto;
  36. margin-bottom: 50rpx;
  37. }
  38. .text-area {
  39. display: flex;
  40. justify-content: center;
  41. }
  42. .title {
  43. font-size: 36rpx;
  44. color: #8f8f94;
  45. }
  46. </style>