empty.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view class="page-box">
  3. <view class="centre">
  4. <image src="https://mxys.chuanghai-tech.com/wmfile/20250814/99c5ced85df04062a736276ba75bdd1e.png" mode=""></image>
  5. <view class="tips">
  6. {{content}}
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. content: {
  15. type: String,
  16. default: '暂无内容'
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. .page-box {
  23. position: relative;
  24. // left: 0;
  25. height: 50vh;
  26. z-index: 0;
  27. top: 70px;
  28. }
  29. .centre {
  30. position: absolute;
  31. left: 0;
  32. top: 0;
  33. right: 0;
  34. bottom: 0;
  35. margin: auto;
  36. height: 400rpx;
  37. text-align: center;
  38. // padding: 200rpx auto;
  39. font-size: 32rpx;
  40. image {
  41. width: 387rpx;
  42. height: 341rpx;
  43. // margin-bottom: 20rpx;
  44. margin: 0 auto 20rpx;
  45. // border: 1px dotted #000000;
  46. }
  47. .tips {
  48. font-size: 32rpx;
  49. color: #2F3044;
  50. margin-top: 20rpx;
  51. font-weight: 700;
  52. }
  53. .btn {
  54. margin: 80rpx auto;
  55. width: 600rpx;
  56. border-radius: 32rpx;
  57. line-height: 90rpx;
  58. color: #ffffff;
  59. font-size: 34rpx;
  60. background: #5074FF;
  61. }
  62. }
  63. </style>