index.vue 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!--
  2. * @Author: wjc
  3. * @Date: 2019-08-22 19:41:20
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2024-05-28 10:12:06
  6. * @Description:
  7. -->
  8. <template>
  9. <view class="content">
  10. <image class="logo" src="/static/logo.png"></image>
  11. <view class="text-area">
  12. <text class="title">{{ title }}</text>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. title: 'Hello',
  21. }
  22. },
  23. onLoad() {},
  24. methods: {
  25. getData() {
  26. let d = 1
  27. },
  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>