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.

55 lines
1.0 KiB

4 weeks ago
4 weeks ago
4 weeks ago
4 weeks ago
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo.png"></image>
  4. <view class="text-area">
  5. <text class="title" @click="showLoginPrompt">{{ title }}</text>
  6. </view>
  7. <LoginPrompt ref="loginPrompt"></LoginPrompt>
  8. <button @click="toDeepMate">deepMate</button>
  9. </view>
  10. </template>
  11. <script setup>
  12. import { ref } from "vue";
  13. import { useUserStore } from "../../../stores/modules/userInfo";
  14. const title = ref("请先登录");
  15. const loginPrompt = ref(null);
  16. const userStore = useUserStore();
  17. function showLoginPrompt() {
  18. userStore.clearUserInfo();
  19. }
  20. function toDeepMate() {
  21. uni.navigateTo({
  22. url: "/pages/deepMate/deepMate",
  23. });
  24. }
  25. </script>
  26. <style>
  27. .content {
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. justify-content: center;
  32. }
  33. .logo {
  34. height: 200rpx;
  35. width: 200rpx;
  36. margin-top: 200rpx;
  37. margin-left: auto;
  38. margin-right: auto;
  39. margin-bottom: 50rpx;
  40. }
  41. .text-area {
  42. display: flex;
  43. justify-content: center;
  44. }
  45. .title {
  46. font-size: 36rpx;
  47. color: #8f8f94;
  48. }
  49. </style>