noData.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div v-if="pagetype == 'class'" class="nodata_style1">
  3. <div class="nodata_style1_box">
  4. <img src="@/public/image/Union.png" alt="暂无商品数据">
  5. <div class="nodata_style1_box_text">暂无商品数据</div>
  6. </div>
  7. </div>
  8. </template>
  9. <script setup>
  10. const props = defineProps({
  11. pagetype: {
  12. type: String,
  13. default: ''
  14. }
  15. })
  16. </script>
  17. <style lang="less" scoped>
  18. //用于频道页
  19. .nodata_style1{
  20. width: 1200px;
  21. height: 400px;
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. .nodata_style1_box{
  26. display: flex;
  27. justify-content: center;
  28. align-items: center;
  29. width: 265px;
  30. height: 80px;
  31. .nodata_style1_box_text {
  32. width: 159px;
  33. height: 34px;
  34. line-height: 34px;
  35. font-size: 26px;
  36. color:#CCCCCC
  37. }
  38. img{
  39. display: block;
  40. width: 49px;
  41. height: 56px;
  42. margin-right: 30px;
  43. }
  44. }
  45. }
  46. </style>