You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.2 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <view class="background">
  3. <image
  4. class="logo"
  5. src="../../../static/icons/start-logo.png"
  6. mode="scaleToFill"
  7. />
  8. <view class="logo-text"> DeepChart </view>
  9. </view>
  10. </template>
  11. <script setup>
  12. import { onShow } from "@dcloudio/uni-app";
  13. import { useUserStore } from "../../../stores/modules/userInfo";
  14. onShow(() => {
  15. setTimeout(() => {
  16. const userStore = useUserStore();
  17. if (!userStore.userInfo)
  18. uni.redirectTo({
  19. url: "/pages/start/select/select",
  20. animationType: "slide-in-right",
  21. animationDuration: 1000,
  22. });
  23. else {
  24. uni.redirectTo({
  25. url: "/pages/home/home",
  26. animationType: "slide-in-right",
  27. animationDuration: 1000,
  28. });
  29. }
  30. }, 1500);
  31. });
  32. </script>
  33. <style>
  34. .background {
  35. background: linear-gradient(180deg, #fb6967, #fb6967);
  36. width: 100vw;
  37. height: 100vh;
  38. }
  39. .logo-text {
  40. display: flex;
  41. justify-content: center;
  42. align-items: center;
  43. color: white;
  44. font-weight: bold;
  45. font-size: 24px;
  46. position: absolute;
  47. bottom: 5%;
  48. left: 50%;
  49. transform: translateX(-50%);
  50. }
  51. .logo {
  52. width: 320rpx;
  53. height: 200rpx;
  54. position: absolute;
  55. top: 30%;
  56. left: 50%;
  57. transform: translate(-50%, -50%);
  58. }
  59. </style>