empty.vue 803 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="empty-content">
  3. <image class="empty-content-image" :src="staticUrl+'icon_order_empty@2x.png'" mode="aspectFit"></image>
  4. <text class="error-text">您还没有任何的订单哟~</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. data() {
  10. return {
  11. staticUrl:this.global.staticUrl,
  12. }
  13. },
  14. created(){
  15. },
  16. computed: {
  17. },
  18. }
  19. </script>
  20. <style lang="scss">
  21. .empty-content {
  22. display: flex;
  23. align-items: center;
  24. justify-content: center;
  25. flex-direction: column;
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. bottom: 0;
  30. right: 0;
  31. margin: auto;
  32. background: $bg-color;
  33. z-index: 999;
  34. &-image {
  35. width: 386rpx;
  36. height: 286rpx;
  37. }
  38. .error-text{
  39. font-size: $font-size-28;
  40. color: $text-color;
  41. line-height: 88rpx;
  42. }
  43. }
  44. </style>