app-wrapper-empty.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <div class="app-empty">
  3. <div class="app-empty-center">
  4. <div class="app_empty_img">
  5. <image :src="`${constant.hostUrl}/image/common/no_data_hua.png`" mode="widthFix"></image>
  6. </div>
  7. <div class="app-empty-title">
  8. <span class="empty_noData">{{ title }}</span>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. export default {
  15. name: 'AppWrapperEmpty',
  16. props: {
  17. type: {
  18. type: String,
  19. default: 'noData'
  20. },
  21. pictureHeight: {
  22. type: String,
  23. default: ''
  24. },
  25. title: {
  26. type: String,
  27. default: '暂无数据'
  28. },
  29. content: {
  30. type: String,
  31. default: ''
  32. },
  33. isEmpty: {
  34. type: Boolean,
  35. default: false
  36. },
  37. isLoading: {
  38. type: Boolean,
  39. default: false
  40. },
  41. finished: {
  42. type: Boolean,
  43. default: false
  44. },
  45. isTitle: {
  46. type: Boolean,
  47. default: true
  48. }
  49. },
  50. computed: {
  51. },
  52. data() {
  53. return {}
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .app-empty {
  59. width: 100%;
  60. display: flex;
  61. align-items: center;
  62. & .app-empty-center {
  63. width: 100%;
  64. }
  65. & .app_empty_img {
  66. width: 100%;
  67. margin-top:100upx;
  68. text-align: center;
  69. & image {
  70. margin:0 auto;
  71. width:260upx;
  72. }
  73. }
  74. & .app-empty-title {
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. font-size: 32upx;
  79. color: #cccccc;
  80. margin-top:30upx;
  81. & span {
  82. font-weight: 400;
  83. & + span {
  84. font-weight: initial;
  85. margin-top: 10upx;
  86. font-size: 26upx;
  87. }
  88. }
  89. & .empty_noData {
  90. font-size: 26upx;
  91. }
  92. }
  93. }
  94. </style>