404.vue 786 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="container">
  3. <view class="img">
  4. <img src="@/static/6.png" />
  5. </view>
  6. <view class="info">
  7. {{ info }}
  8. </view>
  9. </view>
  10. </template>
  11. <script setup>
  12. import { ref } from 'vue'
  13. import { onLoad } from '@dcloudio/uni-app'
  14. import { getQueryString } from '../../utils/getParams.js'
  15. const info = ref('')
  16. onLoad(() => {
  17. getMessage()
  18. })
  19. const getMessage = () => {
  20. const message = getQueryString('message')
  21. if (message) {
  22. info.value = message
  23. } else {
  24. info.value = '404'
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .container {
  30. display: flex;
  31. flex-direction: column;
  32. align-items: center;
  33. .img {
  34. margin-top: 200rpx;
  35. width: 480rpx;
  36. height: 508rpx;
  37. img {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. }
  42. .info {
  43. padding: 0 30rpx;
  44. }
  45. }
  46. </style>