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.

79 lines
1.6 KiB

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