empty.vue 1.1 KB

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