GoodsListCate2.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div class="goods_list_cate2">
  3. <div class="sld_brand_cat">
  4. <div class="sld_cat_item">
  5. {{ L["分类"] }} - "<em>{{ cate2Name }}</em
  6. >" <b>{{ L["筛选结果"] }}</b>
  7. </div>
  8. <div class="sld_cat_item clearfix">
  9. <p class="sld_gleft">{{ L["包含分类"] }}</p>
  10. <ul class="sld_gright" v-if="cateItem.length">
  11. <li v-for="(item, index) in cateItem" :key="index">
  12. <Nuxt-link :to="'/goods/list/'+ calcProductName(item.categoryName) +'_v-'+ item.categoryId + '_gid-' + item.grade + '_pid-' + item.pid" >
  13. {{ item.categoryName }}
  14. </Nuxt-link>
  15. </li>
  16. </ul>
  17. <ul class="sld_gright no_category" v-else>
  18. <div>{{ L["暂无分类"] }}</div>
  19. </ul>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script setup>
  25. import { getCurLanguage } from '@/composables/common.js';
  26. const L = getCurLanguage();
  27. defineProps(["cateItem", "cate2Name"]);
  28. </script>
  29. <style lang="scss">
  30. @use "@/assets/style/theme.scss" as *;
  31. .clearfix {
  32. display: block;
  33. zoom: 1;
  34. }
  35. ul,
  36. ol,
  37. li {
  38. list-style: none;
  39. }
  40. a:visited {
  41. text-decoration: none;
  42. }
  43. .goods_list_cate2 {
  44. width: 1200px;
  45. margin: 0 auto;
  46. margin-top: 20px;
  47. padding-left: 0px;
  48. padding-right: 0px;
  49. font: 12px/150% Arial, Verdana, "\5b8b\4f53";
  50. /*font-family: "microsoft yahei";*/
  51. .sld_brand_cat {
  52. margin-bottom: 17px;
  53. border: 1px solid #d7d7d7;
  54. .sld_cat_item {
  55. position: relative;
  56. display: flex;
  57. border-bottom: 1px solid #cbcbcb;
  58. padding-right: 150px;
  59. li {
  60. float: left;
  61. margin-right: 40px;
  62. line-height: 23px;
  63. }
  64. &:nth-child(1) {
  65. line-height: 40px;
  66. background-color: #f6f6f6;
  67. padding-left: 17px;
  68. font-size: 14px;
  69. color: #666;
  70. border-bottom: 1px solid #d7d7d7;
  71. em {
  72. color: $colorMain2;
  73. font-weight: 600;
  74. font-style: normal;
  75. }
  76. }
  77. &:nth-child(2) {
  78. border: none;
  79. min-height: 43px;
  80. }
  81. .sld_gleft {
  82. position: relative;
  83. top: 0;
  84. left: 0;
  85. bottom: 0;
  86. width: 120px;
  87. padding: 12px 0 0 17px;
  88. background-color: #f9f9f9;
  89. }
  90. .sld_gright {
  91. margin: 10px 0 10px 20px;
  92. background-color: #fff;
  93. &.no_category {
  94. display: flex;
  95. justify-content: center;
  96. width: 100%;
  97. div {
  98. color: #999;
  99. }
  100. }
  101. a {
  102. color: #666;
  103. text-decoration: none;
  104. cursor: pointer;
  105. &:hover {
  106. color: $colorMain;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. </style>