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.

62 lines
1.4 KiB

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