emptyPage.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="empty-box" :style="{'padding-top':mTop}">
  3. <image class="empty-img" :src="imgSrc"></image>
  4. <view class="txt">{{title}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. // +----------------------------------------------------------------------
  9. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  10. // +----------------------------------------------------------------------
  11. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  12. // +----------------------------------------------------------------------
  13. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  14. // +----------------------------------------------------------------------
  15. // | Author: CRMEB Team <admin@crmeb.com>
  16. // +----------------------------------------------------------------------
  17. export default {
  18. props: {
  19. imgSrc: {
  20. type: String,
  21. default: '/static/images/empty-box.gif',
  22. },
  23. title: {
  24. type: String,
  25. default: '暂无记录',
  26. },
  27. mTop: {
  28. type: String,
  29. default: '50%',
  30. }
  31. },
  32. data() {
  33. return {
  34. urlDomain: this.$Cache.get("imgHost")
  35. }
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .empty-box {
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. align-items: center;
  45. padding-bottom: 60rpx;
  46. .empty-img {
  47. width: 440rpx;
  48. height: 360rpx;
  49. }
  50. .txt {
  51. font-size: 26rpx;
  52. color: #999;
  53. }
  54. }
  55. </style>