empty.vue 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="page-box">
  3. <view class="centre">
  4. <image src="../static/image/empty.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. }
  27. .centre {
  28. position: absolute;
  29. left: 0;
  30. top:0;
  31. right: 0;
  32. bottom: 0;
  33. margin: auto;
  34. height: 400rpx;
  35. text-align: center;
  36. // padding: 200rpx auto;
  37. font-size: 32rpx;
  38. image {
  39. width: 387rpx;
  40. height: 341rpx;
  41. // margin-bottom: 20rpx;
  42. margin: 0 auto 20rpx;
  43. // border: 1px dotted #000000;
  44. }
  45. .tips {
  46. font-size: 32rpx;
  47. color: #2F3044;
  48. margin-top: 20rpx;
  49. font-weight: 700;
  50. }
  51. .btn {
  52. margin: 80rpx auto;
  53. width: 600rpx;
  54. border-radius: 32rpx;
  55. line-height: 90rpx;
  56. color: #ffffff;
  57. font-size: 34rpx;
  58. background: #5074FF;
  59. }
  60. }
  61. </style>