noData.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <div v-else-if="pagetype == 'list'" class="nodata_style2">
  9. <div class="nodata_style1_box">
  10. <img src="@/public/image/Union.png" alt="暂无商品数据">
  11. <div class="nodata_style1_box_text">暂无商品数据</div>
  12. </div>
  13. </div>
  14. </template>
  15. <script setup>
  16. const props = defineProps({
  17. pagetype: {
  18. type: String,
  19. default: ''
  20. }
  21. })
  22. </script>
  23. <style lang="less" scoped>
  24. //用于频道页
  25. .nodata_style1{
  26. width: 1200px;
  27. height: 400px;
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. .nodata_style1_box{
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. width: 265px;
  36. height: 80px;
  37. .nodata_style1_box_text {
  38. width: 159px;
  39. height: 34px;
  40. line-height: 34px;
  41. font-size: 26px;
  42. color:#CCCCCC
  43. }
  44. img{
  45. display: block;
  46. width: 49px;
  47. height: 56px;
  48. margin-right: 30px;
  49. }
  50. }
  51. }
  52. .nodata_style2{
  53. width: 1200px;
  54. height: 600px;
  55. display: flex;
  56. justify-content: center;
  57. align-items: center;
  58. .nodata_style1_box{
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. width: 265px;
  63. height: 80px;
  64. .nodata_style1_box_text {
  65. width: 159px;
  66. height: 34px;
  67. line-height: 34px;
  68. font-size: 26px;
  69. color:#CCCCCC
  70. }
  71. img{
  72. display: block;
  73. width: 49px;
  74. height: 56px;
  75. margin-right: 30px;
  76. }
  77. }
  78. }
  79. </style>