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.

58 lines
1.0 KiB

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. console.log(userStore.userInfo);
  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>