...
|
...
|
@@ -19,13 +19,14 @@ |
|
|
<div class="right-content">
|
|
|
<Scroll>
|
|
|
<div v-for="(itemSub, index) in categorySubList" :key="index">
|
|
|
<p class="sub-title">————{{itemSub.name}}————</p>
|
|
|
<p class="sub-title">——— {{itemSub.name}} ———</p>
|
|
|
<div class="category-sub-root">
|
|
|
<div class="item-imge-div"
|
|
|
<div class="item-div"
|
|
|
v-for="(item, index) in itemSub.sub"
|
|
|
:key="index"
|
|
|
:data-id="item.id"
|
|
|
>
|
|
|
<div class="item-imge-div" @click="goProductList(item)">
|
|
|
<ImgSize
|
|
|
class="item-imge"
|
|
|
:src="item.image"
|
...
|
...
|
@@ -33,6 +34,11 @@ |
|
|
:height="60"
|
|
|
/>
|
|
|
</div>
|
|
|
<!-- <div v-if="item.isShow" class="item-a-div"> -->
|
|
|
<a v-if="item.isShow" class="item-a-div" :href="item.link"></a>
|
|
|
<!-- </div> -->
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</Scroll>
|
...
|
...
|
@@ -75,6 +81,16 @@ export default { |
|
|
}
|
|
|
}
|
|
|
},
|
|
|
goProductList(item) {
|
|
|
let key = item.linkType;
|
|
|
let value = item.id;
|
|
|
this.$router.push({
|
|
|
name: "List",
|
|
|
params: {
|
|
|
key : value
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['categoryParent','categorySubList']),
|
...
|
...
|
@@ -128,20 +144,30 @@ export default { |
|
|
align-content: flex-start;
|
|
|
}
|
|
|
.sub-title{
|
|
|
/* background-color: brown; */
|
|
|
font-size: 24px;
|
|
|
color: #000;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.item-imge-div {
|
|
|
.item-div {
|
|
|
position: relative;
|
|
|
display: flex;
|
|
|
flex: 0 0 33%;
|
|
|
height: 150px;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.item-imge-div {
|
|
|
position:absolute;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
.item-imge {
|
|
|
object-fit: contain;
|
|
|
}
|
|
|
.item-a-div{
|
|
|
position:absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
z-index: 99;
|
|
|
}
|
|
|
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|