emptyPage.vue 662 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="empty-box">
  3. <image :src="imgHost + '/statics/images/empty-box.png'"></image>
  4. <view class="txt">{{title || $t(`暂无记录`)}}</view>
  5. </view>
  6. </template>
  7. <script>
  8. import {HTTP_REQUEST_URL} from '@/config/app';
  9. export default{
  10. props: {
  11. title: {
  12. type: String,
  13. default: '',
  14. },
  15. },
  16. data(){
  17. return{
  18. imgHost:HTTP_REQUEST_URL
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. .empty-box{
  25. display: flex;
  26. flex-direction: column;
  27. justify-content: center;
  28. align-items: center;
  29. margin-top: 200rpx;
  30. image{
  31. width: 414rpx;
  32. height: 240rpx;
  33. }
  34. .txt{
  35. font-size: 26rpx;
  36. color: #999;
  37. }
  38. }
  39. </style>