show-empty.vue 657 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class='no-course'>
  3. <image class='img' src='../../static/images/my_course_empty.png'></image>
  4. <text class='desc' v-if="text">{{text}}~</text>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "tuiShowEmpty",
  10. props: {
  11. text: {
  12. type: String,
  13. value: ''
  14. }
  15. }
  16. }
  17. </script>
  18. <style scoped>
  19. .no-course {
  20. display: flex;
  21. flex-direction: column;
  22. align-items: center;
  23. width: 100%;
  24. height: 100%;
  25. }
  26. .no-course .img {
  27. margin-top: 116rpx;
  28. width: 597rpx;
  29. height: 467rpx;
  30. margin-bottom: 60rpx;
  31. }
  32. .no-course .desc {
  33. font-size: 30rpx;
  34. line-height: 40rpx;
  35. color: #333;
  36. font-weight: bold;
  37. }
  38. </style>