+
![]()
{
drawer.value = true
@@ -157,7 +166,7 @@ const scrollToTop = () => {
}
}
.container_bg {
- background: #fff;
+ background: rgba(255, 255, 255, 0.9);
transition-property: all;
transition-duration: 0.7s;
animation-fill-mode: forwards;
diff --git a/src/mock/index.js b/src/mock/index.js
index 56608f4..4ca27ce 100644
--- a/src/mock/index.js
+++ b/src/mock/index.js
@@ -79,52 +79,52 @@ export const hardList = [
{
id: 1,
title: '国网照明巡检摄像头',
- pic: Y1,
+ picUrl: Y1,
},
{
id: 2,
title: '娱乐打禅休闲一体化座舱',
- pic: Y2,
+ picUrl: Y2,
},
{
id: 3,
title: '暖手宝',
- pic: Y3,
+ picUrl: Y3,
},
{
id: 4,
title: '微型光度计',
- pic: Y4,
+ picUrl: Y4,
},
{
id: 5,
title: '动车底部巡检',
- pic: Y5,
+ picUrl: Y5,
},
{
id: 6,
title: '全自动AI缠绕打包机器人',
- pic: Y6,
+ picUrl: Y6,
},
{
id: 7,
title: '智慧医美视频拍照系统',
- pic: Y7,
+ picUrl: Y7,
},
{
id: 8,
title: '智能多通道全自动免疫荧光分析仪',
- pic: Y8,
+ picUrl: Y8,
},
{
id: 9,
title: '室内空调调节机',
- pic: Y9,
+ picUrl: Y9,
},
{
id: 10,
title: '水处理设备',
- pic: Y10,
+ picUrl: Y10,
},
]
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 15b70aa..b2c131a 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -35,11 +35,13 @@ import { ref } from 'vue'
const isDrag = ref(false)
const handlePress = e => {
+ e.preventDefault()
// 背景虚化
isDrag.value = true
}
const handleRelease = e => {
// 背景实体化
+ e.preventDefault()
isDrag.value = false
}