index.vue 730 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="content">
  3. <image class="logo" src="/static/logo.png"></image>
  4. <view class="text-area">
  5. <text class="title">{{title}}</text>
  6. <uni-badge text="1"></uni-badge>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. title: 'Hello'
  15. }
  16. },
  17. onLoad() {
  18. },
  19. methods: {
  20. }
  21. }
  22. </script>
  23. <style>
  24. .content {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. justify-content: center;
  29. }
  30. .logo {
  31. height: 200rpx;
  32. width: 200rpx;
  33. margin-top: 200rpx;
  34. margin-left: auto;
  35. margin-right: auto;
  36. margin-bottom: 50rpx;
  37. }
  38. .text-area {
  39. display: flex;
  40. justify-content: center;
  41. }
  42. .title {
  43. font-size: 36rpx;
  44. color: #8f8f94;
  45. }
  46. </style>