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.

54 lines
954 B

  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. const title = ref("请先登录");
  14. const loginPrompt = ref(null);
  15. function showLoginPrompt() {
  16. loginPrompt.value.show();
  17. }
  18. function toDeepMate() {
  19. uni.navigateTo({
  20. url: '/pages/deepMate/deepMate'
  21. })
  22. }
  23. </script>
  24. <style>
  25. .content {
  26. display: flex;
  27. flex-direction: column;
  28. align-items: center;
  29. justify-content: center;
  30. }
  31. .logo {
  32. height: 200rpx;
  33. width: 200rpx;
  34. margin-top: 200rpx;
  35. margin-left: auto;
  36. margin-right: auto;
  37. margin-bottom: 50rpx;
  38. }
  39. .text-area {
  40. display: flex;
  41. justify-content: center;
  42. }
  43. .title {
  44. font-size: 36rpx;
  45. color: #8f8f94;
  46. }
  47. </style>