瀏覽代碼

首页型号分类样式及bug修复、品牌索引加状态颜色

ouxq 8 年之前
父節點
當前提交
3030ed9462
共有 2 個文件被更改,包括 12 次插入4 次删除
  1. 6 4
      components/home/KindCategory.vue
  2. 6 0
      pages/product/brand/brandList.vue

+ 6 - 4
components/home/KindCategory.vue

@@ -8,8 +8,8 @@
           <i class="iconfont icon-arrow-right icon-sm pull-right"></i>
         </nuxt-link>
       </li>
-      <li class="kind-main-item item-more">
-        <nuxt-link to="/product/kind">
+      <li class="kind-main-item item-more"  @mouseenter="hideChildrenLayout()">
+        <nuxt-link to="/product/kind/home">
           <span>查看更多器件分类</span>
         </nuxt-link>
       </li>
@@ -78,7 +78,9 @@
 </script>
 <style lang="scss" scoped>
   @import '~assets/scss/variables';
-
+  .kind-children .kind-children-layout{
+    padding: 15px 0 0 0;
+  }
   .kind-category {
     position: absolute;
     width: 200px;
@@ -92,7 +94,7 @@
       .kind-main-item {
         height: 34.1px;
         line-height: 34.1px;
-        padding: 0 20px;
+        padding: 0 10px 0 20px;
         background: rgba(80, 120, 203, 0.9);
         display: block;
 

+ 6 - 0
pages/product/brand/brandList.vue

@@ -56,3 +56,9 @@
     }
   }
 </script>
+<style scoped>
+  .router-link-exact-active{
+    color: #5078CB;
+    font-weight: bold;
+  }
+</style>