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
1009 B

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