diff --git a/src/components/Product.vue b/src/components/Product.vue
index 68836ce..a12201f 100644
--- a/src/components/Product.vue
+++ b/src/components/Product.vue
@@ -11,6 +11,7 @@
→
+
![]()
@@ -18,6 +19,7 @@
动车底部巡检
查看详情 →
+
![]()
@@ -25,6 +27,7 @@
动车底部巡检
查看详情 →
+
![]()
@@ -32,6 +35,7 @@
动车底部巡检
查看详情 →
+
@@ -52,12 +56,12 @@ import A1 from '@/static/img/index/a1.png'
align-items: center;
flex-wrap: wrap;
margin-top: 82px;
+ position: relative;
.product_card {
width: 50%;
height: 393px;
box-sizing: border-box;
position: relative;
- background: #000;
.product_img {
width: 100%;
height: 100%;
@@ -88,6 +92,43 @@ import A1 from '@/static/img/index/a1.png'
cursor: pointer;
}
}
+ &:nth-child(even) {
+ .detail_show_container {
+ display: none;
+ position: absolute;
+ top: 0;
+ left: -100%;
+ width: 100%;
+ background: #fcfcfc;
+ height: 100%;
+ box-sizing: border-box;
+ z-index: 999;
+ }
+ }
+ &:nth-child(odd) {
+ .detail_show_container {
+ display: none;
+ position: absolute;
+ top: 0;
+ left: 100%;
+ width: 100%;
+ background: #fcfcfc;
+ height: 100%;
+ box-sizing: border-box;
+ z-index: 999;
+ }
+ }
+ &:hover {
+ .detail_show_container {
+ display: flex;
+ }
+ .bottom_tip {
+ background: none;
+ p {
+ opacity: 0;
+ }
+ }
+ }
}
}
}