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.

86 lines
1.6 KiB

4 weeks ago
3 weeks ago
4 weeks ago
3 weeks ago
4 weeks ago
3 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. <image
  10. class="start"
  11. src="../../../static/start-gif.gif"
  12. mode="scaleToFill"
  13. />
  14. </view>
  15. </template>
  16. <script setup>
  17. import { onShow } from "@dcloudio/uni-app";
  18. import { useUserStore } from "../../../stores/modules/userInfo";
  19. import { useDeviceStore } from "../../../stores/modules/deviceInfo";
  20. onShow(() => {
  21. const deviceInfo = useDeviceStore();
  22. // 获取设备ID
  23. uni.getSystemInfo({
  24. success: (res) => {
  25. deviceInfo.setDeviceInfo(res);
  26. },
  27. });
  28. setTimeout(() => {
  29. const userStore = useUserStore();
  30. if (!userStore.userInfo)
  31. uni.redirectTo({
  32. url: "/pages/start/select/select",
  33. animationType: "slide-in-right",
  34. animationDuration: 1000,
  35. });
  36. else {
  37. uni.redirectTo({
  38. url: "/pages/home/home",
  39. animationType: "slide-in-right",
  40. animationDuration: 1000,
  41. });
  42. }
  43. }, 3400);
  44. });
  45. </script>
  46. <style>
  47. .background {
  48. background: #ffffff;
  49. width: 100vw;
  50. height: 100vh;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. }
  55. .start {
  56. width: 750rpx;
  57. height: 1624rpx;
  58. }
  59. .logo-text {
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. color: white;
  64. font-weight: bold;
  65. font-size: 24px;
  66. position: absolute;
  67. bottom: 5%;
  68. left: 50%;
  69. transform: translateX(-50%);
  70. }
  71. .logo {
  72. width: 320rpx;
  73. height: 200rpx;
  74. position: absolute;
  75. top: 30%;
  76. left: 50%;
  77. transform: translate(-50%, -50%);
  78. }
  79. </style>